PHPackages                             desmart/adr - 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. [Framework](/categories/framework)
4. /
5. desmart/adr

ActiveLibrary[Framework](/categories/framework)

desmart/adr
===========

ADR pattern implementation for Laravel. Designed for https://github.com/DeSmart/laravel-vanilla.

1.0.4(9y ago)02.2k[1 issues](https://github.com/DeSmart/adr/issues)MITPHPPHP &gt;=7.0.0

Since Nov 5Pushed 9y ago5 watchersCompare

[ Source](https://github.com/DeSmart/adr)[ Packagist](https://packagist.org/packages/desmart/adr)[ RSS](/packages/desmart-adr/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (4)Versions (13)Used By (0)

Laravel ADR
===========

[](#laravel-adr)

ADR pattern implementation for Laravel. The package provides a set of tools making it easier to implement the Action-Domain-Responder pattern.

---

### Installation

[](#installation)

Install package using Composer:

```
composer require desmart/adr

```

Register the package's service provider in `config/app.php`:

```
'providers' => [
        (...)
        DeSmart\ADR\ServiceProvider::class,
    ],

```

### Usage

[](#usage)

The main goal of this package is to make it easier to implement the ADR pattern. This means that you should be able to create Actions (Controllers with a single callable method, e.g. `execute()`) that return a Responder.

The Responder can digest a single Entity or a Collection of Entities and transform them into a JSON API response.

### Example

[](#example)

```
class ADRAction extends \DeSmart\ADR\Actions\BaseAction
{
    public function execute()
    {
        $user = new User('John', 'john@desmart.com');

        return $this->respondWith($user);
    }
}

```

### Model to Entity hydration

[](#model-to-entity-hydration)

In order to hydrate an entity from a model (and vice versa) the package comes with a helper - `HydratesEntityTrait`.

Each Model class that uses this trait will be granted the `toEntity()` method which converts the Model to an Entity.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~18 days

Total

10

Last Release

3360d ago

Major Versions

0.1.3 → 1.0.02017-02-14

0.1.4 → 1.0.12017-03-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/92bc27fc8f1cba837cef419eee0fae358f52c804cd5450cf994f9095fa387a5c?d=identicon)[DeSmart](/maintainers/DeSmart)

---

Top Contributors

[![muberman](https://avatars.githubusercontent.com/u/5789184?v=4)](https://github.com/muberman "muberman (8 commits)")[![fojuth](https://avatars.githubusercontent.com/u/2622146?v=4)](https://github.com/fojuth "fojuth (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/desmart-adr/health.svg)

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

###  Alternatives

[laravel/octane

Supercharge your Laravel application's performance.

4.0k24.7M207](/packages/laravel-octane)[krayin/laravel-crm

Krayin CRM

23.2k33.4k1](/packages/krayin-laravel-crm)[unopim/unopim

UnoPim Laravel PIM

10.5k2.2k](/packages/unopim-unopim)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3911.7k](/packages/codewithdennis-larament)

PHPackages © 2026

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