sachin/nde

There is no license information available for the latest version (1.0) of this package.

Library for the Winamp Nullsoft Database Engine format aka NDE,forked from nico@neuralys.com

1.0 2014-08-08 09:49 UTC

This package is not auto-updated.

Last update: 2024-09-23 13:36:57 UTC


README

Reading all the data from Winamp Media Library in PHP

Winamp use a system called the "Nullsoft Database Engine" to store you media library data. Basically everything is stored in two files (main.dat and main.idx). The main class will help you to read the content of this database

$path_to_winamp = 'C:\Users\Administrateur\AppData\Roaming\Winamp\Plugins\ml';

$winamp = new WinampDb( $path );

while( $song = $winamp->next() ) {
    // -- all known fields are available (artist, album, year, filename...)
    echo "Song: " . $song['title'] . "\n";
}

You can also get all songs at a time in an array

$winamp = new WinampDb( $path );
$all_songs = $winamp->all();

Be smart, call close when finished...

$winamp->close();

Credits

This work is greatly inspired from the work of Daniel15 http://www.d15.biz/, on the project ndephp

My work is more concentraded on

  • testability (100% coverage)
  • respect Symfony2 coding standards
  • working easily with composer and packagist, just require the neuralys/nde package, and you're up