PHPackages                             owen-oj/laravel-getid3 - 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. owen-oj/laravel-getid3

ActiveLibrary

owen-oj/laravel-getid3
======================

This package is a wrapper around james-heinrich/getid3 to extract various information from media files

v2.4(1y ago)85478.7k↓11.8%121MITPHPCI passing

Since Jan 3Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/Owen-oj/laravel-getid3)[ Packagist](https://packagist.org/packages/owen-oj/laravel-getid3)[ Docs](https://github.com/owen-oj/laravel-getid3)[ RSS](/packages/owen-oj-laravel-getid3/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (3)Versions (14)Used By (1)

laravel-getid3
==============

[](#laravel-getid3)

[![Latest Version on Packagist](https://camo.githubusercontent.com/00db6ae4716a3ef3f3d37cae0a0df1bfbbe9473baec17cf47ca920cc8f55a057/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f77656e2d6f6a2f6c61726176656c2d6765746964332e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/owen-oj/laravel-getid3)[![Total Downloads](https://camo.githubusercontent.com/f201d4e0b9863e8a4554586e7bd170d79e651db4aed6353ab2e2a828bc2297b2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f77656e2d6f6a2f6c61726176656c2d6765746964332e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/owen-oj/laravel-getid3)[![StyleCI](https://camo.githubusercontent.com/a89c7a2044186814a2232ad45b1ce2f4b4d22bdb028c8b81440d2580ab0b1ec7/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3136333735343535352f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/163754555)

This package is a wrapper around *james-heinrich/getid3*.

[!["Buy Me A Coffee"](https://camo.githubusercontent.com/9f44ce2dc3b3eecdd02598900866ffc518801df1932849703dae1e5ce5031070/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f6f72616e67655f696d672e706e67)](https://www.buymeacoffee.com/kkoj)

Installation
------------

[](#installation)

Via Composer

```
$ composer require owen-oj/laravel-getid3
```

If you use Laravel 5.5+ you don't need the following step. If not, once package is installed, you need to register the service provider. Open config/app.php and add the following to the providers key.

```
 Owenoj\LaravelGetId3\GetId3ServiceProvider::class,
```

Usage
-----

[](#usage)

```
use Owenoj\LaravelGetId3\GetId3;

//instantiate class with file
$track = new GetId3(request()->file('file'));

// Use static methods:
$track = GetId3::fromUploadedFile(request()->file('file'));
$track = GetId3::fromDiskAndPath('local', '/some/file.mp3');
$track = GetId3::fromDiskAndPath('s3', '/some/file.mp3'); // even works with S3

//get all info
$track->extractInfo();

//get title
$track->getTitle();

//get playtime
$track->getPlaytime();
```

We can also extract the artwork from the file

```
//calling this method will return artwork in base64 string
$track->getArtwork();
//Optionally you can pass can pass `true` to the method to get a jpeg version. This will return an UploadedFile instance
$track->getArtwork(true);
```

Available Methods
-----------------

[](#available-methods)

#### extractInfo() : array

[](#extractinfo--array)

Get an array of all available metadata of file

#### getArtist() : string

[](#getartist--string)

Get the artist of the track

#### getTitle() : string

[](#gettitle--string)

Get the title of the track

#### getAlbum() : string

[](#getalbum--string)

Get name of Album

#### getPlaytime() : string

[](#getplaytime--string)

Get a tracks total playtime

#### getPlaytimeSeconds() : float

[](#getplaytimeseconds--float)

Get total playtime in seconds

#### getArtwork()

[](#getartwork)

Get the artwork of the track

#### getGenres() : array

[](#getgenres--array)

Get the list of genres

#### getComposer() : string

[](#getcomposer--string)

Get the composers of the track

#### getTrackNumber() : string

[](#gettracknumber--string)

Get the track number out of total number on album eg. 1/12

#### getCopyrightInfo() : string

[](#getcopyrightinfo--string)

Get copyright information of the track

#### getFileFormat() : string

[](#getfileformat--string)

Get the file format of the file eg. mp4

#### getYear() : string

[](#getyear--string)

Get the year of the track

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Owen Jubilant](https://github.com/owen-oj)
- [All Contributors](../../contributors%5D)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance67

Regular maintenance activity

Popularity51

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 75.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 ~224 days

Recently: every ~274 days

Total

11

Last Release

447d ago

Major Versions

v0.1-beta.1 → v1.02020-06-18

v1.3 → v2.02022-02-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/696072a2631e412e7034cdffb063a41ea7754c8a719e66cfed044004a9ac5d10?d=identicon)[Owen-oj](/maintainers/Owen-oj)

---

Top Contributors

[![Owen-oj](https://avatars.githubusercontent.com/u/13623015?v=4)](https://github.com/Owen-oj "Owen-oj (49 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![nvahalik](https://avatars.githubusercontent.com/u/632120?v=4)](https://github.com/nvahalik "nvahalik (4 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")[![mrtawil](https://avatars.githubusercontent.com/u/63475475?v=4)](https://github.com/mrtawil "mrtawil (1 commits)")[![bumbummen99](https://avatars.githubusercontent.com/u/4533331?v=4)](https://github.com/bumbummen99 "bumbummen99 (1 commits)")[![fan711](https://avatars.githubusercontent.com/u/13937640?v=4)](https://github.com/fan711 "fan711 (1 commits)")

---

Tags

audioaudio-metadatafile-metadatagetid3id3id3v1id3v2laravellaravel-7-packagelaravel-8-packagelaravel-getid3laravel-packagelaravel8laravel9musiclaravelgetid3laravel-getid3

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/owen-oj-laravel-getid3/health.svg)

```
[![Health](https://phpackages.com/badges/owen-oj-laravel-getid3/health.svg)](https://phpackages.com/packages/owen-oj-laravel-getid3)
```

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[glhd/linen

21135.6k](/packages/glhd-linen)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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