Skip to content

asposeforcloud/asposesymfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP version

#Aspose Cloud for Symfony

This bundle allows you to work with Aspose Cloud SDK in your Symfony applications

Installation

Add the following lines to your composer.json file:

// composer.json
{
    require: {
        "aspose/cloud-bundle": "~0.3"
    },
    "prefer-stable": true,
}

Install the new dependencies by running composer update from the directory where your composer.json file is located.

Update your AppKernel.php by registering the new bundle:

// app/AppKernel.php
public function registerBundles()
{
    // ...
     new Aspose\Bundle\CloudBundle\AsposeCloudBundle(),
    // ...
);
}

Add you Aspose API key to your config

// app/config/config.yml

aspose_cloud:
    url: http://api.aspose.com/v1.1
    app:
        sid: yoursidhere
        key: yourkeyhere
        outputLocation: "%kernel.cache_dir%/aspose_cloud/" # let the API save files in the cache directory by default

Usage

To configure the initial credentials in the static fields of the AsposeApp, first get it from the container

// Bundle/Controller/DemoController.php
$app = $this->get('aspose.app');

$wordConverter = $this->get('aspose.wordsconverter');
$wordConverter->setFilename($absolutePath)
              ->convert();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages