broosaction/sdk
Composer 安装命令:
composer require broosaction/sdk
包简介
litebase SDK for PHP - Use litebase Web Services in your PHP project
README 文档
README
The Litebase API Client Library enables you to work with Litebase APIs such as Charts, Drive, or Litebase Social on your server.
These client libraries are officially supported by Broos Action. They are still considered under active development. Which means new features will be added as well as bug fix for current implemented client libraries.
Requirements
Installation
You can use Composer or simply Download the Release
Composer
The preferred method is via composer. Follow the installation instructions if you do not already have composer installed.
Once composer is installed, execute the following command in your project root to install this library:
composer require broosaction/litebase-sdk-php:dev-master
Finally, be sure to include the autoloader:
require_once '/path/to/your-project/vendor/autoload.php';
Basic Example
// include your composer dependencies require_once 'vendor/autoload.php'; $litebaseclient = new LitebaseClient(array( 'client_id' => 'api public key .x', 'client_secret' => 'Api secret key .x', 'username' => 'your litebase cloud username', 'application_name' => 'your application name', )); $qrcode = new \Litebase\Service\Charts\Qr_Code_Service($litebaseclient); $qrcode->setText('Hello World')->setSize(300); if($qrcode->getStatus()){ echo '<img src="'.$qrcode->getImageUrl().'"/>'; }
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2022-10-10