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(11mo ago)01MITPHPPHP ^8.2

Since May 27Pushed 11mo 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 1mo ago

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

28

—

LowBetter than 54% of packages

Maintenance50

Moderate activity, may be stable

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

356d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/20d93a3f83d19dd9a3acb8cf11254ad68f2268c9c437bd2b1bc8f1ef2ffd1c67?d=identicon)[tilabs](/maintainers/tilabs)

---

Top Contributors

[![ThopQ](https://avatars.githubusercontent.com/u/39917559?v=4)](https://github.com/ThopQ "ThopQ (2 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

[spatie/laravel-query-builder

Easily build Eloquent queries from API requests

4.4k26.9M220](/packages/spatie-laravel-query-builder)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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