2017 © Pedro Peláez
 

library laravel-coconutpalm

A Laravel 5 wrapper around opencoconut video encoding library

image

codeurco/laravel-coconutpalm

A Laravel 5 wrapper around opencoconut video encoding library

  • Monday, June 26, 2017
  • by naimkhalifa
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 50 % Grown

The README.md

laravel-coconutpalm

A Laravel 5 wrapper around coconut video encoding service library (for php)., (*1)

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., (*2)

Feel free to read the official coconut documentation to see all the available features of the official package., (*3)

Installation

composer require codeurco/laravel-coconutpalm:dev-master

Add the service provider to your config\app.php file, (*4)

Codeurco\Coconutpalm\CoconutpalmServiceProvider::class

You can also use the Facade to the aliases array:, (*5)

'Coconutpalm' => Codeurco\Coconutpalm\Facades\Coconutpalm::class;

Configuration

To start using this package, you have to give the following info in your .env variables:, (*6)

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 videos_source_path and videos_destination_path ., (*7)

Usage

To start encoding a file simply use this code, (*8)

use Codeurco\Coconutpalm\Facades\Coconutpalm;

...

Coconutpalm::encode('SomeVideo.mp4');

Where SomeVideo.mp4 points to a video located in your videos_source_path. The video will be renamed, a configuration file gets created and the encoding job is then started with Coconut., (*9)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

The Versions

26/06 2017

dev-master

9999999-dev https://github.com/codeurco/laravel-coconutpalm

A Laravel 5 wrapper around opencoconut video encoding library

  Sources   Download

MIT

The Requires

 

video coconutphp opencoconut laravel-opencoconut