Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

scribbr/asposesymfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

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

Private duplicate of https://github.com/asposeforcloud/asposesymfony. We use this in houston to work with Aspose API during files processing. See more: https://docs.google.com/document/d/166mXnUYvEf_pcj7xwjUsQMvOCK5nKZuUSisyB_LijwI/edit#heading=h.aknpqmf6tl7q

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages