Download the PHP package podcasthosting/audiowaveform-php-client without Composer
On this page you can find all versions of the php package podcasthosting/audiowaveform-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download podcasthosting/audiowaveform-php-client
More information about podcasthosting/audiowaveform-php-client
Files in podcasthosting/audiowaveform-php-client
Package audiowaveform-php-client
Short Description A PHP wrapper for easy access to the BBC project audiowaveform client.
License MIT
Homepage https://github.com/podcasthosting/audiowaveform-php-client
Informations about the package audiowaveform-php-client
This project is straight forward to use. It implements all the arguments from the commandline audiowaveform command as methods. The script calls the shell command. So audiowaveform has to be installed for this script to work.
Create a new instance of the AudiowaveformClient class to work with it. It automatically tries to detect where the audiowaveform command is installed.
$ac = new AudiowaveformClient();
Get the version of the installed audiowaveform:
echo $ac->getVersion();
The __constructor()
method calls a method called detectAndSetPath()
to find the audiowaveform
binary.
You can override the name of the binary by using the setter method setBinaryName(string $binaryName)
.
All parameters have their own setter method:
setColors(string $color)
setWaveformColor(string $color)
setBorderColor(string $color)
setBackgroundColor(string $color)
setAxisLabelColor(string $color)
setInputFilename(string $name)
setInputFormat(string $name)
setOutputFilename(string $name)
setSplitChannels()
setPixelsPerSecond(Int $pixels)
setBits(Int $bits)
setStart(Int $start)
setEnd(Int $end)
setWidth(Int $width)
setHeight(Int $height)
setNoAxisLabels()
setWithAxisLabels()
setAmplitudeScale(Float $scale)
setCompression(Int $level)
setCompression(Int $level)
setQuiet()
- and more
setInputFilename()
and setOutputFilename()
are required.
After you have set all parameters you have to call the execute()
method to run the program, e.g.
You can also chain all setters: