Skip to content

Laravel FFMpeg made compatible with PHP 5.6 and up.

License

Notifications You must be signed in to change notification settings

smarekp/laravel-ffmpeg

 
 

Repository files navigation

Laravel FFMpeg

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.

Features

Installation

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"

Usage

Please see the Usage section of pascalbaljetmedia/laravel-ffmpeg's readme file.

Changelog

Please see CHANGELOG for more information what has changed recently. Currently out of date.

Testing

This package has not been fully tested.

$ composer test

Contributing

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.

Security

If you discover any security related issues, please email pascal@pascalbaljetmedia.com or marekphilibert@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Laravel FFMpeg made compatible with PHP 5.6 and up.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%