{"id":49453699,"url":"https://github.com/echonest/php-echonest-api","last_synced_at":"2026-06-18T22:00:57.860Z","repository":{"id":140431194,"uuid":"1567490","full_name":"echonest/php-echonest-api","owner":"echonest","description":"PHP classes for the Echo Nest API","archived":false,"fork":true,"pushed_at":"2011-04-04T16:17:09.000Z","size":175,"stargazers_count":37,"open_issues_count":1,"forks_count":6,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-03-26T01:36:38.751Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"bshaffer/php-echonest-api","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/echonest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-04-04T15:11:37.000Z","updated_at":"2019-07-11T13:35:59.000Z","dependencies_parsed_at":"2023-03-11T21:21:59.237Z","dependency_job_id":null,"html_url":"https://github.com/echonest/php-echonest-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/echonest/php-echonest-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echonest%2Fphp-echonest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echonest%2Fphp-echonest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echonest%2Fphp-echonest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echonest%2Fphp-echonest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/echonest","download_url":"https://codeload.github.com/echonest/php-echonest-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echonest%2Fphp-echonest-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34508867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-04-30T04:01:03.703Z","updated_at":"2026-06-18T22:00:57.855Z","avatar_url":"https://github.com/echonest.png","language":"PHP","funding_links":[],"categories":["📦 Legacy \u0026 Inactive Projects"],"sub_categories":[],"readme":"# PHP Echo Nest API\n\nA simple, Object Oriented API wrapper for the EchoNest Api written with PHP5.  \nThis library is modeled after the [php-github-api](https://github.com/ornicar/php-github-api) library built by [ornicar](https://github.com/ornicar)\n\nUses [EchoNest API v4](http://developer.echonest.com/docs/v4/).\n\nRequires\n\n * PHP 5.2 or 5.3.\n * [php curl](http://php.net/manual/en/book.curl.php) but it is possible to write another transport layer..\n\nIf the method you need does not exist yet, dont hesitate to request it with an [issue](http://github.com/bshaffer/php-echonest-api/issues)!\n\n## Autoload\n\nThe first step to use php-echonest-api is to register its autoloader:\n\n    require_once '/path/to/lib/EchoNest/Autoloader.php';\n    EchoNest_Autoloader::register();\n\nReplace the `/path/to/lib/` path with the path you used for php-echonest-api installation.\n\n\u003e php-echonest-api follows the PEAR convention names for its classes, which means you can easily integrate php-echonest-api classes loading in your own autoloader.\n\n## Instanciate a new EchoNest Client\n\n    $echonest = new EchoNest_Client();\n\nFrom this object you can now access all of the different EchoNest APIs (listed below)\n\n### Authenticate a user\n\nAuthenticate using your EchoNest API Key.  You can obtain one at EchoNest by [Registering an Account](http://developer.echonest.com/account/register)\n\n    $echonest-\u003eauthenticate($apiKey);\n\n### Deauthenticate a user\n\nCancels authentication.\n\n    $echonest-\u003edeAuthenticate();\n\nNext requests will not be authenticated\n\n## Artists\n\nFor searching artists, getting artist information and music.\nWraps [EchoNest Artist API](http://developer.echonest.com/docs/v4/artist.html).\n\n    $artistApi = $echonest-\u003egetArtistApi();\n\n### Search for artists by name\n\n    $results = $echonest-\u003egetArtistApi()-\u003esearch(array('name' =\u003e 'Radiohead'));\n    print_r($results);\n    \n      Array\n      (\n          [status] =\u003e Array\n              (\n                  [version] =\u003e 4.2\n                  [code] =\u003e 0\n                  [message] =\u003e Success\n              )\n\n          [artists] =\u003e Array\n              (\n                  [0] =\u003e Array\n                      (\n                          [name] =\u003e Radiohead\n                          [id] =\u003e ARH6W4X1187B99274F\n                      )\n\n              )\n\n      )\n\nReturns an array of results as described in [http://developer.echonest.com/docs/v4/artist.html#search](http://developer.echonest.com/docs/v4/artist.html#search)\n\n### Get information about an artist\n\n    $bios = $echonest-\u003egetArtistApi()-\u003esetName('Radiohead')-\u003egetBiographies();\n\nOnce you set an artists name or id on an artist API, the API will remember that artist and use them for future function calls\n\n    $artistApi = $echonest-\u003egetArtistApi();\n    $artistApi-\u003esetName('Radiohead');\n    $bios   = $artistApi-\u003egetBiographies();\n    $audio  = $artistApi-\u003egetAudio();\n    $images = $artistApi-\u003egetImages();\n\nEach function comes with a variety of options.  Please view the documentation in this project or on http://echonest.com to see all the options available\n\n## Songs\n\nApi calls for getting data about songs.\nWraps [EchoNest Song API](http://developer.echonest.com/docs/v4/song.html).\n\n    $songApi = $echonest-\u003egetSongApi();\n    \nPlease view the documentation in this project or on http://echonest.com to see all the options available\n  \n## Playlists\n\nApi calls for generating playlists.\nWraps [EchoNest Playlist API](http://developer.echonest.com/docs/v4/playlist.html).\n\n    $playlistApi = $echonest-\u003egetPlaylistApi();\n    \nPlease view the documentation in this project or on http://echonest.com to see all the options available\n\n## Catalogs\n\nAPI calls for managing personal catalogs.\nWraps [EchoNest Catalog API](http://developer.echonest.com/docs/v4/catalog.html).\n\n    $catalogApi = $echonest-\u003egetCatalogApi();\n    \nPlease view the documentation in this project or on http://echonest.com to see all the options available\n\n## Tracks\n\nMethods for analyzing or getting info about tracks.\nWraps [EchoNest Track API](http://developer.echonest.com/docs/v4/track.html).\n\n    $trackApi = $echonest-\u003egetTrackApi();\n    \nPlease view the documentation in this project or on http://echonest.com to see all the options available\n\n# To Do\n\nBetter documentation and test coverage will be coming soon","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechonest%2Fphp-echonest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fechonest%2Fphp-echonest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechonest%2Fphp-echonest-api/lists"}