Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Stormix/php-eyed3
A PHP wrapper for reading and updating ID3 meta data of (e.g.) MP3 files using eyeD3
https://github.com/Stormix/php-eyed3
eyed3 mp3 mp3-tags php
Last synced: about 1 month ago
JSON representation
A PHP wrapper for reading and updating ID3 meta data of (e.g.) MP3 files using eyeD3
- Host: GitHub
- URL: https://github.com/Stormix/php-eyed3
- Owner: Stormix
- License: mit
- Created: 2018-03-31T11:50:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-26T16:47:51.000Z (over 6 years ago)
- Last Synced: 2024-10-13T15:27:49.010Z (2 months ago)
- Topics: eyed3, mp3, mp3-tags, php
- Language: PHP
- Size: 3.36 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-morocco - php-eyed3 - eyed3.svg?style=social)](https://github.com/Stormix/php-eyed3/stargazers) - A PHP wrapper for reading and updating ID3 meta data of (e.g.) MP3 files using eyeD3. By [@Stormix](https://github.com/Stormix) (Uncategorized / Uncategorized)
README
# php-eyed3
[![GitHub stars](https://img.shields.io/github/stars/Stormiix/php-eyed3.svg)](https://github.com/Stormiix/php-eyed3/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/Stormiix/php-eyed3.svg?style=flat)](https://github.com/Stormiix/php-eyed3/network)
[![Build Status](https://img.shields.io/travis/Stormiix/php-eyed3/master.svg?style=flat-square)](https://travis-ci.org/Stormiix/php-eyed3)
[![Donations Badge](https://stormix.co/donate/images/badge.svg)](https://stormix.co/donate/)A PHP wrapper for reading and updating ID3 meta data of (e.g.) MP3 files using eyeD3
## Requirements
You need PHP >= 7.0 to use the library, but the latest stable version
of PHP is recommended.## Installation
1. Make sure you have `eyeD3` installed.
2. Install package
```bash
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
```php
require __DIR__ . '/vendor/autoload.php';
```
## Usage```php
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
* **Anas Mazouni** - [php-eyed3](https://github.com/Stormiix/php-eyed3)
P.S: a similar wrapper exists for NodeJs apps: [node-eyed3](https://github.com/saschagehlich/node-eyed3)
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details