PHPackages                             ilcleme/exercise - 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. ilcleme/exercise

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

ilcleme/exercise
================

Soluzione agli esercizi

06PHP

Since Oct 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ilCleme/exercise)[ Packagist](https://packagist.org/packages/ilcleme/exercise)[ RSS](/packages/ilcleme-exercise/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

\##Utilizzo

Per installare la repo è sufficiente

```
composer require ilcleme/exercise

```

l'unico vincolo è la minimum-stability da settare a dev.

\##Obiettivi

Eseguire l'esercizio proposto. Di seguito le richieste.

Partendo dalla classe Revenue crea le classi mancanti (Employee, EmployeeType, Customer, Order) che implementino almeno i metodi citati. Utilizza gli standard PSR-2 e PSR-4, commenta tutto il codice in inglese utilizzando PHPDoc. Non utilizzare framework. Riscrivi il metodo getTotal della classe Revenue senza utilizzare cicli foreach. Crea un pacchetto con composer utilizzando le classi create.

**BONUS**

Implementa almeno un design pattern che ritieni possa essere applicato. Installa un pacchetto composer di tua scelta ed utilizzalo all'interno di una delle classi. Usa Traits, Closures, Magic Methods.

\##Note

Per quanto riguarda l'uso di un design pattern, ho scelto di applicare un Pattern Strutturale (Dependency Injection) piuttosto che di altri tipi in quanto al momento l'implementazione risulta di base e non trovo motivi per applicare dei patter relativi alla Creazione oppure al comportamento degli oggetti come per esempio un Factory o uno Strategy.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.6% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fa8fc05934df37a6cbc498384142230bbf7f1bfee2c8d0e08de45aa9eb67bc9d?d=identicon)[ilcleme](/maintainers/ilcleme)

---

Top Contributors

[![mattiaclementi](https://avatars.githubusercontent.com/u/1780500?v=4)](https://github.com/mattiaclementi "mattiaclementi (35 commits)")[![mattiaqweb](https://avatars.githubusercontent.com/u/16849828?v=4)](https://github.com/mattiaqweb "mattiaqweb (2 commits)")

### Embed Badge

![Health badge](/badges/ilcleme-exercise/health.svg)

```
[![Health](https://phpackages.com/badges/ilcleme-exercise/health.svg)](https://phpackages.com/packages/ilcleme-exercise)
```

###  Alternatives

[markstory/geshi

CakePHP plugin that integrates with Geshi Syntax highlighter.

252.3k1](/packages/markstory-geshi)

PHPackages © 2026

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