mgalkina/openfoodfactssearchproducts-module

Openfoodfacts: Search Products

dev-main 2021-12-12 18:35 UTC

This package is auto-updated.

Last update: 2025-07-13 03:32:33 UTC


README

Installation

Install:

Run commands:

cd [your laravel project]
composer require mgalkina/openfoodfactssearchproducts-module
php artisan module:migrate Openfoodfactssearchproducts
cd .\Modules\Openfoodfactssearchproducts\
npm install
npm run production

Enable the module:

php artisan module:enable Openfoodfactssearchproducts

Module page:

https://[your host name]/openfoodfactssearchproducts

Tests

Add to phpunit.xml:

<testsuite name="Feature">
    <directory suffix="Test.php">./Modules/**/Tests/Feature</directory>
</testsuite>

<testsuite name="Unit">
    <directory suffix="Test.php">./Modules/**/Tests/Unit</directory>
</testsuite>

Run tests:

php artisan test

License

MIT