PHP code example of ajtarragona / alfresco-laravel

1. Go to this page and download the library: Download ajtarragona/alfresco-laravel 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/ */

    

ajtarragona / alfresco-laravel example snippets


use Alfresco;
...
public  function  test(){
    $file=Alfresco::getDocument("xxx-yyy-zzz");
    ...
}

'aliases'  =>  [
    ...
    'Alfresco'  =>  Ajtarragona\AlfrescoLaravel\Facades\Alfresco::class
]

use Ajtarragona\AlfrescoLaravel\Models\AlfrescoService;
...

public  function  test(AlfrescoService  $client){
    $file=$client->getDocument("xxx-yyy-zzz");
    ...
}

...
public  function  test(){
    $file=alfresco()->getDocument("xxx-yyy-zzz");
    ...
}
bash
php artisan vendor:publish --tag=ajtarragona-alfresco