PHP code example of acekyd / laravelmp3

1. Go to this page and download the library: Download acekyd/laravelmp3 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/ */

    

acekyd / laravelmp3 example snippets



// Laravel 5.2: config/app.php

'providers' => [
    ...
    Acekyd\LaravelMP3\LaravelMP3ServiceProvider::class,
    ...
];


// Laravel 5: config/app.php

'aliases' => [
    ...
    'LaravelMP3' => Acekyd\LaravelMP3\LaravelMP3Facade::class,
    ...
]
 php
	$file = $request->file('music');
	$details = LaravelMP3::getBitrate($file); //This returns the bitrate of the music file