Skip to content

🛍️ Unofficial Client API of La Presse Libre project.

License

Notifications You must be signed in to change notification settings

donkeycode/lapresselibre

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

La Presse Libre Client Library

Build Status Code Coverage Scrutinizer Quality Score Total Downloads Latest Stable Version

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

About

🛍️ Unofficial Client API of La Presse Libre project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%