Invite Up to Twenty Signers using PDFfiller PHP Client

If your document must be signed by more than one person, PDFfiller will help you organize the signing process. Invite up to 20 people to sign the document, designate who signs it, set the order and get notifications when the document is signed.
          
              
                    PDFfiller\OAuth2\Client\Provider\SignatureRequest::save();


$s2s = new SignatureRequest($provider);
$s2s->document_id = 120833084;

$s2s->method = new SignatureRequestMethod(SignatureRequestMethod::SEND_TO_GROUP);
$s2s->envelope_name = 'group envelope';
$s2s->sign_in_order = true;
//////////
$s2s->security_pin = new SignatureRequestSecurityPin(SignatureRequestSecurityPin::STANDARD);
$s2s->recipients[] = new SignatureRequestRecipient($provider, [
    'email' => 'test@test.com',
    'name' => 'Test user',
    'access' => 'full',
    'require_photo' => false,
    'order' => 1,
    'message_subject' => 'subject',
    'message_text' => 'message',
    'additional_documents' => [
        'doc1'
    ]
]);
$s2s->recipients[] = new SignatureRequestRecipient($provider, [
    'email' => 'test2@test.com',
    'name' => 'Test user 2',
    'access' => 'full',
    'require_photo' => false,
    'order' => 2,
    'message_subject' => 'subject',
    'message_text' => 'message',
    'additional_documents' => [
        'doc1'
    ]
]);
///...20-th recipient
$s2s->recipients[] = new SignatureRequestRecipient($provider, [
    'email' => 'test20@test.com',
    'name' => 'Test user 20',
    'access' => 'full',
    'require_photo' => false,
    'order' => 20,
    'message_subject' => 'subject',
    'message_text' => 'message',
    'additional_documents' => [
        'doc1'
    ]
]);

$result = $s2s->save();