Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

awakenweb/livedocx4laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This package is not maintained anymore

Livedocx service will shut down on Sept. 30th 2017.

livedocx4laravel

Laravel Service provider for Awakenweb/Livedocx

Prerequisites

This package requires:

To use the Laravel 4 version, go to the laravel-4 branch of this package. Installation

Add the following line to your composer.json

"require": {
    "awakenweb/livedocx4laravel": "2.*"
}

Edit your config/app.php to add the service provider and the facade:

'providers' => [
    ...
    Awakenweb\Livedocx4Laravel\LivedocxServiceProvider::class,
],
...
'aliases' => [
    ...
    'Livedocx' => Awakenweb\Livedocx4Laravel\Facades\Livedocx::class,
],

Then run the artisan command to publish the config file:

php artisan config:publish awakenweb/livedocx4laravel

Finally edit the config/livedocx.php file.

Change the wsdl to match your Livedocx account type (free, premium, or fully licensed), username, and password for authentication and you are ready to roll!

Use

The Livedocx facade automatically instanciate Awakenweb/Livedocx/Livedocx and all its dependencies.

Quick example.

//to list all templates present on Livedocx service
$tpl = Livedocx::createRemoteTemplate();
return $tpl->listAll();