Giter Site home page Giter Site logo

php-id3's Introduction

PHP ID3 Extension

A PHP Library for Editing MP3 Tags (id3)

These functions let you read and manipulate ID3 tags. ID3 tags are used in MP3 files to store title of the song, as well as information about the artist, album, genre, year and track number. Since version 0.2 it is also possible to extract text frames from ID3 v2.2+ tags.

Dependencies

Make sure you have these packages before going to Installation of the extension

  1. gcc
  2. php
  3. php-devel

Installation

  1. Use 'git clone' to make a copy of this repository :

    git clone https://github.com/rseyf/php-id3.git

  2. Change current Directory to the id3-0.2 directory :

    cd php-id3/id3-0.2

  3. Install Everything :

    sudo phpize && ./configure && make && make test && make install

  4. Add 'id3.so' to the end of your 'php.ini' file :

    sudo echo -n "extension=id3.so" >> /etc/php.ini

TIP1: To find your php.ini file location run : 'php -i | grep php.ini'

TIP2: To run a command as a superuser in redhat distro run: ' su -c "echo -n "extension=id3.so" >> /etc/php.ini" '

  1. Test installation:

    php -i | grep id3

You should see something like : 'id3 support => enabled'

@TODO

If you are a php developer who is interested to improve music functions for php , there is a lot of job todo! some of 'em:

  1. Developing a Full functional PHP Class for php-id3

  2. Developing a Bundle for Symfony2 with composer package

  3. And More...

LICENSE

See LICENSE for more informations By PHP Group

##NOTE: This CODE IS OWNED BY PHP.NET ! but This repository IS NOT A PART OF OFFICIAL PHP.NET WEBSITE. its ABSOLUTLY PERSONAL!!

I have just created this repository for the personal use in my music website project and I shared it to have a document for later use on installation process.

It Works...

Now you can use php-id3 functions inside of your code .

See PHP-id3 Functions: http://php.net/manual/en/ref.id3.php

If you need a Composer-enabled PHP Class to handle your MP3 tag editing in PHP , take a look at Shubham Jain's amazing work here : https://github.com/shubhamjain/PHP-ID3

Follow me if you like music-based codes..Have a Happy coding ;)

php-id3's People

Contributors

rseyf avatar

Stargazers

 avatar

Watchers

 avatar  avatar

php-id3's Issues

It doesn't seem to work on PHP 7+

When I try to run pecl install --force id3, I get the following warning:

pear/id3 requires PHP (version >= 4.3.0, version <= 6.0.0), installed version is 7.4.1

And then the instalation gives me an error. Full output:

# pecl install --force id3
WARNING: failed to download pecl.php.net/id3 within preferred state "stable", will instead download version 0.2, stability "alpha"
warning: pear/id3 requires PHP (version >= 4.3.0, version <= 6.0.0), installed version is 7.4.1
downloading id3-0.2.tgz ...
Starting to download id3-0.2.tgz (20,693 bytes)
........done: 20,693 bytes
4 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module

ERROR: `phpize' failed

When I try to manually install it cloning the repository and running the suggested commands, make fails (its full output is kinda big so I won't post it here unless it's asked).

I wish I had the knowledge to provide a PR to fix this, but unfortunately I don't

‘ENFORCE_SAFE_MODE’ undeclared

I tried to install this id3 extension on my machine but getting many issues when trying to run make command. Like
id3.c:291:74: error: ‘ENFORCE_SAFE_MODE’ undeclared (first use in this function)
id3.c:296:4: error: expected ‘;’ before ‘break’
id3.c:384:63: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4 add_assoc_stringl(return_value, "title", title, bytes_read, 1);

Many more. Can you please check all the issues and fixed theme.
Thanks,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.