PHP code example of tourchannel / parks
1. Go to this page and download the library: Download tourchannel/parks 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/ */
tourchannel / parks example snippets
use TourChannel\Parks\TourChannelParks;
/**
* Class Example
*/
class ParksClass
{
/**
* Bilioteca API parques
* @var TourChannelParks
*/
private $touchannel_parks;
/**
* Configuração da API
* Example constructor.
* @throws Exception
*/
public function __construct()
{
// PATH do arquivo de configuração criado
$config =
$parks = new TourChannelParks();
dd($parks->getParksAvailable());
$parks = new ParksClass(); // Nome da sua classe
echo "<pre>";
print_r($parks->getParks());
exit();