ayctor / cadeauxprives
0.1.3
2023-02-22 13:49 UTC
Requires
- php: >=7.0
- ext-json: *
- guzzlehttp/guzzle: ^7.0.1
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-10-22 17:42:18 UTC
README
This is where your description should go. Try and limit it to a paragraph or two.
Installation
You can install the package via composer:
composer require ayctor/cadeauxprives
Usage
$cp = new \Ayctor\Cadeauxprives\Cadeauxprives( $site_url, $site_id, $api_key ); $infos = $cp->updateUser([ 'email' => 'erwan@ayctor.com', 'code_client' => 'erwan@ayctor.com', 'nom' => 'Guillon', 'prenom' => 'Erwan', 'adresse' => [ 'rue' => '23, rue Sébastien Mercier', 'cp' => '75015', 'ville' => 'Paris', 'code_iso' => 'FR', ], ]);
All fields are required by the API.
$infos
contains an object with the token to login and the full URL to login the user.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
If you discover any security related issues, please email erwan@ayctor.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.