laravelMp3
laravelMp3 copied to clipboard
A light weight Laravel package for simple operations with mp3 files
I've tried to launch this package with project on PHP 8.1 and only trouble i've got is curly bracers in string offsets. Only you should do for compatibility is change...
``` "packages": [ { "name": "acekyd/laravelmp3", "version": "1.0.3", "source": { "type": "git", "url": "https://github.com/acekyd/laravelMp3.git", "reference": "28a870499a489fe7da8ce84aba2ffa62903a4d68" }, ``` Consider: ``` Route::get('/me', function () { $mp3 = resolve(\Acekyd\LaravelMP3\LaravelMP3::class); dump($mp3->getDuration('C:\laragon\webroots\www\backpack\2.mp3')); dump($bar->getDuration('C:\laragon\webroots\www\backpack\1.mp3')); });...
It does not output the correct hours:minutes:seconds Just a minor issue. Worked after modifying getDuration method
Hello , not working with some songs. I https://files.fm/u/quesv72x error and https://files.fm/u/p7rrry2s songs not working . Thanks in advanced.
public function getDuration($path) { $lib = $this->load($path); $play_time = $lib['playtime_string']; $hours = 0; list($mins , $secs) = explode(':' , $play_time); if($mins > 60) { $hours = intval($mins / 60); $mins...
Hello! I've got error: Use of undefined constant GETID3_TEMP_DIR - assumed 'GETID3_TEMP_DIR' in LaravelMP3.php (line 14) at HandleExceptions->handleError(8, 'Use of undefined constant GETID3_TEMP_DIR - assumed \'GETID3_TEMP_DIR\'', '/var/www/.../vendor/acekyd/laravelmp3/src/LaravelMP3.php', 14, array('path' =>...
When loading an MP3 file, check if the path appears to be the same; if not, reanalyse the file.