PHPackages                             picoss/yousign-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. picoss/yousign-bundle

ActiveSymfony-bundle

picoss/yousign-bundle
=====================

Symfony2 YouSign bundle

2.2(7y ago)26.8k4[2 PRs](https://github.com/picoss/yousign-bundle/pulls)MITPHPPHP &gt;=5.5.9

Since Feb 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/picoss/yousign-bundle)[ Packagist](https://packagist.org/packages/picoss/yousign-bundle)[ RSS](/packages/picoss-yousign-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (13)Used By (0)

Yousign Bundle for Symfony2
===========================

[](#yousign-bundle-for-symfony2)

[![Latest Stable Version](https://camo.githubusercontent.com/46e5729c6052d169830c89a5d7dff3d46e675d693eff600ea0b1f10f4cf3a67b/68747470733a2f2f706f7365722e707567782e6f72672f7977682f637673732d62756e646c652f76657273696f6e)](https://packagist.org/packages/picoss/yousign-bundle)[![Total Downloads](https://camo.githubusercontent.com/fa8816cec41c62e9f47f7cdb2db8740686591a92b7fb3208c644b17c3356efe4/68747470733a2f2f706f7365722e707567782e6f72672f7977682f637673732d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/picoss/yousign-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/d3ae73b819c75ea71be993d8fd380c21aff079a0e20f46064419e8071f5ba15f/68747470733a2f2f706f7365722e707567782e6f72672f7977682f637673732d62756e646c652f762f756e737461626c65)](//packagist.org/packages/picoss/yousign-bundle)[![License](https://camo.githubusercontent.com/b402db5664355aec821a44e9839c955ad19022c1b829ef98553cf7ff2bf567af/68747470733a2f2f706f7365722e707567782e6f72672f7977682f637673732d62756e646c652f6c6963656e7365)](https://packagist.org/packages/picoss/yousign-bundle)

This bundle provides integration for [Yousign](http://developer.yousign.fr/) in your Symfony2 Project.

License: [MIT](LICENSE)

Installation
============

[](#installation)

Step 1: Download the Bundle
---------------------------

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
    $ composer require picoss/yousign-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation.

2: Enable the Bundle
--------------------

[](#2-enable-the-bundle)

> When using Flex, this step is handled automatically.

Then, enable the bundle by adding the following line in the `app/AppKernel.php`file of your project:

```
    // app/AppKernel.php

    class AppKernel extends Kernel
    {
        public function registerBundles()
        {
            $bundles = array(
                // ...

                new Picoss\YousignBundle\PicossYousignBundle(),
            );

            // ...
        }

        // ...
    }
```

3: Configure the bundle
-----------------------

[](#3-configure-the-bundle)

```
# config/packages/picoss_yousign.yml
picoss_yousign:
    env: demo #demo or prod
    api_key: yousign_api_key
    username: yousign_username
    password: yousign_password
```

Note: If you need to pass some options to the saop client, add soap\_options config:

```
# config/packages/picoss_yousign.yml
picoss_yousign:
    env: demo #demo or prod
    api_key: yousign_api_key
    username: yousign_username
    password: yousign_password
    soap_options:
        trace: 1
```

Check `$options` argument of the soap client to see available options :

4: Usage
--------

[](#4-usage)

### 4.1: Test API connection

[](#41-test-api-connection)

The following example shows how to test the connection to the Yousign API in your controller

```
