mixislv / reamaze-php-sdk
A PHP library for the Reamaze Core API
Installs: 18 960
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
Requires
- php: >=7.2.0
- ext-curl: *
- ext-json: *
Requires (Dev)
- php-coveralls/php-coveralls: ^2.2
- phpmd/phpmd: ^2.7
- phpunit/php-code-coverage: ^7.0
- phpunit/phpunit: ^8.5
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2024-12-09 00:12:59 UTC
README
A PHP client library for accessing Reamaze API
This PHP library allows you to easily integrate Reamaze with PHP.
Requirements
The following PHP extension is required:
- json
- curl
Installation
Run the following to include this via Composer
composer require "mixislv/reamaze-php-sdk" "^2.0"
Or by adding the following to your composer.json:
"require": {
"mixislv/reamaze-php-sdk": "^2.0"
}
Usage
use mixisLv\Reamaze\Api as ReamazeApi; use mixisLv\Reamaze\Exceptions\ApiException; use mixisLv\Reamaze\Params\Articles\GetParams; $reamaze = new ReamazeApi(REAMAZE_BRAND, REAMAZE_LOGIN, REAMAZE_TOKEN); try { $response = $reamaze->articles->get(new GetParams(['slug' => 'test'])); var_dump($response); } catch (ApiException $e) { var_dump($e->getMessage()); }
Check out examples directory for more usage examples.