A Laravel 5 wrapper around opencoconut video encoding library
A Laravel 5 wrapper around coconut video encoding service library (for php).
This package is in its early development and there's still quite a lot of room for improvements. However, it's already working for simple Amazon S3 file uploads.
Feel free to read the official coconut documentation to see all the available features of the official package.
composer require codeurco/laravel-coconutpalm:dev-master
Add the service provider to your
You can also use the Facade to the aliases array:
'Coconutpalm' => Codeurco\Coconutpalm\Facades\Coconutpalm::class;
To start using this package, you have to give the following info in your
COCONUT_API_KEY=your_coconut_api_key # used for local development NGROK_TUNNEL_URL=ngrok_url # currently only Amazon S3 is supported COCONUT_CDN=s3 AWS_KEY=your_s3_key AWS_SECRET=your_s3_secret AWS_BUCKET=your_s3_bucket
Additionally you can change the default paths for you manipulated video files by published the configuration for this package.
You will then be able to modify
To start encoding a file simply use this code
use Codeurco\Coconutpalm\Facades\Coconutpalm; ... Coconutpalm::encode('SomeVideo.mp4');
SomeVideo.mp4 points to a video located in your
The video will be renamed, a configuration file gets created and the encoding job is then started with Coconut.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request