PHP code example of elephpant / taco
1. Go to this page and download the library: Download elephpant/taco 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/ */
elephpant / taco example snippets
ElePHPant\Taco;
$taco = new Taco();
/* List of all Categories of Food */
$taco->categories();
/* Only one Category - Insert in the ID of the Category that you want bring */
$category = $taco->category(1);
/* Foods From Category - Insert in the the ID of the Category then see all foods */
$foodFromCategory = $taco->foodFromCategory(1);
/* Only One Food - Insert in the param the ID of the Food that you want bring */
$food = $taco->food(2);
/* Provide the timeout to set it (in seconds) */
$timeout = $taco->setTimeout(3)