Publish on Website using PDFfiller PHP Client

Using PDFfiller, you can easily share your PDF documents by publishing a direct link on your site. With a custom URL, your clients will be able to access and complete one and the same form in seconds.
          
              
                    PDFfiller\OAuth2\Client\Provider\FillRequest::save()

$fillRequestEntity = new FillRequest($provider);

$fillRequestEntity->document_id = 20829426;
$fillRequestEntity->access = "full";
$fillRequestEntity->status = "public";
$fillRequestEntity->email_required = true;
$fillRequestEntity->name_required = true;
$fillRequestEntity->custom_message = "Custom message";
$fillRequestEntity->notification_emails[] = new NotificationEmail(['name' => 'name', 'email' => 'email@email.com']);
$fillRequestEntity->additional_documents[] = new AdditionalDocument('name1');
$fillRequestEntity->additional_documents[] = new AdditionalDocument('name3');
$fillRequestEntity->enforce_required_fields = true;
$fillRequestEntity->welcome_screen = false;
$fillRequestEntity->notifications = new FillRequestNotifications(FillRequestNotifications::WITH_PDF);

$result = $fillRequestEntity->save();