Download the PHP package guinee/eservice without Composer

On this page you can find all versions of the php package guinee/eservice. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package eservice

Partner PHP SDK — eService

SDK for partner applications that receive dossiers from eService and instruct them.

Not the agent or citizen SDK.

Auth (APIM / Keycloak)

Avant chaque appel e-Service, le SDK peut obtenir un token OAuth2 client_credentials :

  1. POST {ESERVICE_OAUTH_TOKEN_URL} (form-urlencoded)
  2. Appel e-Service avec :
    • Authorization: Bearer <access_token>
    • X-Partner-Id / X-Partner-Secret

Toutes les valeurs viennent du .env partenaire.

Sans variables OAuth, le SDK conserve le comportement historique (headers partenaire seuls — utile en local hors APIM).

Primary API (4 methods)

Toutes les méthodes prennent la référence de la demande (pas l’objet dossier).

Method Action
$client->sendMessage($reference, …) Message au citoyen
$client->sendDocument($reference, …) Document / résultat (étape « Résultat système externe »)
$client->requestDocuments($reference, …) Demande de pièces + remise à la 1re étape (citoyen peut modifier / resoumettre)
$client->validAppointment($reference, …) Valider ou refuser un rendez-vous
$client->completeDemand($reference, …) Marquer la demande comme terminée (phase = done)

sendDocument accepte un chemin local, un SplFileInfo, ou un tableau contenant file/path et des métadonnées. Les formats acceptés sont PDF, JPEG, PNG et WebP (15 Mo maximum). Le serveur stocke le fichier et conserve sa clé dans la demande. Les URL et contenus base64 restent acceptés pour la rétrocompatibilité.

Les actions directes disponibles par référence évitent une requête de résolution préalable. Le callback utilise POST /partner/runs/by-reference/callback/.

Legacy helpers (review(), approval(), signature(), documentGeneration(), webhook callback) remain available.

Installation

Via Packagist :

Ou en développement local (path repository) :

PHP ≥ 8.1, ext-curl, ext-json.

Receive a dossier

Tests


All versions of eservice with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package guinee/eservice contains the following files

Loading the files please wait ...