LaravelPackages.net
Acme Inc.
Toggle sidebar
alcales/laravel-docuware

Docuware SDK Laravel

20
1
v0.0.1
About alcales/laravel-docuware

alcales/laravel-docuware is a Laravel package for docuware sdk laravel. It currently has 1 GitHub stars and 20 downloads on Packagist (latest version v0.0.1). Install it with composer require alcales/laravel-docuware. Discover more Laravel packages by alcales or browse all Laravel packages to compare alternatives.

Last updated

Installation

You can install the package via composer:

composer require alcales/laravel-docuware

The package will automatically register itself.

Optionally you can publish the config-file:

php artisan vendor:publish --provider="ALCales\Docuware\DocuwareServiceProvider" --tag="config"

Here's what that looks like:

return [

    'url_root' => env('DOCUWARE_URL'),

    'user' => env('DOCUWARE_USER'),

    'password' => env('DOCUWARE_PASSWORD'),

];

you can define the credentials in environment variables in the .env file

DOCUWARE_URL=
DOCUWARE_USER=
DOCUWARE_PASSWORD=

Usage

Initialize.

$docuware = new Docuware($urlHost, $user, $password);

// If the credentials are not defined in the constructor, the ones established in the environment variables of the `.env` file will be obtained.
$docuware = new Docuware();

Principal funtions

$documentListArray = $docuware->getDocumentsList('your_gabinet_id');

$downloadedSuccessfully = $docuware->downloadDocument('your_gabinet_id', 'your_document_id', 'your_storage_path');

$fields = [
    new DocuwareField('Name', 'Alejandro', 'String'),
    new DocuwareField('Ages', 28, 'Int'),
];

$updateSuccessfully = $docuware->updateIndexValues('your_gabinet_id', 'your_document_id', $fields);
Comments