PHPackages                             assasz/rmr - 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. assasz/rmr

ActiveProject

assasz/rmr
==========

Implementation variant of RMR architecture.

01[1 PRs](https://github.com/Assasz/rmr/pulls)PHPCI failing

Since Jul 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Assasz/rmr)[ Packagist](https://packagist.org/packages/assasz/rmr)[ RSS](/packages/assasz-rmr/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Resource-Method-Representation
------------------------------

[](#resource-method-representation)

More about this exact architecture [here](https://www.peej.co.uk/articles/rmr-architecture.html). Code above is my own implementation variant, which came to life as a result of long nights in quarantine ;) It's still under development, though.

I would rather call it **ROR** (Resource-Operation-Representation) architecture, where controller logic is moved from resources to separate classes, **Operations**. They follow Request Handler pattern and actually act like Action components known from ADR architecture.

### Installation

[](#installation)

Via Composer:

```
composer create-project assasz/rmr=dev-master
cd rmr
cp .env.dist .env && cp .env.test.dist .env.test

```

Set up the database:

```
# .env
DATABASE_URL='mysql://user:secret@localhost/mydb'

```

```
./vendor/bin/doctrine orm:schema-tool:create
./vendor/bin/doctrine orm:schema-tool:update --force

```

Set up test environment:

```
# .env.test
DATABASE_URL='mysql://user:secret@localhost/mydb_test'
BASE_URI='http://localhost'

```

### Utilities

[](#utilities)

Load fixtures for specified environment (`dev` by default):

```
php bin/console app:load-fixtures --env=dev

```

Generate basic API for existing resources:

```
php bin/console app:generate-api

```

Generate OpenAPI docs into YAML file:

```
./vendor/bin/openapi --output openapi/openapi.yaml src/ public/

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22593528?v=4)[Paweł Antosiak](/maintainers/Assasz)[@Assasz](https://github.com/Assasz)

---

Top Contributors

[![Assasz](https://avatars.githubusercontent.com/u/22593528?v=4)](https://github.com/Assasz "Assasz (11 commits)")

### Embed Badge

![Health badge](/badges/assasz-rmr/health.svg)

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

PHPackages © 2026

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