jkrusy/music-streaming-link-analyzer

There is no license information available for the latest version (0.1.0) of this package.

Get the streaming provider from the streaming link

0.1.0 2023-03-13 17:45 UTC

This package is auto-updated.

Last update: 2024-05-13 20:21:55 UTC


README

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