Skip to content
PHP wrapper for Open Food Facts
PHP
Branch: master
Clone or download
Latest commit d5fc3b1 Oct 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
examples add example and tests Sep 18, 2019
src add example and tests Sep 18, 2019
tests add example and tests Sep 18, 2019
.gitignore fix: update composer data Jan 24, 2019
.travis.yml add travis Sep 11, 2018
CHANGELOG.md first commit Jun 19, 2016
CONTRIBUTING.md first commit Jun 19, 2016
README.md remove "Stories in Ready"-Badge as it is no longer available Aug 19, 2019
composer.json add caching and custom httpClient DI, fix CS and typos Sep 18, 2019
phpunit.xml Add some POO Sep 7, 2018

README.md

openfoodfacts-php

Open Food Facts

PHP API Wrapper for Open Food Facts, the open database about food.

Project Status Build Status Average time to resolve an issue Percentage of issues still open

Installation

With Composer:

composer require openfoodfacts/openfoodfacts-php

Usage

Is possible using API without Wrapper.

$api = new OpenFoodFacts\Api('food','fr-en',$log);
$prd = $api->getProduct('3057640385148');

Development

Contributing

  1. Fork it ( https://github.com/openfoodfacts/openfoodfacts-php/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
You can’t perform that action at this time.