PHP API Wrapper for Open Food Facts, the open database about food.
- Php ^7.2 http://php.net/manual/fr/install.php;
- Composer https://getcomposer.org/download/;
With Git:
git clone https://github.com/KYavuz/Api-Open-Food-Facts-Exemple nomDepot
With Composer:
With Composer:
composer install
composer require openfoodfacts/php-client
php -S localhost:8000 -t public
Is possible using API without Wrapper.
$api = new OpenFoodFacts\Api('food','fr-en',$log);
$prd = $api->getProduct('3057640385148');