PHPackages                             mpp/apicil-client-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. [API Development](/categories/api)
4. /
5. mpp/apicil-client-bundle

ActiveSymfony-bundle[API Development](/categories/api)

mpp/apicil-client-bundle
========================

Symfony ApiCil Bundle

v3.3.2(11mo ago)09.9k1MITPHPPHP &gt;=8.0CI failing

Since Oct 12Pushed 11mo ago3 watchersCompare

[ Source](https://github.com/mon-petit-placement/mpp-apicil-client-bundle)[ Packagist](https://packagist.org/packages/mpp/apicil-client-bundle)[ RSS](/packages/mpp-apicil-client-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (9)Versions (87)Used By (0)

Symfony Bundle to interact with Apicil API
==========================================

[](#symfony-bundle-to-interact-with-apicil-api)

[![](https://camo.githubusercontent.com/e4de054a228ce57be92528c80be976e6a4636ecff623afcf76be13761800b302/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f546f74616c2532306d6574686f647325323066726f6d253230646f63756d656e746174696f6e2d3236372d626c7565)](https://camo.githubusercontent.com/e4de054a228ce57be92528c80be976e6a4636ecff623afcf76be13761800b302/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f546f74616c2532306d6574686f647325323066726f6d253230646f63756d656e746174696f6e2d3236372d626c7565)

[![](https://camo.githubusercontent.com/5ee6df36cd19117bf0108720bbcf7b5458c3264d4aabbc6604d0990cbcc94187/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6574686f647325323061646465642d31303025323525323028323637253246323637292d677265656e)](https://camo.githubusercontent.com/5ee6df36cd19117bf0108720bbcf7b5458c3264d4aabbc6604d0990cbcc94187/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6574686f647325323061646465642d31303025323525323028323637253246323637292d677265656e)

[![](https://camo.githubusercontent.com/af54a8e0298be1d71ff22dfec252616bf8ceae21a6ddba63f7b71d552bbdc897/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6574686f6473253230696d706c656d656e7465642d393925323525323028323636253246323637292d79656c6c6f77677265656e)](https://camo.githubusercontent.com/af54a8e0298be1d71ff22dfec252616bf8ceae21a6ddba63f7b71d552bbdc897/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6574686f6473253230696d706c656d656e7465642d393925323525323028323636253246323637292d79656c6c6f77677265656e)

[![](https://camo.githubusercontent.com/7a932438d13c2a065dbfb47f1c1cd20527f58703fc8b450f5b2aa984f54b1155/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6574686f64732532307465737465642d3135253235253230283430253246323637292d726564)](https://camo.githubusercontent.com/7a932438d13c2a065dbfb47f1c1cd20527f58703fc8b450f5b2aa984f54b1155/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6574686f64732532307465737465642d3135253235253230283430253246323637292d726564)

[![](https://camo.githubusercontent.com/4440022309779d25b463907ebc66d563e8bd45baf9dc49f47c4eb8e1ee25a6c3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f63756d656e746174696f6e2d36302532352d79656c6c6f77)](https://camo.githubusercontent.com/4440022309779d25b463907ebc66d563e8bd45baf9dc49f47c4eb8e1ee25a6c3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f63756d656e746174696f6e2d36302532352d79656c6c6f77)

Installation
------------

[](#installation)

To install this bundle, simply run the following command:

```
$ composer require mpp/apicil-client-bundle

```

Configuration
-------------

[](#configuration)

First create a guzzle client:

```
// config/packages/eight_point_guzzle.yaml
eight_points_guzzle:
    clients:
        my_apicil_client:
            base_url: '%env(APICIL_BASE_URL)%'
            options:
                auth:
                    - '%env(APICIL_USERNAME)%'
                    - '%env(APICIL_PASSWORD)%'
        my_apicil_sign_client:
            base_url: '%env(APICIL_BASE_URL)%'
            options:
                auth:
                    - '%env(APICIL_SIGN_USERNAME)%'
                    - '%env(APICIL_SIGN_PASSWORD)%'
```

Then configure this client to be used by the bundle:

```
// config/packages/mpp_apicil_client.yaml
mpp_apicil_client:
    http_client: 'eight_points_guzzle.client.my_apicil_client'
    sign_http_client: 'eight_points_guzzle.client.my_apicil_sign_client'
```

Make sure to have enabled the serializer &amp; property info component in symfony configuration (for serialization/deserialization):

```
// config/packages/framework.yaml
framework:
    serializer:
        enabled: true
    property_info:
        enabled: true
```

Clients
-------

[](#clients)

Here is the mapping of client for each specification name

   Specification name Base path Client Client domain alias Usable ?     Actualisation Connaissance Client /connaissanceclient [ApicilAccClient](./Client/ApicilAccClientInterface.php) [acc](./Resources/docs/clients.md#apicilaccclient) Yes   Arbitrage /arbitrage [ApicilArbitrationClient](./Client/ApicilArbitrationClientInterface.php) [arbitration](./Resources/docs/clients.md#apicilarbitrationclient) Yes   Compte titre /comptestitres [ApicilTradingAccountClient](./Client/ApicilTradingAccountClientInterface.php) [trading\_account](./Resources/docs/clients.md#apiciltradingaccountclient) Yes   Contrat /contrats [ApicilContractClient](./Client/ApicilContractClientInterface.php) [contract](./Resources/docs/clients.md#apicilcontractclient) Yes   /contratscollectifs [ApicilCollectiveContractClient](./Client/ApicilCollectiveContractClientInterface.php) [collective\_contract](./Resources/docs/clients.md#apicilcollectivecontractclient) Yes   Données de références /referentiel [ApicilReferentialClient](./Client/ApicilReferentialClientInterface.php) [referential](./Resources/docs/clients.md#apicilreferentialclient) Yes   /produit [ApicilProductClient](./Client/ApicilProductClientInterface.php) [product](./Resources/docs/clients.md#apicilproductclient) Yes   KYC /profilfinancier [ApicilFinancialProfileClient](./Client/ApicilFinancialProfileClientInterface.php) [financial\_profile](./Resources/docs/clients.md#apicilfinancialprofileclient) Yes   /kyc/coordonnees [ApicilKycContactInformationClient](./Client/ApicilKycContactInformationClientInterface.php) [kyc\_contact\_information](./Resources/docs/clients.md#apicilkyccontactinformationclient) Yes   /kyc/iban [ApicilKycIbanClient](./Client/ApicilKycIbanClientInterface.php) [kyc\_iban](./Resources/docs/clients.md#apicilkycibanclient) Partially   Preconisation - interne /interne/preconisation/contrat [ApicilPreconizationClient](./Client/ApicilPreconizationClientInterface.php) [preconization](./Resources/docs/clients.md#apicilpreconizationclient) Yes   Profil de gestion /modegestion [ApicilManagementClient](./Client/ApicilManagementClientInterface.php) [management](./Resources/docs/clients.md#apicilmanagementclient) Yes   Rachat /rachatpartiel [ApicilPartialRepurchaseClient](./Client/ApicilPartialRepurchaseClientInterface.php) [partial\_repurchase](./Resources/docs/clients.md#apicilpartialrepurchaseclient) Yes   /rachattotal [ApicilTotalRepurchaseClient](./Client/ApicilTotalRepurchaseClientInterface.php) [total\_repurchase](./Resources/docs/clients.md#apiciltotalrepurchaseclient) Yes   Souscription /projet [ApicilProjectClient](./Client/ApicilProjectClientInterface.php) [project](./Resources/docs/clients.md#apicilprojectclient) Yes   Versement /versement [ApicilPaymentClient](./Client/ApicilPaymentClientInterface.php) [payment](./Resources/docs/clients.md#apicilpaymentclient) Yes  How to use ?
------------

[](#how-to-use-)

#### How to get a specific client domain ?

[](#how-to-get-a-specific-client-domain-)

Here is a sample controller on how to get a specific client domain:

```
