Download the PHP package pbxg33k/music-info without Composer
On this page you can find all versions of the php package pbxg33k/music-info. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pbxg33k/music-info
More information about pbxg33k/music-info
Files in pbxg33k/music-info
Package music-info
Short Description Combine the power of multiple music related API Services and get the complete information for your music
License LGPL-3.0
Informations about the package music-info
MusicInfo Library
This PHP library enables you to combine multiple music related API Services to lookup information about music. See Supported Services to see which services are supported.
Requirements
In order to use this library your environment MUST meet the following criteria:
- PHP 5.6 (or later)
- curl extension
Installation
Using Composer (recommended)
Add the music-info package to your composer.json
file.
Or via the command line in the root of your project's installation.
This will install the latest stable version.
To try the latest features, add During this development stage master-dev will have the latest stable development version untill 1.0.0 has been releasedmaster-dev
as version. But be warned, this branch is unstable and not intended for production use.
Without composer
- Download this repository as a zip file.
- Extract the content of the zip file to a directory in your application
- Add files to your project
- Map
pbxg33k/music-info
to this directory if your autoloader is PSR-4 compatible - Include
autoloader.php
to your project bootstrap if either you don't have an autoloader or your autoloader is not PSR-4 compatible
- Map
Configuration
Services
Version | General | Track | Artist | Album | Comments | |
---|---|---|---|---|---|---|
Spotify | 0.1 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | |
VocaDB | 0.1 | :white_check_mark: | :heavy_multiplication_x: | :white_check_mark: | :white_check_mark: | |
MusicBrainz | 0.1 | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | Low priority, depending on demand |
Discogs | N/A | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | Release version not decided |
:heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: | Service cancelled in favor of Spotify [1] |
Adding custom services
When adding a custom service make sure the service file implements the IMusicService interface, or even better, extends the Pbxg33k\MusicInfo\Service\BaseService
abstract class.
The abstract class offers some basic logic and provides better compatibility with this library.
When your service is code compliant you can register it by simply calling MusicInfo->addService(IMusicService $service, string $key)
.
When registering make sure the key is not in use, using an already registered key will override it and replace it.
Changelog
Please see CHANGELOG.md
Todo
Please see TODO.md
License
Copyright (c) 2016-2017 Oguzhan Uysal This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
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.
All versions of music-info with dependencies
guzzlehttp/guzzle Version ^6.0
symfony/dependency-injection Version ^2.8|^3.1
symfony/http-foundation Version ^2.8|^3.1
symfony/http-kernel Version ^2.8|^3.1
symfony/config Version ^2.8|^3.0
symfony/yaml Version ^2.8|^3.0
doctrine/collections Version ^1.3
pbxg33k/pbxg33k-traits Version ^1.0
pbxg33k/vocadb Version ^0.1.3.2
jwilsson/spotify-web-api-php Version ^1.3
pbxg33k/musicbrainz Version ^0.3.0
symfony/console Version ^2.8|^3.1
guzzlehttp/psr7 Version ^1.4