cookieguru/googlemusicsearch 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cookieguru/googlemusicsearch

最新稳定版本:1.0.4

Composer 安装命令:

composer require cookieguru/googlemusicsearch

包简介

PHP class to search the Google Play Music store

README 文档

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.

统计信息

  • 总下载量: 1.48k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 9
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 9
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-03