Skip to content

Bukashk0zzz/HelloSignBundle

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

#Symfony2/Symfony3 HelloSign Bundle

Build Status Code Coverage Scrutinizer Code Quality License Latest Stable Version Total Downloads

SensioLabsInsight knpbundles.com

About

This is just a wrapper for the official SDK provided by HelloSign.

Installation

Add this to your composer.json file:

"require": {
	"bukashk0zzz/hellosign-bundle": "dev-master",
}

Add the bundle to app/AppKernel.php

$bundles = array(
	// ... other bundles
	new Bukashk0zzz\HelloSignBundle\Bukashk0zzzHelloSignBundle(),
);

Configuration

Add this to your config.yml:

bukashk0zzz_hello_sign:
    #(Required) email address or apikey or OAuthToken
    login: 'XXXXXXXX'
    #(Optional, default: null) Null if using apikey or OAuthToken
    password: 'ZZZ'
    #(Optional, default: https://api.hellosign.com/v3/) alternative api base url
    url: 'https://api.hellosign.com/v3/'
    #(Optional, default: https://www.hellosign.com/oauth/token) alternative oauth url
    oauth_url: 'https://www.hellosign.com/oauth/token'

Usage

Provided services:

Service Class
hellosign.client \HelloSign\Client

Inside a controller:

class DocsController extends Controller
{
    public function createSignatureRequestAction()
    {
        $request = new HelloSign\TemplateSignatureRequest;
        $request->enableTestMode();
        $request->setTemplateId($template->getId());
        $request->setSubject('Purchase Order');
        $request->setMessage('Glad we could come to an agreement.');
        $request->setSigner('Client', 'george@example.com', 'George');
        $request->setCC('Accounting', 'accounting@example.com');
        $request->setCustomFieldValue('Cost', '$20,000');
        
        $response = $this->getContainer()->get('hellosign.client')->sendTemplateSignatureRequest($request);
    }
}

Copyright / License

See LICENSE

About

A simple Symfony2/Symfony3 bundle for the official sdk provided by HelloSign.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages