bitsec01/waveform
Composer 安装命令:
composer require bitsec01/waveform
包简介
Waveform generator for php 7.0
关键字:
README 文档
README
Just a simple wrapper for "waveform" c script written by "Andrew Kelley"
This FORK updates the version to be compatible with PHP 7.0 and it fixes a --png argument issue that the original "polem/waveform" had.
Installation
Using Composer
{
"require" : {
"bitsec01/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');
统计信息
- 总下载量: 912
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-12