Open Food Facts API wrapper for Laravel
Open Food Facts API wrapper for Laravel
This package provides a convenient wrapper to the Open Food Facts API for Laravel applications.
You can install the package via composer:
composer require openfoodfacts/openfoodfacts-laravel
... or find in other product databases:
``` php
$beauty = OpenBeautyFacts::barcode('8718951087460');
$pet = OpenPetFoodFacts::barcode('8714265000263'); // Note: underlying product database is under construction$collection = OpenFoodFacts::find('Coca Cola Zero');
// returns a Illuminate\Support\Collection of arrays with details of each product foundAlso works with:
$pet = OpenPetFoodFacts::find('Yarrah');
$beauty = OpenBeautyFacts::find("Deodorant Alum");You're very welcome to contribute. We coordinate on the Open Food Facts slack, on the #PHP channel : https://slack.openfoodfacts.org Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.
No open issues yet, or sync has not completed.