This package allows you to work with Aspose Cloud SDK in your Laravel 4 & 5 applications quickly and easily.
Add the following line to your composer.json file.
require: { "aspose/cloud-laravel": "~1.0" }
Run from terminal.
composer update
Add package to the list of providers. In config/app.php, add the following line to the providers array.
'Aspose\Cloud\CloudServiceProvider',
Publish config files from the terminal.
php artisan config:publish aspose/cloud-laravel
Edit the new config file in the config/packages/aspose/cloud-laravel, enter
appSID & appKey.
return array( 'baseUri' => 'http://api.aspose.com/v1.1', 'appSID' => '', 'appKey' => '' );
In config/packages/aspose, rename cloud-laravel to
cloud
Add package to the list of providers. In config/app.php, add the following line to the providers array.
'Aspose\Cloud\CloudServiceProvider',
Publish config files from the terminal.
php artisan vendor:publish
Edit the new config file in the config/asposecloud.php, enter
appSID & appKey.
return array( 'baseUri' => 'http://api.aspose.com/v1.1', 'appSID' => '', 'appKey' => '' );
Anywhere in your application when you need to access class, just do:
$object = Aspose::get($moduleName, $className, $fileName);
This will return you object of class and you can access properties and methods of class.
In Larave 5, use following namespace at the top of your file.
use Aspose;
For most complete documentation of the plugin, please visit Docs Wiki
Start a free trial today – all you need is to sign up with Aspose for Cloud service. Once you have signed up, you are ready to try powerful file processing features offered by Aspose for Cloud.