omnibill / chorus-pro
Omnibill Chorus Pro: invoices to the French public sector through PISTE - a conformant file deposited (deposer/flux), its deposit followed and the invoice's status read (rechercher/fournisseur), the PISTE client credentials and the technical account's cpro-account header.
Requires
- php: >=8.2
- glitchr/omnibill: ^1.0@dev
- symfony/http-client: ^6.4|^7.0|^8.0
Requires (Dev)
- phpunit/phpunit: ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-10-09 03:24:25 UTC
README
Chorus Pro, the French public sector's invoicing portal, for
glitchr/omnibill, through PISTE: a supplier's
invoices to public entities (B2G), deposited as flows (deposer/flux) and followed
(rechercher/fournisseur).
use Omnibill\ChorusPro\ChorusProGatewayFactory; $public = (new ChorusProGatewayFactory($httpClient))->create([ 'client_id' => $pisteClientId, 'client_secret' => $pisteSecret, // a PISTE application 'login' => 'TECH_1_atelier@cpro.fr', 'password' => $password, // a Chorus Pro technical account 'sandbox' => true, ]); $flow = $public->submit($invoice); // numeroFluxDepot: the flow's reference $public->fetchStatus($flow)->status; // MISE_A_DISPOSITION read as MADE_AVAILABLE...
Written from Chorus Pro's "Factures" OpenAPI (as published on api.gouv.fr) and its annex on the API services. Not verified in real: no PISTE account.
Documentation: the options, the routes, the statuses' reading, what was verified.
License: MIT since 2026-10-09; earlier versions remain published under LGPL-3.0-or-later.