aspose/cloud-laravel

This is a Laravel Package to use Aspose cloud in Laravel 4 & 5 applications quickly and easily. Aspose for Cloud is a REST API to work with a number of file formats including word precessing documents, spreadsheets, presentations, PDFs and images.

Downloads

489

Stars

0

Version

PHP version

#Aspose Cloud for Laravel

This package allows you to work with Aspose Cloud SDK in your Laravel 4 & 5 applications quickly and easily.

Installation

Add the following line to your composer.json file.

require: {	
		"aspose/cloud-laravel": "~1.0"
}

Run from terminal.

composer update

Laravel 4 Integration

Add package to the list of providers. In config/app.php, add the following line to the providers array.

'Aspose\Cloud\CloudServiceProvider',

Publish config file 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

Laravel 5 Integration

Add package to the list of providers. In config/app.php, add the following line to the providers array.

'Aspose\Cloud\CloudServiceProvider',

Publish config file 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' => ''
);

Usage

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;

Please visit Wiki for articles and examples.

Documentation

For most complete documentation of the plugin, please visit Docs Wiki.

Start a Free Trail Today

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.

asposeforcloud

Author

asposeforcloud