{"id":24160499,"url":"https://github.com/simpleweb/silverpopphp","last_synced_at":"2025-04-09T20:15:17.516Z","repository":{"id":57051434,"uuid":"1464635","full_name":"simpleweb/SilverpopPHP","owner":"simpleweb","description":"PHP API for Silverpop","archived":false,"fork":false,"pushed_at":"2020-06-24T15:26:21.000Z","size":110,"stargazers_count":35,"open_issues_count":14,"forks_count":48,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-09T20:15:13.443Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simpleweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-03-10T18:01:33.000Z","updated_at":"2022-02-03T16:29:14.000Z","dependencies_parsed_at":"2022-08-24T05:10:42.762Z","dependency_job_id":null,"html_url":"https://github.com/simpleweb/SilverpopPHP","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2FSilverpopPHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2FSilverpopPHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2FSilverpopPHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simpleweb%2FSilverpopPHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simpleweb","download_url":"https://codeload.github.com/simpleweb/SilverpopPHP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103872,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-12T16:14:20.826Z","updated_at":"2025-04-09T20:15:17.484Z","avatar_url":"https://github.com/simpleweb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Silverpop PHP Client Library\n\nPHP client library for the Silverpop API.\n\n*Note*. This project is not actively maintained. I suggest if it is useful, you fork your own version of it.\n\nPull requests that are non-breaking will be merged.\n\n## Installation\n\nInstallation via [composer](http://getcomposer.org) . Create a composer.json file in the root folder of you project and paste the code below.\n\n```javascript\n{\n    \"require\": {\n        \"simpleweb/silverpopphp\": \"master-dev\"\n    }\n}\n```\n\nWith composer installed, just run `php composer.phar install` or simply\n`composer install` if you [did a global install](http://getcomposer.org/doc/00-intro.md#globally).\n\n## Usage\n\n```php\n\u003c?php\n\n// Include the library\nrequire_once 'vendor/autoload.php';\n\n// Require the Silverpop Namespace\nuse Silverpop\\EngagePod;\n\n// Set some useful variables\n$databaseID   = 'XXX';\n$templateID   = 'XXX';\n$contactsList = 'XXX';\n\n// Initialize the library\n$silverpop = new EngagePod(array(\n  'username'       =\u003e 'XXX',\n  'password'       =\u003e 'XXX',\n  'engage_server'  =\u003e 4,\n));\n\n// Fetch all contact lists\n$lists = $silverpop-\u003eGetLists(18);\nvar_dump($lists);\n\n// Add a record to a contact\n$recipientID = $silverpop-\u003eaddContact(\n  $databaseID,\n  true,\n  array(\n    'name'  =\u003e 'christos',\n    'email' =\u003e 'chris@simpleweb.co.uk',\n  )\n);\necho $recipientID;\n\n// Create a new mailing and send in 1 minute\n$mailingID = $silverpop-\u003esendEmail(\n  $templateID,\n  $databaseID,\n  'API Mailing Test - ' . date(\"d/m/Y H:i:s\", time()),\n  time() + 60,\n);\necho $mailingID;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleweb%2Fsilverpopphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimpleweb%2Fsilverpopphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimpleweb%2Fsilverpopphp/lists"}