PHPackages                             tilabs/laravel-content - 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. tilabs/laravel-content

ActiveLibrary[API Development](/categories/api)

tilabs/laravel-content
======================

A markdown based headless cms inspired by nuxt/content and Sushi Eloquent Driver.

v1.0.0(1y ago)01MITPHPPHP ^8.2

Since May 27Pushed 1mo agoCompare

[ Source](https://github.com/TILABS-CH/laravel-content)[ Packagist](https://packagist.org/packages/tilabs/laravel-content)[ RSS](/packages/tilabs-laravel-content/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Laravel Content by Tilabs
=========================

[](#laravel-content-by-tilabs)

> ⚡️ Generate markdown based Blog Posts with ease. Inspired by @nuxt/content and Caleb Porzio.

[![License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE)

Why this package
----------------

[](#why-this-package)

I personally use this package in a lot of cms based websites. This is only a very rough version, but I will improve it over time.

**Requirements**

VersionPHP^8.2[Laravel](https://laravel.com)^12.0[Sushi by Caleb Porzio](https://github.com/calebporzio)^2.5[League Commonmark](https://league.com)^2.6Installation &amp; Usage
------------------------

[](#installation--usage)

```
composer require tilabs/laravel-content
```

### Publish the configuration

[](#publish-the-configuration)

```
php artisan vendor:publish --provider="Tilabs\LaravelContent\Providers\ContentServiceProvider"
```

### Write content

[](#write-content)

> Place your Markdown files inside `/content`

Create Markdown files anywhere under the configured content directory.

```
touch content/Hello World.md
```

Front-matter drives titles, tags, and publication status.

```
---
title: "Hello World"
tags: [introduction, laravel, cms]
published: true
---

# Hello World

This is my first post.
Headings get automatic IDs and permalinks.

```

> Files without a published key will automatically be drafted

**Slug rules**

- Directories are flattened and joined by the configured separator ("\_" by default).
- Numbers or dates at the start of a segment are stripped (2025-05-27-, 01-, etc.).
- Files named index.md are ignored in the slug
- Example file tree → slug mapping:

```
content/
├── News/
│ └── 2025-05-27-Laravel-Content.md → news_laravel-content
└── 01-getting-started/index.md → getting-started

```

### Query content in code

[](#query-content-in-code)

> If you cannot see your changes right away, jump to the next chapter

You can now query the markdown content like an Eloquent Model thanks to Sushi. Content already has `published` and `drafted` scopes to filter for Content.

```
use Tilabs\LaravelContent\Models\Content;

// all published posts
$posts = Content::published()->get();

// a single post by slug
$post = Content::where('slug', 'news_laravel-content')->firstOrFail();
```

### Refreshing Content

[](#refreshing-content)

Whenever you rename, add, or delete Markdown files in production, clear the Sushi-based cache:

```
php artisan content:clear
```

During local development you can disable caching ('cache' =&gt; false) and the model will refresh on every request.

License
-------

[](#license)

Laravel Deploy is open‑sourced software licensed under the **MIT license**.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance71

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

402d ago

### Community

Maintainers

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

---

Top Contributors

[![ThopQ](https://avatars.githubusercontent.com/u/39917559?v=4)](https://github.com/ThopQ "ThopQ (3 commits)")

### Embed Badge

![Health badge](/badges/tilabs-laravel-content/health.svg)

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

###  Alternatives

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k90.5k1](/packages/mike-bronner-laravel-model-caching)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[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.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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