zackframework / php-sdk
Zackframework API Wrapper for PHP
v1.0.1
2020-07-20 07:09 UTC
Requires
- php: ^5.5 || ^7.0
- guzzlehttp/guzzle: ~6.0
This package is auto-updated.
Last update: 2024-05-20 16:04:28 UTC
README
This repository contains the open source PHP SDK that allows you to access the ZackFramework Platform from your PHP app.
Installation
The ZackFramework PHP SDK can be installed with Composer. Run this command:
composer require zackframework/php-sdk
Usage
<?php require_once('./vendor/autoload.php'); use Zackframework\Zackframework; use Zackframework\Exceptions\ZackSDKException; $zf = new Zackframework([ 'api_key' => 'Your API Key', 'api_secret' => 'Your API Secret', 'api_url' => 'API Url' ]); try { $me = $zf->get('/profile/me'); echo 'Your name is : <b>' . $me->fullname .'</b> !'; } catch (ZackSDKException $e) { die($e->getMessage()); }