PHP code example of jkrusy / music-streaming-link-analyzer

1. Go to this page and download the library: Download jkrusy/music-streaming-link-analyzer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jkrusy / music-streaming-link-analyzer example snippets


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);
shell 
docker-compose run composer install
docker-compose run php /app/vendor/bin/phpunit /app