{"id":37002764,"url":"https://github.com/zierhut-it/spotify-ads-php-client","last_synced_at":"2026-01-14T00:30:26.191Z","repository":{"id":181775220,"uuid":"595717241","full_name":"zierhut-it/spotify-ads-php-client","owner":"zierhut-it","description":"Unofficial PHP Client for the Spotify Ads API","archived":true,"fork":false,"pushed_at":"2023-11-07T00:16:18.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-12T17:06:26.622Z","etag":null,"topics":["ads","api-wrapper","client","sdk","sdk-php","spotify"],"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/zierhut-it.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-01-31T17:05:56.000Z","updated_at":"2023-11-07T00:16:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"94d72373-b78e-48c7-8d1d-8b10ae298fc6","html_url":"https://github.com/zierhut-it/spotify-ads-php-client","commit_stats":null,"previous_names":["zierhut-it/spotify-ads-php-client"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zierhut-it/spotify-ads-php-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zierhut-it%2Fspotify-ads-php-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zierhut-it%2Fspotify-ads-php-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zierhut-it%2Fspotify-ads-php-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zierhut-it%2Fspotify-ads-php-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zierhut-it","download_url":"https://codeload.github.com/zierhut-it/spotify-ads-php-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zierhut-it%2Fspotify-ads-php-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ads","api-wrapper","client","sdk","sdk-php","spotify"],"created_at":"2026-01-14T00:30:25.182Z","updated_at":"2026-01-14T00:30:26.055Z","avatar_url":"https://github.com/zierhut-it.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spotify Ads PHP Client\n\nThis is an unofficial PHP Client for the [Spotify Marketing API](https://developer.spotify.com/documentation/ads-api/).\n\n[![Maintenance](https://shields.io/badge/Mainained%3F-archived-red?style=for-the-badge)](https://gitHub.com/zierhut-it/spotify-ads-php-client/graphs/commit-activity)\n\n## API Coverage\n- [ ] Ad Accounts\n- [ ] Advertiser\n- [ ] Campaigns\n- [ ] Assets\n- [x] Reports\n- [ ] Targets\n- [ ] Ad Sets\n- [ ] Ads\n- [ ] Estimate\n\n## Installation\n\nUse the package manager [composer](https://getcomposer.org/) to install.\n\n```bash\ncomposer require zierhut-it/spotify-ads-php-client\n```\n\n## Getting started\n\n### Authenticate\n```PHP\nuse Spotify\\Api\\Marketing\\Client;\n\nrequire_once __DIR__ . \"/vendor/autoload.php\";\n\n$spotify = new Client(\n    \"\u003cyour-client-id\u003e\",\n    \"\u003cyour-client-secret\u003e\",\n);\n\n// This has to be opened in a browser to grant access\n$url = $spotify-\u003eauth-\u003egetRedirectUrl();\n\n// Save the result for later reuse\n$refreshToken = $spotify-\u003eauth-\u003egetRefreshToken(\"\u003ccode received from the callback\u003e\");\n```\n\n### Keep logins\n```PHP\n// You may set the refresh token again next time, so no new login and callback is needed\n$spotify-\u003eauth-\u003esetRefreshToken(\"\u003cyour refresh token\u003e\");\n```\n\n### Run a report\n```PHP\n$report = $spotify-\u003enewReport();\n\n// You can set options using a simple string\n$report-\u003eaddAdAccountId(\"\u003coptional-ad-account-id\u003e\");\n\n// Or chain multiple of those\n$report\n    -\u003eaddDimension(\"CAMPAIGN\")\n    -\u003eaddDimension(\"AD_SET\");\n\n// Or don't use chaining\n$report-\u003eaddField(\"CLICKS\");\n$report-\u003eaddField(\"IMPRESSIONS\");\n\n// Or pass multiple values\n$report-\u003eaddField(\"CTR\", \"SPEND\");\n\n// Or even arrays\n$report-\u003eaddField([\"COMPLETION_RATE\", \"COMPLETES\"]);\n\n// When all parameters are set to your liking, make the actual request\n$results = $report-\u003erun();\n\n// You can use the returned $results or just iterate the report\nforeach($report as $row) {\n    print_r($row);\n}\n```\n\n## Contributing\n\nPull requests and Issues are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzierhut-it%2Fspotify-ads-php-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzierhut-it%2Fspotify-ads-php-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzierhut-it%2Fspotify-ads-php-client/lists"}