All Projects → Owen-oj → laravel-getid3

Owen-oj / laravel-getid3

Licence: MIT license
A Laravel package to extract metadata from media files. mp3, aac, etc. It can be used with files stored on different disks such as local disk, S3 etc.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-getid3

audio-metadata
A library for reading and, in the future, writing audio metadata. https://audio-metadata.readthedocs.io/
Stars: ✭ 41 (-18%)
Mutual labels:  id3v2, id3v1, id3, audio-metadata
dart-tags
ID3 Tag parser written on the pure dart language.
Stars: ✭ 35 (-30%)
Mutual labels:  id3v2, id3v1, id3
laravel-two-factor-authentication
A two-factor authentication package for Laravel >= 8
Stars: ✭ 37 (-26%)
Mutual labels:  laravel-package, laravel-7-package, laravel-8-package
Mp3ID3Tagger
🎶🎵A macOS application to edit the ID3 tag of your mp3 files. Developed with RxSwift and RxCocoa. 🎸🎼
Stars: ✭ 17 (-66%)
Mutual labels:  id3v2, id3v1, id3
mp3tag.js
MP3 tagging library written in pure JavaScript for Node.js and browsers
Stars: ✭ 39 (-22%)
Mutual labels:  id3v2, id3v1, id3
meta-audio
A PHP library to read and write metadata tags to audio files (MP3, ID3, APE, etc)
Stars: ✭ 32 (-36%)
Mutual labels:  id3v2, id3v1
Telegram Bot Sdk
🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
Stars: ✭ 2,212 (+4324%)
Mutual labels:  laravel-package, laravel-7-package
Mp3Info
The fastest PHP library to extract mp3 meta information (duration, bitrate, samplerate and so on) and tags (id3v1, id3v2).
Stars: ✭ 114 (+128%)
Mutual labels:  id3v2, id3v1
rust-id3
A rust library for reading and writing ID3 metadata
Stars: ✭ 161 (+222%)
Mutual labels:  id3v2, id3
laravel-startkit
Laravel Admin Dashboard, Admin Template with Frontend Template, for scalable Laravel projects. It is to save your time when You start with new scalable Laravel projects with many features Bootstrap, cooreui, infyom admin Generator, roles and permissions, translatable models, spatie media and much more
Stars: ✭ 55 (+10%)
Mutual labels:  laravel-package, laravel8
gitup
Laravel package to upload git commits to server(s) via (s)ftp.
Stars: ✭ 20 (-60%)
Mutual labels:  laravel-package
swaggervel
Swagger for Laravel
Stars: ✭ 70 (+40%)
Mutual labels:  laravel-package
IdSharp
.NET ID3 Tagging Library
Stars: ✭ 50 (+0%)
Mutual labels:  id3
atlassian-connect-core
[Laravel 5.5+] The easiest way to create an add-on for the JIRA and Confluence
Stars: ✭ 42 (-16%)
Mutual labels:  laravel-package
laravel-sybase
Connection and Laravel Eloquent driver for Sybase
Stars: ✭ 29 (-42%)
Mutual labels:  laravel-package
laravel-print-api
Laravel package to access our print-api
Stars: ✭ 16 (-68%)
Mutual labels:  laravel-package
apposite
Conditionally apply Laravel validation rules, even when you don't have access to the validator instance.
Stars: ✭ 36 (-28%)
Mutual labels:  laravel-package
airbrake-laravel
Laravel package for the Airbrake API, which supports Errbit
Stars: ✭ 16 (-68%)
Mutual labels:  laravel-package
laravel-test-watcher
Laravel Test Watcher
Stars: ✭ 20 (-60%)
Mutual labels:  laravel-package
laravel-jwt-auto-installer
A Laravel Library that let's you add tymon jwt auth library and all it's features with single command
Stars: ✭ 19 (-62%)
Mutual labels:  laravel-package

laravel-getid3

Latest Version on Packagist Total Downloads StyleCI

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

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

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

extractInfo() : array

Get an array of all available metadata of file

getArtist() : string

Get the artist of the track

getTitle() : string

Get the title of the track

getAlbum() : string

Get name of Album

getPlaytime() : string

Get a tracks total playtime

getPlaytimeSeconds() : float

Get total playtime in seconds

getArtwork()

Get the artwork of the track

getGenres() : array

Get the list of genres

getComposer() : string

Get the composers of the track

getTrackNumber() : string

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

getCopyrightInfo() : string

Get copyright information of the track

getFileFormat() : string

Get the file format of the file eg. mp4

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

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

Credits

License

MIT. Please see the license file for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].