From 3127f077be7f380f623e96ddc1480597dea52a2f Mon Sep 17 00:00:00 2001 From: Eddie Palmans Date: Wed, 1 May 2024 12:23:51 +0200 Subject: [PATCH] updated legacy support info --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d9ef612..14b9bfb 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,6 @@ This package provides a convenient wrapper to the [Open Food Facts API](https:// - PHP 8.1+ - Laravel 9.x, 10.x, 11.x -*Legacy support (PHP 7.2+ on Laravel 5.7-8.x + PHP 8.0 on Laravel 9.x) at [v0.2.x](https://github.com/openfoodfacts/openfoodfacts-laravel/tree/v0.2.2).* - ## Installation You can install the package via composer: @@ -27,6 +25,12 @@ You can install the package via composer: composer require openfoodfacts/openfoodfacts-laravel ``` +#### Legacy support + +- PHP 8.0 (Laravel <=9.x): `composer require "openfoodfacts/openfoodfacts-laravel:^0.3"` +- PHP 7.2-7.4.x (Laravel 5.7-8.x): `composer require "openfoodfacts/openfoodfacts-laravel:^0.2"` + + ## Usage #### Find product details by barcode