Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akiosarkiz/php-mp3
Package for manipulation mp3 files in php
https://github.com/akiosarkiz/php-mp3
mp3 php74 php80
Last synced: 21 days ago
JSON representation
Package for manipulation mp3 files in php
- Host: GitHub
- URL: https://github.com/akiosarkiz/php-mp3
- Owner: AkioSarkiz
- Created: 2020-09-29T13:40:46.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-08T23:30:15.000Z (almost 4 years ago)
- Last Synced: 2024-10-16T01:22:00.447Z (2 months ago)
- Topics: mp3, php74, php80
- Language: PHP
- Homepage:
- Size: 151 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# MP3 PHP
[![Build Status](https://travis-ci.org/AkioSarkiz/php-mp3.svg?branch=master)](https://travis-ci.org/AkioSarkiz/php-mp3)
Package for manipulation mp3 files in php.
### Requires
- Php >= 7.4
- FFmpeg
- Support platform: linux### Example
```php
use AkioSarkiz\Mp3Php\Mp3;// create object
$mp3item = new Mp3('source.mp3');// check is valid
$mp3item->isValid();// get duration of mp3
$mp3item->getDuration();// add meta
$mp3item->addMeta([
'album' => 'custom album',
], 'source_with_meta.mp3');// clear meta
$mp3item->clearMeta('source_clear.mp3');// get all info
$mp3item->getInfo();// get path
$mp3item->getPath();// get size mp3
$mp3item->size();// get kbs of mp3
$mp3item->getKbs();// convert mp3 to your kbs
$mp3item->convert('source_64.mp3', 64);
```