PHP code example of jpbernius / fmeat

1. Go to this page and download the library: Download jpbernius/fmeat 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/ */

    

jpbernius / fmeat example snippets


use JPBernius\FMeat\FMeatClient;

$fmeat = new FMeatClient();
$week = $fmeat->getCurrentWeek();

foreach ($week as $day) {
  foreach ($day as $dish) {
	echo($dish->getName());
  }
}