mediapart / lapresselibre
Unofficial Client API of La Presse Libre project
Installs: 9 631
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 6
Forks: 1
Open Issues: 0
Requires
- php: ^5.6|^7.0
- ext-hash: *
- ext-json: *
- ext-openssl: *
- psr/http-message: ^1.0
- psr/log: ^1.0
- symfony/options-resolver: ^2.8|^3.3
Requires (Dev)
- phpunit/phpunit: ^5.7|^6.3
- zendframework/zend-diactoros: ^1.4
Suggests
- monolog/monolog: Allows more advanced logging of the application flow
This package is auto-updated.
Last update: 2023-03-07 13:42:41 UTC
README
Unofficial PHP SDK for the project La Presse Libre. The difference with the official package offered by NextINpact is compatibility with PSR4, PSR7 and php7 environment.
Usage
$account_always_exists = function ($data, $is_testing) use ($public_key) { $now = new DateTime('next year'); return [ 'Mail' => $data['Mail'], 'CodeUtilisateur' => $data['CodeUtilisateur'], 'TypeAbonnement' => SubscriptionType::MONTHLY, 'DateExpiration' => $now->format("Y-m-d\TH:i:sO"), 'DateSouscription' => $now->format("Y-m-d\TH:i:sO"), 'AccountExist' => true, 'PartenaireID' => $public_key, ]; }; $verification = Endpoint::answer(Verification::class, $account_always_exists);
Detailed examples for each endpoints are available in examples/.
Installation
Simply install this package with Composer.
composer require mediapart/lapresselibre
Read More
- Official
La Presse Libre
documentation (fr).