broosaction / litebase-sdk-php
litebase SDK for PHP - Use litebase Web Services in your PHP project
Requires
- php: >=7.4
- ext-curl: *
- ext-json: *
- ext-openssl: *
- ext-pcre: *
- mtdowling/jmespath.php: ^2.3
- nette/caching: ^3.0.2
- phpseclib/phpseclib: ^2.0.23
- psr/http-message: ^1.0
Requires (Dev)
- ext-dom: *
- ext-openssl: *
Suggests
- ext-curl: To send requests using cURL
- ext-openssl: Allows working with Cloud's private distributions and verifying received messages
- doctrine/cache: To use the DoctrineCacheAdapter
This package is auto-updated.
Last update: 2025-03-11 16:53:22 UTC
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().'"/>'; }