PHP code example of pigeon-cloud / pigeon-cloud-sdk
1. Go to this page and download the library: Download pigeon-cloud/pigeon-cloud-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pigeon-cloud / pigeon-cloud-sdk example snippets
use PigeonCloudSdk\PigeonCondition;
use PigeonCloudSdk\PigeonProvider;
// Environment variables need to be loaded.
// Example: When using phpdotenv, `composer );
$pigeonCondition->add('{and_or}', '{field}', '{condition}', '{value}');
list($data, $count) = $pigeonProvider->fetch($pigeonCondition);
$pigeonProvider = new PigeonProvider('1');
$pigeonProvider->setDebug(); // Enable Debug mode
$pigeonProvider->fetch();
// The API URL, POST data, and response data will be displayed.
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.