altelma/laravel-signrequest

Send signrequest in Laravel'

dev-master 2018-05-10 02:07 UTC

This package is auto-updated.

Last update: 2024-04-21 19:27:04 UTC


README

Software License Build Status StyleCI Total Downloads

Inspiration

https://github.com/AtaneNL/SignRequest

Installation

You can install this package via composer using:

composer require altelma/laravel-signrequest

The package will automatically register itself.

To publish the config file to config/signrequest.php run:

php artisan vendor:publish --provider="Altelma\LaravelSignRequest\SignRequestServiceProvider"

Usage

$file = 'http://www.example.com/example.pdf'
$cdr = SignRequest::createDocumentFromURL($file);
$sender = 'admin@example.com';
$recipients = [
            [
                'email' => 'receiver@domain.com',
                'from_email_name' => 'John Doe',
            ],
        ];
$message = 'Hey, please sign this document.'; // optional
$request = SignRequest::sendSignRequest($cdr->uuid, $sender, $recipients, $message);

License

The MIT License (MIT). Please see License File for more information.

Feedback

Welcome for any help and suggestions.