2017 © Pedro Peláez
 

library hellosign-laravel

Description

image

industrious/hellosign-laravel

Description

  • Monday, July 23, 2018
  • by industrious-mouse
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

HelloSign Laravel

Latest Version on Packagist ![Total Downloads][ico-downloads] Build Status StyleCI, (*1)

This package acts as a wrapper, for the HelloSign PHP SDK, to inject the relevant credentials and allow you to use the package in the container. Some examples of usage have been provided below., (*2)

See the HelloSign PHP SDK for full details., (*3)

Take a look at contributing.md to see a to do list., (*4)

Installation

Via Composer, (*5)

``` bash $ composer require industrious/hellosign-laravel, (*6)


## Usage Publish the config, and add the relevant API authentication details to your `.env` file. ```bash php artisan vendor:publish --tag=laravel-hellosign

Examples

Get client account details

/**
 * @param  HelloSignLaravel\Client $client
 */
public function client(Client $client)
{
    $client = $client->getAccount();

    ...

Send a signature request

/**
 * @param  HelloSignLaravel\Classes\SignatureRequest $signature_request
 */
public function sign(SignatureRequest $signature_request)
{
    $request = $signature_request
        ->setTitle('Title')
        ->setSubject('Subject')
        ->setMessage('Message')
        ->addSigner('email@address.com', 'Client name');

    $file = storage_path('app/file.pdf');

    $request->addFile($file);

    $response = $request->send();

    ...

Send a signature request using a pre-defined template

/**
 * @param  HelloSignLaravel\Classes\SignatureRequest $signature_request
 */
public function templateSign(TemplateSignatureRequest $signature_request)
{
    $request = $signature_request
        ->setTemplateId(config('hellosign.templates.contract'))
        ->setTitle('Title')
        ->setSubject('Subject')
        ->setMessage('Message')
        ->setSigner('Client', 'email@address.com', 'Test User');

    $request->setCustomFieldValue('Name', 'Test User');

    $response = $request->send();

    ...

Change log

Please see the changelog for more information on what has changed recently., (*7)

Testing

bash $ composer test, (*8)

Contributing

Please see contributing.md for details and a todolist., (*9)

Security

If you discover any security related issues, please email christian@industrious.agency instead of using the issue tracker., (*10)

Credits

License

MIT. Please see the license file for more information., (*11)

The Versions

23/07 2018

dev-master

9999999-dev https://github.com/industrious/hellosign-laravel

Description

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel hellosign hellosign-laravel

23/07 2018

dev-develop

dev-develop https://github.com/industrious/hellosign-laravel

Description

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel hellosign hellosign-laravel