polem / waveform
Waveform generator for php 5.3
dev-master
2012-11-05 23:30 UTC
Requires
This package is not auto-updated.
Last update: 2024-12-21 14:58:20 UTC
README
Just a simple wrapper for "waveform" c script written by "Andrew Kelley"
Installation
Using Composer
{ "require" : { "polem/waveform" : "*" } }
php composer.phar install
Running tests
TODO
Usage
<?php include __DIR__ . '/vendor/autoload.php'; use Waveform\WaveformGenerator; // instanciation with the waveform binary path $waveformGenerator = new WaveformGenerator(__DIR__ . '/bin/waveform'); // configuration $waveformGenerator ->setWidth(720) ->setHeight(120) ->setColorBg('FFFFFF', 1) ->setColorCenter('FFCC00', 1) ->setColorOuter('FFCC00', 1) ; // generation $waveformGenerator->run('medias/audiofile.mp3', 'waveform.png');