PHPackages                             cookieguru/googlemusicsearch - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. cookieguru/googlemusicsearch

AbandonedArchivedLibrary[API Development](/categories/api)

cookieguru/googlemusicsearch
============================

PHP class to search the Google Play Music store

1.0.4(7y ago)91.5k3MITPHPPHP &gt;=5.3

Since Feb 12Pushed 5y ago2 watchersCompare

[ Source](https://github.com/cookieguru/google-music-search)[ Packagist](https://packagist.org/packages/cookieguru/googlemusicsearch)[ Docs](https://github.com/cookieguru/google-music-search)[ RSS](/packages/cookieguru-googlemusicsearch/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (5)Used By (0)

Google Music Search - Archived
==============================

[](#google-music-search---archived)

This was a PHP class to search the Google Play Music store.

Archive notice
--------------

[](#archive-notice)

Due to [Google's descision to replace Google Play Music with YouTube Music](https://www.pcmag.com/news/rip-google-play-music-users-told-to-migrate-to-youtube-music)support for this package has ended. According to [the announcement on May 12, 2020](https://youtube.googleblog.com/2020/05/youtube-music-transfer-google-play-music-library.html) the official transition was to begin "later in 2020". The actual transition [happened](https://play.google.com/store/apps/theme/promotion_gpm_shutdown_ctp) on October 7th, 2020.

Installation
------------

[](#installation)

Install with [Composer](https://getcomposer.org/). A sample `composer.json`:

```
{
	"require": {
		"cookieguru/googlemusicsearch": "~1.0.4"
	}
}
```

If you're not using Composer, just include `API.php` and `GoogleMusicTrack.php`

Usage
-----

[](#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-and-license)

Copyright (c) 2014 [Cookie Guru](http://github.com/cookieguru)

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.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~391 days

Total

4

Last Release

2575d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78d4a390a0d4c550525b383e842347174aa53e984bf5a72dcd01f7b9e7e55991?d=identicon)[cookieguru](/maintainers/cookieguru)

---

Top Contributors

[![cookieguru](https://avatars.githubusercontent.com/u/1888809?v=4)](https://github.com/cookieguru "cookieguru (17 commits)")

---

Tags

Google MusicGoogle Play Store

### Embed Badge

![Health badge](/badges/cookieguru-googlemusicsearch/health.svg)

```
[![Health](https://phpackages.com/badges/cookieguru-googlemusicsearch/health.svg)](https://phpackages.com/packages/cookieguru-googlemusicsearch)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
