All Projects → openfoodfacts → openfoodfacts-laravel

openfoodfacts / openfoodfacts-laravel

Licence: MIT license
Open Food Facts API wrapper for Laravel

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to openfoodfacts-laravel

smooth-app
The new Open Food Facts mobile application for Android and iOS, crafted with Flutter and Dart
Stars: ✭ 187 (+59.83%)
Mutual labels:  food, nutrition, openfoodfacts
nutrifacts.js
A library to calculate nutrition facts, smartly. No third party services or remote DBs involved.
Stars: ✭ 22 (-81.2%)
Mutual labels:  food, nutrition
openfoodfacts-ruby
Open Food Facts API Wrapper
Stars: ✭ 27 (-76.92%)
Mutual labels:  food, openfoodfacts
openfoodfacts-go
Go Wrapper for Open Food Facts
Stars: ✭ 34 (-70.94%)
Mutual labels:  food, openfoodfacts
boilerplate
Laravel AdminLTE 3 Boilerplate package with blade components, users, roles and permissions management
Stars: ✭ 167 (+42.74%)
Mutual labels:  laravel-package
Openfoodfacts Ios
Native (Swift) version of Open Food Facts for iOS. Coders & Decoders welcome 🤳🥫 😊
Stars: ✭ 202 (+72.65%)
Mutual labels:  food
Food Ordering App
Stars: ✭ 198 (+69.23%)
Mutual labels:  food
Swiggy Analytics
Analyse your swiggy orders 🍔
Stars: ✭ 163 (+39.32%)
Mutual labels:  food
laravel-migrate-check
An artisan command to check for pending migrations with proper exit code
Stars: ✭ 53 (-54.7%)
Mutual labels:  laravel-package
laravel-packages
Useful packages for Laravel projects
Stars: ✭ 22 (-81.2%)
Mutual labels:  laravel-package
mealpy
Order your meals on MealPal automatically!
Stars: ✭ 28 (-76.07%)
Mutual labels:  food
Foodsoft
Web-based software to manage a non-profit food coop (product catalog, ordering, accounting, job scheduling).
Stars: ✭ 219 (+87.18%)
Mutual labels:  food
formoj
Form generator package for Laravel
Stars: ✭ 28 (-76.07%)
Mutual labels:  laravel-package
Food2vec
🍔
Stars: ✭ 199 (+70.09%)
Mutual labels:  food
LaravelPostcodes
A service wrapper around postcodes.io
Stars: ✭ 73 (-37.61%)
Mutual labels:  laravel-package
Grocy Docker
ERP beyond your fridge - now containerized - this is the docker repo of https://github.com/grocy/grocy
Stars: ✭ 164 (+40.17%)
Mutual labels:  food
Instagram-for-PHP
PHP SDK for Instagram API
Stars: ✭ 82 (-29.91%)
Mutual labels:  laravel-package
blurhash
A PHP implementation of BlurHash with Laravel integration.
Stars: ✭ 46 (-60.68%)
Mutual labels:  laravel-package
nova-rating-field
A Star rating field to use in your Laravel Nova apps.
Stars: ✭ 42 (-64.1%)
Mutual labels:  laravel-package
madzipper
Wannabe successor of Chumper/Zipper package for Laravel
Stars: ✭ 114 (-2.56%)
Mutual labels:  laravel-package

Laravel Open Food Facts API

Latest Version on Packagist Code Coverage Quality Score

This package provides a convenient wrapper to the Open Food Facts API for Laravel applications.

Requirements

  • PHP 8.0+
  • Laravel 9.x

Legacy support (PHP 7.2+ and Laravel 5.7-8.x) at v0.2.x.

Installation

You can install the package via composer:

composer require openfoodfacts/openfoodfacts-laravel

Usage

Find product details by barcode

OpenFoodFacts::barcode('20203467');

it returns an array with product details:

Array
(
    [product_name] => Cantuccini with hazelnuts
    [image_url] => https://static.openfoodfacts.org/images/products/20203467/front_fr.4.400.jpg
    ...    
)    

Find products that match a search term:

$collection = OpenFoodFacts::find('Coca Cola Zero');

// returns a Illuminate\Support\Collection of arrays with details of each product found

Contributing

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.

License

The MIT License (MIT). Please see License File for more information.

Third party applications

If you use this SDK, feel free to open a PR to add your application in this list.

Authors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].