PHPackages                             shyguy81/food-choice-core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. shyguy81/food-choice-core

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

shyguy81/food-choice-core
=========================

Core domain library for the FoodChoice app

v1.0.1(4mo ago)0251MITPHPPHP ^8.1

Since Jan 9Pushed 4mo agoCompare

[ Source](https://github.com/shyguy81/food-choice-core)[ Packagist](https://packagist.org/packages/shyguy81/food-choice-core)[ Docs](https://github.com/shyguy81/food-choice-core)[ RSS](/packages/shyguy81-food-choice-core/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

Food Choice Core
================

[](#food-choice-core)

Librairie core contenant la logique métier (domain entities, ports, services) pour l'application FoodChoice.

But: extraire la logique réutilisable (suggestion, planification, règles) et la publier via Composer.

Installation (dev local):

1. Depuis la racine du projet, installez les dépendances du package:

```
cd packages/food-choice-core
composer install
```

2. Utilisation minimale:

```
use Shyguy\FoodChoiceCore\Service\SuggestionEngine;
use Shyguy\FoodChoiceCore\Port\RepositoryInterface;

// Injecter un adapter implémentant RepositoryInterface
$repo = ...;
$engine = new SuggestionEngine($repo);
$suggestion = $engine->suggestOne();
```

Exemples d'utilisation des nouveaux services:

```
use Shyguy\FoodChoiceCore\Service\WeeklyMenuService;
use Shyguy\FoodChoiceCore\Service\FoodSearchService;

$repo = /* implémentation de RepositoryInterface */;

$weekly = new WeeklyMenuService($repo);
$menu = $weekly->generateWeeklyMenu(14);
foreach ($menu as $day => $food) {
	echo $day . ': ' . ($food?->name ?? 'Pas de suggestion') . "\n";
}

$search = new FoodSearchService($repo);
foreach ($search->searchByName('pizza', 5) as $f) {
	echo $f->name . " ({$f->category})\n";
}
```

Contrib: suivez les conventions PSR-12 et écrivez des tests unitaires.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance78

Regular maintenance activity

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

123d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1352a8314e712c123ee5832dc02c165df5ed155048b6594a296bc38a617d8337?d=identicon)[shyguy81](/maintainers/shyguy81)

---

Top Contributors

[![shyguy81](https://avatars.githubusercontent.com/u/116341943?v=4)](https://github.com/shyguy81 "shyguy81 (9 commits)")

---

Tags

phpdomainsuggestionfood

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shyguy81-food-choice-core/health.svg)

```
[![Health](https://phpackages.com/badges/shyguy81-food-choice-core/health.svg)](https://phpackages.com/packages/shyguy81-food-choice-core)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
