Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-17T14:51:18.000Z (about 8 years ago)
- Last Synced: 2024-04-13T22:35:01.862Z (7 months ago)
- Topics: bundle, hellosign, php, symfony, symfony-bundle, symfony3-bundle
- Language: PHP
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#Symfony2/Symfony3 HelloSign Bundle
[![Build Status](https://img.shields.io/scrutinizer/build/g/Bukashk0zzz/HelloSignBundle.svg?style=flat-square)](https://travis-ci.org/Bukashk0zzz/HelloSignBundle)
[![Code Coverage](https://img.shields.io/codecov/c/github/Bukashk0zzz/HelloSignBundle.svg?style=flat-square)](https://codecov.io/github/Bukashk0zzz/HelloSignBundle)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/Bukashk0zzz/HelloSignBundle.svg?style=flat-square)](https://scrutinizer-ci.com/g/Bukashk0zzz/HelloSignBundle/?branch=master)
[![License](https://img.shields.io/packagist/l/Bukashk0zzz/hellosign-bundle.svg?style=flat-square)](https://packagist.org/packages/Bukashk0zzz/hellosign-bundle)
[![Latest Stable Version](https://img.shields.io/packagist/v/Bukashk0zzz/hellosign-bundle.svg?style=flat-square)](https://packagist.org/packages/Bukashk0zzz/hellosign-bundle)
[![Total Downloads](https://img.shields.io/packagist/dt/Bukashk0zzz/hellosign-bundle.svg?style=flat-square)](https://packagist.org/packages/Bukashk0zzz/hellosign-bundle)[![SensioLabsInsight](https://insight.sensiolabs.com/projects/d9fd847e-6875-48d9-8929-2db940ffb9b9/small.png)](https://insight.sensiolabs.com/projects/d9fd847e-6875-48d9-8929-2db940ffb9b9)
[![knpbundles.com](http://knpbundles.com/Bukashk0zzz/HelloSignBundle/badge-short)](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', '[email protected]', 'George');
$request->setCC('Accounting', '[email protected]');
$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)