PHPackages                             nexus-cms/laravel - 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. [API Development](/categories/api)
4. /
5. nexus-cms/laravel

ActiveLibrary[API Development](/categories/api)

nexus-cms/laravel
=================

Headless Laravel content store for Nexus CMS: REST API, edit-mode tokens, versioning, and force-update. No Filament dependency.

v0.2.0(today)00proprietaryPHPPHP ^8.1

Since Jul 19Pushed todayCompare

[ Source](https://github.com/forged-tools/backend)[ Packagist](https://packagist.org/packages/nexus-cms/laravel)[ Docs](https://nexus.mkiteg.com/docs)[ RSS](/packages/nexus-cms-laravel/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (3)Used By (0)

nexus-cms/laravel
=================

[](#nexus-cmslaravel)

Headless Laravel content store for [Nexus CMS](https://nexus.mkiteg.com).

It is the **content store**, the **REST API** the Next.js client talks to, the **edit-mode token mint**, and it manages **versions** and **force-update**.

> Visual editing happens in the in-context overlay on the frontend. This package has **no Filament dependency** — drop it into any Laravel app and wire your own auth for token minting.

Docs:
Frontend packages: `npm install nexus-cms`

> **Migration:** `nexus-cms/filament` is deprecated. Use `nexus-cms/laravel`.

Install
-------

[](#install)

```
composer require nexus-cms/laravel
php artisan vendor:publish --tag="nexus-cms-migrations"
php artisan migrate
php artisan vendor:publish --tag="nexus-cms-config"
```

The service provider auto-registers. Import the schema produced by `nexus generate`:

```
php artisan nexus:import-schema .nexus/cms-schema.json
```

REST API
--------

[](#rest-api)

Mounted at `config('nexus-cms.route_prefix')` (default `api/nexus`):

MethodPathAuthPurposeGET`/schema`publicThe cms-schema.jsonGET`/content/{page}`public (published) / token (draft)Content documentPOST`/tokens`host-app auth (`token_middleware`)Mint edit-mode token (+ optional redirect)PUT`/content/{page}/override`Nexus tokenSave one region overrideDELETE`/content/{page}/override`Nexus tokenRevert one region (`?regionId=`)PUT`/content/{page}/overrides`Nexus tokenReplace full override mapPUT`/content/{page}/seo`Nexus tokenSave draft SEOPOST`/content/{page}/publish`Nexus tokenPublish draft, create version, force-updateGET`/content/{page}/versions`publicVersion historyGET`/content/{page}/versions/{id}`publicA version snapshotPOST`/content/{page}/versions/{id}/restore`Nexus tokenRoll back (`?publish=0` = draft only)POST`/media`Nexus tokenUpload an imageGET`/media`publicMedia library`{page}` is the encoded route: `/` → `_root`, `/a/b` → `a~b` (matches the Next.js client).

### Mint an edit token

[](#mint-an-edit-token)

```
curl -X POST "$API/api/nexus/tokens" \
  -H "Authorization: Bearer $SANCTUM_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"page":"/"}'
```

Response:

```
{
  "token": "…",
  "editUrl": "https://yoursite.com/api/nexus/edit?token=…&to=/",
  "expiresAt": "…",
  "page": "/"
}
```

Pass `"redirect": true` to redirect the browser into `editUrl` instead of JSON. Configure mint auth with `NEXUS_TOKEN_MIDDLEWARE` (default `auth:sanctum`).

Handshake + force update
------------------------

[](#handshake--force-update)

- **Open editor** — your admin calls `POST /tokens`, then sends the user to `editUrl`(or opens it). The Next app exchanges the Nexus token with `createHttpAdapter`.
- **Publish / Force update** — POSTs to `FRONTEND_URL/api/nexus/revalidate` with the webhook secret so the page is revalidated instantly.

Key env
-------

[](#key-env)

```
NEXUS_FRONTEND_URL=https://yoursite.com
NEXUS_WEBHOOK_SECRET=change-me
NEXUS_SCHEMA_PATH=/path/to/.nexus/cms-schema.json
NEXUS_MEDIA_DISK=public
NEXUS_TOKEN_MIDDLEWARE=auth:sanctum
```

Development
-----------

[](#development)

```
composer install
./vendor/bin/phpunit
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

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 ~20 days

Total

2

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/70657630?v=4)[Ismail Mansour](/maintainers/elementish)[@elementISH](https://github.com/elementISH)

---

Top Contributors

[![elementISH](https://avatars.githubusercontent.com/u/70657630?v=4)](https://github.com/elementISH "elementISH (1 commits)")

---

Tags

apilaravelcmsheadlessnexus-cms

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nexus-cms-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/nexus-cms-laravel/health.svg)](https://phpackages.com/packages/nexus-cms-laravel)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.2k12.6M135](/packages/dedoc-scramble)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5226.7k](/packages/simplestats-io-laravel-client)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

46273.9k](/packages/harris21-laravel-fuse)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)

PHPackages © 2026

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