Download the PHP package utvarp/music-helper without Composer

On this page you can find all versions of the php package utvarp/music-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package music-helper

Trying to unify music sources into one handy package 🎶

Latest Version on Packagist Total Downloads Build Status

There is a lot of source for music information around. Maybe you just want to search one of them. Maybe you need to have many of the at the same time. This package is here for you!

Installation

You can install the package via composer:

Usage

At the moment, this package will only fetch basic informations:

For now, you need to make extra call to the source API (with the ID) to fetch more detailed information.

In addition to the information from the source API, the package will also perform a string similarity check between a result's track and artist name against the actual searched for result. That way, you could decide not to trust the source' listing order and sort yourself by one of the smililarity score.

Here's how you could play with the package:

Wishlist / Roadmap / Help wanted 👷🚧👷‍♀️

Sources

How to create new source

This should be easy. Follow the next steps and check the corresponding files for the deezer source and just build from there!

  1. Create a new search class in src\Searches\{SourceName}.php. This class should be only responsible to make the search to the source's api.
  2. Create a new model class in src\Models\{SourceName}Result.php. This class should be only responsible to correctly format the results received by the API and set the track, artist and album values using the corresponding methods you can find in the base Result model.
  3. Add sourceName to the possibleSources collection in the constructor of src\Music.php.
  4. (If required) Add a method to set the API key of the source and add the source to the apiKeys collection in the constructor of src\Music.php.
  5. Test your things, but it should now be all ok!

Existing sources

Testing

Changelog

Changes can be found in the release pages of the repo.

Contributing

Contributions are welcome, thanks to everyone who sent something out way :)

License

The MIT License (MIT). Please see License File for more information.


All versions of music-helper with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
atomescrochus/laravel-string-similarities Version ^1.1
deezer/deezer-php-sdk Version dev-master
illuminate/support Version ^5.4
akerbis/musixmatch Version dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package utvarp/music-helper contains the following files

Loading the files please wait ....