PHPackages                             openclassrooms/use-case - 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. openclassrooms/use-case

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

openclassrooms/use-case
=======================

Use case library

v3.0.0(2mo ago)0410.0k↑44.7%[5 issues](https://github.com/OpenClassrooms/UseCase/issues)[1 PRs](https://github.com/OpenClassrooms/UseCase/pulls)2MITPHPPHP &gt;=8.3CI passing

Since Jul 30Pushed 2mo ago7 watchersCompare

[ Source](https://github.com/OpenClassrooms/UseCase)[ Packagist](https://packagist.org/packages/openclassrooms/use-case)[ RSS](/packages/openclassrooms-use-case/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (12)Versions (9)Used By (2)

UseCase
=======

[](#usecase)

[![Build Status](https://camo.githubusercontent.com/dc5502888dfdc080af920e3e37d0705f6950683010741ec90c4123e3148ff1ff/68747470733a2f2f7472617669732d63692e6f72672f4f70656e436c617373726f6f6d732f557365436173652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/OpenClassrooms/UseCase)[![SensioLabsInsight](https://camo.githubusercontent.com/557f5219a4ccdb499810004be08a35f017e7cbb094d411e4ecb4f04d8cc1c0bb/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35623035656566312d373435372d343334652d386138632d3434303133613636373561312f6d696e692e706e67)](https://insight.sensiolabs.com/projects/5b05eef1-7457-434e-8a8c-44013a6675a1)[![Coverage Status](https://camo.githubusercontent.com/8cab5501905d9aad128b570100a0cd2768f40dec97db2393c887b1ae543bc3a9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4f70656e436c617373726f6f6d732f557365436173652f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/OpenClassrooms/UseCase?branch=master)

UseCase is a library that provides facilities to manage technical code over a Use Case in a Clean / Hexagonal / Use Case Architecture.

- Security access
- Cache management
- Transactional context
- Events
- Logs

The goal is to have only functional code on the Use Case and manage technical code in an elegant way using annotations.

More details on :

- [Clean Architecture](http://blog.8thlight.com/uncle-bob/2012/08/13/the-clean-architecture.html).
- [Hexagonal Architecture](http://alistair.cockburn.us/Hexagonal+architecture).
- [Use Case Driven Development](http://www.ivarjacobson.com/Use_Case_Driven_Development/).

Installation
------------

[](#installation)

`composer require openclassrooms/use-case`or by adding the package to the composer.json file directly.

```
{
    "require": {
        "openclassrooms/use-case": "*"
    }
}
```

```
