This is a fork of pascalbaljetmedia/laravel-ffmpeg, modified to be compatible with PHP 5.6+ instead of just PHP 7.
The following changes were made to make the package compatible with PHP 5.6:
- Changed namespace to "Smarekp\LaravelFFMpeg".
- Removed return type declarations.
- Removed type-hinting of "string", "int", and "float" types.
- Removed and replaced spaceship operators with PHP 5.6 multiple ternary equivalent.
- Removed and and replaced null-coalescing operators with php 5.6 isset() ternary equivalent.
This package provides an integration with FFmpeg for Laravel 5.1 and higher. The storage of the files is handled by Laravel's Filesystem.
- Super easy wrapper around PHP-FFMpeg, including support for filters and other advanced features.
- Integration with Laravel's Filesystem, configuration system and logging handling.
- Compatible with Laravel 5.1 and up.
- PHP 5.6 and up. Older versions of PHP completely untested.
To install this package, you must add the package as well as this repository to your composer.json
file:
{
...
"require": {
...
"smarekp/laravel-ffmpeg": "dev-master",
...
},
"repositories": [
...
{
"type": "vcs",
"url": "https://github.com/smarekp/laravel-ffmpeg"
}
...
],
...
}
Add the service provider and facade to your app.php
config file:
// Laravel 5: config/app.php
'providers' => [
...
Smarekp\LaravelFFMpeg\FFMpegServiceProvider::class,
...
];
'aliases' => [
...
'FFMpeg' => Smarekp\LaravelFFMpeg\FFMpegFacade::class
...
];
Publish the config file using the artisan CLI tool:
php artisan vendor:publish --provider="Smarekp\LaravelFFMpeg\FFMpegServiceProvider"
Please see the Usage section of pascalbaljetmedia/laravel-ffmpeg's readme file.
Please see CHANGELOG for more information what has changed recently. Currently out of date.
This package has not been fully tested.
$ composer test
Please see CONTRIBUTING for details on contributing to the original pascalbaljetmedia/laravel-ffmpeg project.
For any contributions relating specifically to smarekp/laravel-ffmpeg, you can email me at marekphilibert@gmail.com.
If you discover any security related issues, please email pascal@pascalbaljetmedia.com or marekphilibert@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.