PHPackages                             lucite/route - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. lucite/route

ActiveLibrary[HTTP &amp; Networking](/categories/http)

lucite/route
============

v0.0.6(1y ago)09MITPHP

Since Sep 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/octoth0rpe/LuciteRoute)[ Packagist](https://packagist.org/packages/lucite/route)[ RSS](/packages/lucite-route/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (9)Versions (7)Used By (0)

lucite/route
============

[](#luciteroute)

A simple library for mapping api routes to lucite models.

5 methods are provided to setup the following routes:

- GET `/url/`: `->getMany()`
- GET `/url/{id}`: `->getOne()`
- POST `/url/`: `->create()`
- PATCH `/url/{id}`: `->update()`
- DELETE `/url/{delete}`: `->delete()`

Each route returns a psr ResponseInterface with the following json structure in the body:

```
{
  "success": true|false,
  "data": array|object
  "warnings": array,
  "errors": object
}

```

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

[](#installation)

`composer require lucite/route`

Usage
-----

[](#usage)

Each route should define 2 static properties:

- `public static string $modelNamespace;`
- `public static string $modelClass;`

Note that `$modelNamespace` is likely the same for all of your routes, so you may want to define this in a parent class that inherits from `Lucite\Route\Route`, which in turn your final route classes inherit from.

Implementing permissions
------------------------

[](#implementing-permissions)

Coming soon.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

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.

###  Release Activity

Cadence

Every ~0 days

Total

6

Last Release

647d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31517771?v=4)[octoth0rpe](/maintainers/octoth0rpe)[@octoth0rpe](https://github.com/octoth0rpe)

---

Top Contributors

[![octoth0rpe](https://avatars.githubusercontent.com/u/31517771?v=4)](https://github.com/octoth0rpe "octoth0rpe (8 commits)")

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/lucite-route/health.svg)

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k51](/packages/ecotone-ecotone)

PHPackages © 2026

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