Remove silex support
Silex was abandoned 3 years ago, removing its support will allow to bump some dependencies.
This commit is contained in:
parent
df823d86eb
commit
2bed29ffbc
4 changed files with 10 additions and 27 deletions
26
README.md
26
README.md
|
|
@ -714,32 +714,6 @@ $ffprobe = FFMpeg\FFProbe::create();
|
|||
$ffprobe->isValid('/path/to/file/to/check'); // returns bool
|
||||
```
|
||||
|
||||
## Using with Silex Microframework
|
||||
|
||||
The service provider is easy to set up:
|
||||
|
||||
```php
|
||||
$app = new Silex\Application();
|
||||
$app->register(new FFMpeg\FFMpegServiceProvider());
|
||||
|
||||
$video = $app['ffmpeg']->open('video.mpeg');
|
||||
```
|
||||
|
||||
Available options are as follow:
|
||||
|
||||
```php
|
||||
$app->register(new FFMpeg\FFMpegServiceProvider(), array(
|
||||
'ffmpeg.configuration' => array(
|
||||
'ffmpeg.threads' => 4,
|
||||
'ffmpeg.timeout' => 300,
|
||||
'ffmpeg.binaries' => '/opt/local/ffmpeg/bin/ffmpeg',
|
||||
'ffprobe.timeout' => 30,
|
||||
'ffprobe.binaries' => '/opt/local/ffmpeg/bin/ffprobe',
|
||||
),
|
||||
'ffmpeg.logger' => $logger,
|
||||
));
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the [MIT license](http://opensource.org/licenses/MIT).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue