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 1mo ago

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

Maintenance35

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

601d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f32209cfa303c34e3216af4d87fccad724cecdc33382165dbd10daede46a262a?d=identicon)[octoth0rpe](/maintainers/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

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)[mimmi20/browser-detector

Library to detect Browsers and Devices

48153.5k3](/packages/mimmi20-browser-detector)

PHPackages © 2026

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