PHP code example of k-kaufmann / chefkoch-api
1. Go to this page and download the library: Download k-kaufmann/chefkoch-api 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/ */
k-kaufmann / chefkoch-api example snippets
use chefkoch\ChefkochFactory;
$chefkochFactory = new ChefkochFactory();
$apiClient = $chefkochFactory->createApiClient();
$user = $apiClient->getUserById("INPUT_USER_ID");
$simpleRecipes = $apiClient->getRecipes("OFFSET");
$categories = $apiClient->getCateogries();
$recipe = $apiClient->getRecipeById("RECIPE_ID");