Download the PHP package ophelix/ophelix-php without Composer

On this page you can find all versions of the php package ophelix/ophelix-php. 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 ophelix-php

Ophelix pour PHP

La bibliothèque PHP officielle de l'API Ophelix : la facturation de l'Assurance Maladie (FSE, SESAM-Vitale) par une API.

Installation

Premier appel, en mode test

Créez une clé secrète dans Développeurs › Clés sur app.ophelix.fr. Une clé sk_test_ travaille sur le simulateur : elle ne touche ni l'Assurance Maladie ni une vraie carte.

Le parcours complet est dans le guide de démarrage.

Ce que fait le client

Réglage Par défaut Sens
api_version celle que la bibliothèque épingle L'en-tête Ophelix-Version
base_url https://api.ophelix.fr L'adresse de l'API, sans /v1
max_retries 2 Les reprises après un 429, un 5xx ou une coupure
timeout 60 Le délai d'une tentative, en secondes, avec le client Guzzle par défaut
http_client, request_factory, stream_factory Guzzle Un autre client PSR-18 et ses fabriques PSR-17

Chaque méthode accepte en dernier argument des options d'appel : idempotency_key, api_version, max_retries.

Objets

Un objet se lit par ses propriétés, ou comme un tableau pour un champ plus récent que la bibliothèque. Un champ lié rend un identifiant, ou l'objet avec expand :

Un objet passé en paramètre part par son identifiant : 'patient' => $claim->patient marche, déplié ou non.

Listes

all() rend la première page. Un foreach les parcourt toutes, en demandant la suivante quand la précédente est lue :

Idempotence et reprises

Chaque écriture porte une clé Idempotency-Key tirée pour elle, et la garde d'une reprise à l'autre : un 429, un 5xx ou une coupure se rejouent sans doubler l'écriture. Passez la vôtre pour rejouer un appel d'un processus à l'autre :

Erreurs

Une erreur de l'API lève la sous-classe de son type, qui étend Ophelix\Exception\ApiErrorException :

Exception Type Exemple
InvalidRequestException invalid_request_error paramètre faux, objet inconnu
AuthenticationException authentication_error clé inconnue ou révoquée
PermissionException permission_error droit manquant sur une clé restreinte
RateLimitException rate_limit_error débit dépassé, après les reprises
IdempotencyException idempotency_error même clé, autre corps
ApiException api_error erreur d'Ophelix, moteur indisponible

ApiConnectionException dit que l'API n'a pas répondu. Toutes implémentent Ophelix\Exception\ExceptionInterface.

Webhooks

Vérifiez chaque livraison sur le corps brut, avant tout décodage :

Une livraison signée il y a plus de cinq minutes est refusée. Webhook::generateTestHeader() signe un corps pour tester votre point de terminaison.

Versions

La bibliothèque suit le versionnage sémantique. Chaque version épingle une version datée de l'API (OphelixClient::API_VERSION) : une réponse n'y perd ni ne renomme jamais un champ. Voir CHANGELOG.md.

Licence

MIT. Voir LICENSE.


All versions of ophelix-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
guzzlehttp/guzzle Version ^7.8
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.0
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 ophelix/ophelix-php contains the following files

Loading the files please wait ...