Laravel Service provider for Awakenweb/Livedocx
This package requires:
- php 5.6+
- Laravel 5+
- awakenweb/livedocx
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!
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();