PHP code example of alcales / laravel-docuware

1. Go to this page and download the library: Download alcales/laravel-docuware library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alcales / laravel-docuware example snippets


return [

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

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

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

];

$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();

$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);
bash
php artisan vendor:publish --provider="ALCales\Docuware\DocuwareServiceProvider" --tag="config"