Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 630 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 630 Bytes

music-streaming-link-analyzer

Analyze streaming links to get the streaming provider.

Installing

Install the package via composer:

composer require jkrusy/music-streaming-link-analyzer

Usage

use JKrusy\MusicStreamingLinkAnalyzer\Analyzer;
use JKrusy\MusicStreamingLinkAnalyzer\Registries\ProviderRegistry;

$registry = new ProviderRegistry();
$registry->load();

// $registry->load('\Your\Own\Namespace');

$analyzer = new Analyzer($registry);
$provider = $analyzer->analyze($url);

Running tests

docker-compose run composer install
docker-compose run php /app/vendor/bin/phpunit /app