PHPackages                             rtablada/literate-routes - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rtablada/literate-routes

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rtablada/literate-routes
========================

Allows for literate routes in php

16PHP

Since Feb 27Pushed 12y ago1 watchersCompare

[ Source](https://github.com/rtablada/literate-routes)[ Packagist](https://packagist.org/packages/rtablada/literate-routes)[ RSS](/packages/rtablada-literate-routes/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Literate Routes Builder
-----------------------

[](#literate-routes-builder)

This package allows you to write Literate routes files for Laravel and build them using an artisan command.

Installation
============

[](#installation)

To install this package require `"rtablada/literate-routes": "dev-master"`. Then add `'Rtablada\LiterateRoutes\LiterateRoutesServiceProvider'` to your `app/config/app.php` file.

Use
===

[](#use)

To write literate PHP files, you need to need to create files with the extension `.php.md` or `.litphp`. Then when you want to compile your literate PHP files, run `php artisan literate:build`.

Literate PHP Syntax
===================

[](#literate-php-syntax)

For the most part, Literate PHP is just markdown files allowing you to write user stories, to do lists, and more.

Then code blocks are parsed into PHP. Currently, Literate PHP only supports a blade-like syntax for defining routes and comments.

### Routes

[](#routes)

Routes can be defined using the following syntax:

```
	@get('item', 'ItemsController@index')

```

And will output:

```
Route::get('item', 'ItemsController@index');

```

### Comments

[](#comments)

Comments can be included by using markdown H1 tags using the following syntax:

```
# Items

```

And will output:

```
// Items

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea9ccd400c74151601341e320935a31d1a9779c5eb49a8f364bc7a0ac75baa32?d=identicon)[rtablada](/maintainers/rtablada)

---

Top Contributors

[![rtablada](https://avatars.githubusercontent.com/u/2532004?v=4)](https://github.com/rtablada "rtablada (13 commits)")

### Embed Badge

![Health badge](/badges/rtablada-literate-routes/health.svg)

```
[![Health](https://phpackages.com/badges/rtablada-literate-routes/health.svg)](https://phpackages.com/packages/rtablada-literate-routes)
```

PHPackages © 2026

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