cookieguru / googlemusicsearch
PHP class to search the Google Play Music store
Installs: 1 435
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- php: >=5.3
- ext-curl: *
- ext-dom: *
This package is auto-updated.
Last update: 2020-10-08 00:58:10 UTC
README
This was a PHP class to search the Google Play Music store.
Archive notice
Due to Google's descision to replace Google Play Music with YouTube Music support for this package has ended. According to the announcement on May 12, 2020 the official transition was to begin "later in 2020". The actual transition happened on October 7th, 2020.
Installation
Install with Composer. A sample composer.json
:
{ "require": { "cookieguru/googlemusicsearch": "~1.0.4" } }
If you're not using Composer, just include API.php
and GoogleMusicTrack.php
Usage
require 'vendor/autoload.php'; $api = new \cookieguru\googlemusicsearch\API(); $api->setUserAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0'); $api->verifyPeer(false); //This line may not be needed in your situation $results = $api->search('Wezz Devall feat. Alana Aldea - On The Rise (Original Mix)'); print_r($results[0]);
Outputs:
cookieguru\googlemusicsearch\GoogleMusicTrack Object
(
[url] => https://play.google.com/store/music/album?id=Bhtcvtbwf7q532tc7xk4j3j4hia&tid=song-Turpkonwsebw6hzstiith765abu
[artist] => Wezz Devall feat. Alana Aldea
[title] => On The Rise (Original Mix)
[price] => $1.29
)
Copyright and License
Copyright (c) 2014 Cookie Guru
This class is licensed under the The MIT License.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.