PHP code example of kevinem / adobe-sign-laravel

1. Go to this page and download the library: Download kevinem/adobe-sign-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/ */

    

kevinem / adobe-sign-laravel example snippets


'providers' => [
    // Other service providers...

    KevinEm\AdobeSignLaravel\AdobeSignLaravelServiceProvider::class,
],


'aliases' => [
    // Other facades...
    
    'AdobeSign' => KevinEm\AdobeSignLaravel\Facades\AdobeSignLaravel::class,
],

$ php artisan vendor:publish

AdobeSignLaravel::getAgreements([
    query: 'apples',
]);

AdobeSignLaravel::createAgreement([
     'documentCreationInfo' => [
         'fileInfos' => [
             'libraryDocumentId' => 'adobe_sign_contract_id'
         ],
         'name' => 'Default Contract',
         'signatureType' => 'ESIGN',
         'recipientSetInfos' => [
             'recipientSetMemberInfos' => [
                 'email' => '[email protected]'
             ],
             'recipientSetRole' => [
                 'SIGNER'
             ]
         ],
         'mergeFieldInfo' => [
             [
                 'fieldName' => 'AddressStreet1',
                 'defaultValue' => ''
             ],
             [
                 'fieldName' => 'AddressStreet2',
                 'defaultValue' => ''
             ],
             [
                 'fieldName' => 'AddressCity',
                 'defaultValue' => ''
             ],
             [
                 'fieldName' => 'AddressState',
                 'defaultValue' => ''
             ],
             [
                 'fieldName' => 'AddressPostal',
                 'defaultValue' => ''
             ],
         ],
         'signatureFlow' => 'SENDER_SIGNATURE_NOT_REQUIRED'
     ]
 ]);

 AdobeSignLaravel::deleteAgreement('agreement_id');