This library is a PHP tool to integrate Tribe API into your projects. Tribe.so documentation can be found here.
Simply require the package with composer require growth-institute/tribe.so-php
.
Tribe API works with a GraphQL API, very different stuff than a REST API.
Don't forget to include your vendor autoload.php
. Then you will be able to instantiate a Tribe object. The constructor receives the Tribe APP Bearer as its only parameter. Example:
<?php
include('vendor/autoload.php');
use TribePHP\Tribe;
$tribe = new Tribe('your token here');
$spaces = $tribe->getSpaces();
echo "<pre>";
print_r($spaces);
echo "</pre>";
?>
Take a look to the src files to check all the functions available.