Skip to content

growth-institute/tribe.so

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tribe.so for PHP

Tribe.so for PHP

What is this?

This library is a PHP tool to integrate Tribe API into your projects. Tribe.so documentation can be found here.

How to use it

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.