https://github.com/bukashk0zzz/hellosignbundle
A simple Symfony2/Symfony3 bundle for the official sdk provided by HelloSign.
https://github.com/bukashk0zzz/hellosignbundle
bundle hellosign php symfony symfony-bundle symfony3-bundle
Last synced: 7 months ago
JSON representation
A simple Symfony2/Symfony3 bundle for the official sdk provided by HelloSign.
- Host: GitHub
- URL: https://github.com/bukashk0zzz/hellosignbundle
- Owner: Bukashk0zzz
- License: mit
- Created: 2015-12-21T07:54:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-17T14:51:18.000Z (over 9 years ago)
- Last Synced: 2025-05-27T09:01:03.491Z (10 months ago)
- Topics: bundle, hellosign, php, symfony, symfony-bundle, symfony3-bundle
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#Symfony2/Symfony3 HelloSign Bundle
[](https://travis-ci.org/Bukashk0zzz/HelloSignBundle)
[](https://codecov.io/github/Bukashk0zzz/HelloSignBundle)
[](https://scrutinizer-ci.com/g/Bukashk0zzz/HelloSignBundle/?branch=master)
[](https://packagist.org/packages/Bukashk0zzz/hellosign-bundle)
[](https://packagist.org/packages/Bukashk0zzz/hellosign-bundle)
[](https://packagist.org/packages/Bukashk0zzz/hellosign-bundle)
[](https://insight.sensiolabs.com/projects/d9fd847e-6875-48d9-8929-2db940ffb9b9)
[](http://knpbundles.com/Bukashk0zzz/HelloSignBundle)
About
-----
This is just a wrapper for the [official SDK](https://github.com/HelloFax/hellosign-php-sdk) provided by [HelloSign](https://www.hellosign.com).
Installation
------------
Add this to your `composer.json` file:
```json
"require": {
"bukashk0zzz/hellosign-bundle": "dev-master",
}
```
Add the bundle to `app/AppKernel.php`
```php
$bundles = array(
// ... other bundles
new Bukashk0zzz\HelloSignBundle\Bukashk0zzzHelloSignBundle(),
);
```
Configuration
-------------
Add this to your `config.yml`:
```yaml
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:
```php
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](https://github.com/bukashk0zzz/HelloSignBundle/blob/master/LICENSE)