Releases: openfoodfacts/openfoodfacts-php
Releases · openfoodfacts/openfoodfacts-php
v0.3.0
Support Guzzle 7.x and update API
This Release containes
- support for Guzzle 7.x
- updated some API Endpoints
- Bug fixing
- Performance Improvement
Bugfix: Correct naming/autoloading for RecursiveSortingTrait
Merge pull request #19 from mikaelcom/feature/recursiveSortingTrait Fix for https://github.com/openfoodfacts/openfoodfacts-php/issues/18
Bugfix: Re-add API reference to Documents
Merge pull request #17 from Dwarfex/master re-add Api-Info into Document
Typed Documents and sorted raw data
This release adds typed Documents for each API
- OpenFoodFacts\Document\FoodDocument;
- OpenFoodFacts\Document\PetDocument;
- OpenFoodFacts\Document\BeautyDocument;
- OpenFoodFacts\Document\ProductDocument;
These all extend from the fromer used OpenFoodFacts\Document - so no breaking interfaces.
The Document Class now also has a function "getData()" which returns the array representation of the Document.
As the OFF-API returns a randomly ordered JSON on each call, the function also recursively sorts the data by key and string.
Updated README for better usage.
Cache & HTTP Client DI
Merge pull request #13 from Dwarfex/cache-DI Cache & HTTP Client DI