2017 © Pedro Peláez
 

project php-eyed3

A PHP wrapper for reading and updating ID3 meta data of (e.g.) MP3 files using eyeD3

image

stormiix/php-eyed3

A PHP wrapper for reading and updating ID3 meta data of (e.g.) MP3 files using eyeD3

  • Saturday, May 26, 2018
  • by Stormiix
  • Repository
  • 1 Watchers
  • 1 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 79 % Grown

The README.md

php-eyed3

GitHub stars GitHub forks Build Status Donations Badge, (*1)

A PHP wrapper for reading and updating ID3 meta data of (e.g.) MP3 files using eyeD3, (*2)

Requirements

You need PHP >= 7.0 to use the library, but the latest stable version of PHP is recommended., (*3)

Installation

  1. Make sure you have eyeD3 installed.
  2. Install package
    composer require stormiix/php-eyed3 dev-master

This will edit (or create) your composer.json file and automatically choose the most recent version. 3. Require autoload.php, (*4)

    require __DIR__ . '/vendor/autoload.php';

Usage

    use Stormiix\EyeD3\EyeD3;

    $eyed3 = new EyeD3("mp3 file path");
    $tags = $eyed3->readMeta();
    // $tags is an array that contains the following keys:
    // artist, title, album, comment(s), lyrics ..etc

    $meta = [
        "artist" => "MyArtist",
        "title" => "MyTitle",
        "album" => "MyAlbum",
        "comment" => "MyComment",
        "lyrics" => "MyLyrics",
        "album_art" => "cover.png"
    ];
    // Update the mp3 file with the new meta tags
    $eyed3->updateMeta($meta);

Running tests

$ phpunit

Authors

P.S: a similar wrapper exists for NodeJs apps: node-eyed3, (*5)

License

This project is licensed under the MIT License - see the LICENSE.md file for details, (*6)

The Versions

26/05 2018

dev-master

9999999-dev

A PHP wrapper for reading and updating ID3 meta data of (e.g.) MP3 files using eyeD3

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Anas Mazouni (Stormiix)

php wrapper eyed3