PHPackages                             acekyd/laravelmp3 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. acekyd/laravelmp3

ActiveLibrary[Image &amp; Media](/categories/media)

acekyd/laravelmp3
=================

A light weight Laravel package for simple operations with mp3 files

1.0.3(9y ago)213.7k[3 PRs](https://github.com/acekyd/laravelMp3/pulls)GPL-2.0PHP ^5.3.3 || ^7.0

Since Aug 30Compare

[ Source](https://github.com/acekyd/laravelMp3)[ Packagist](https://packagist.org/packages/acekyd/laravelmp3)[ Docs](https://github.com/acekyd/laravelmp3)[ RSS](/packages/acekyd-laravelmp3/feed)WikiDiscussions Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

LaravelMP3
==========

[](#laravelmp3)

> Laravel Package to help you work with mp3 files easily. Simple yet powerful. Built on the getID3

Install
-------

[](#install)

[PHP](https://php.net) 5.5+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.

Via Composer

```
$ composer require acekyd/laravelmp3
```

Another alternative is to simply add the following line to the require block of your `composer.json` file.

```
"acekyd/laravelmp3": "1.*"

```

Then run `composer install` or `composer update` to download it and have the autoloader updated.

Add this to your providers array in `config/app.php`

```
// Laravel 5.2: config/app.php

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

This package also comes with a facade

```
// Laravel 5: config/app.php

'aliases' => [
    ...
    'LaravelMP3' => Acekyd\LaravelMP3\LaravelMP3Facade::class,
    ...
]
```

Usage
-----

[](#usage)

Laravel MP3 requires you to pass only one argument which is the filepath. Can be done during or after upload. Use it in your controllers to get the data you might need.

Add it to your controller if needed

```
	use LaravelMP3;
```

```
	$file = $request->file('music');
	$details = LaravelMP3::getBitrate($file); //This returns the bitrate of the music file
```

Functions
---------

[](#functions)

- getAlbum($path) //This returns the Album name
- getArtist($path) //This returns the Artist name
- getBitrate($path) //This returns the bitrate
- getDuration($path) //This returns the playtime duration of the mp3 e.g 00:03:45
- getFormat($path) //This returns the file format e.g mp3
- getGenre($path) //This returns the audio genre
- getMime($path) //This returns the mime type e.d "audio/mpeg"
- getTitle($path) //This returns the Title/Name of audio file
- getTrackNo($path) //This returns the Album track no of an audio file
- getYear($path) //This returns the Album year of an audio file
- isLossless($path) //This returns true or false if the audio file is lossless

Credits
-------

[](#credits)

- [Abati 'AceKYD' Adewale](https://twitter.com/ace_kyd)

License
-------

[](#license)

The GPL License.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3591d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cdd8006eb5d2af4e4fe3f17fd3fd4c8731f3915df5b488b28cd03db0b5093ce1?d=identicon)[acekyd](/maintainers/acekyd)

---

Top Contributors

[![acekyd](https://avatars.githubusercontent.com/u/4003538?v=4)](https://github.com/acekyd "acekyd (27 commits)")[![muhammad-naderi](https://avatars.githubusercontent.com/u/8791318?v=4)](https://github.com/muhammad-naderi "muhammad-naderi (1 commits)")

---

Tags

laravelaudiomediamp3

### Embed Badge

![Health badge](/badges/acekyd-laravelmp3/health.svg)

```
[![Health](https://phpackages.com/badges/acekyd-laravelmp3/health.svg)](https://phpackages.com/packages/acekyd-laravelmp3)
```

###  Alternatives

[happyworm/jplayer

jPlayer allows you to create a media player with a consistent interface and experience across all browsers.

4.6k114.5k1](/packages/happyworm-jplayer)[classic-o/nova-media-library

Tool and field that will let you managing files and add them to the posts

154177.4k](/packages/classic-o-nova-media-library)[tomatophp/filament-media-manager

Manage your media files using spatie media library with easy to use GUI for FilamentPHP

14849.5k3](/packages/tomatophp-filament-media-manager)[synchro/laravel-medialibrary-audio

Audio file thumbnail generator for Spatie's Laravel Media Library

303.4k](/packages/synchro-laravel-medialibrary-audio)[stepanenko3/nova-media-field

A Laravel Nova field for laravel-medilibrary.

1817.8k](/packages/stepanenko3-nova-media-field)[mariojgt/witchcraft

A Laravel Package Witchcraft, a quick start for new laravel Packages

322.8k](/packages/mariojgt-witchcraft)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
