Wallogit.com
2017 © Pedro Peláez
Allows for literate routes in php
This package allows you to write Literate routes files for Laravel and build them using an artisan command., (*1)
To install this package require "rtablada/literate-routes": "dev-master".
Then add 'Rtablada\LiterateRoutes\LiterateRoutesServiceProvider' to your app/config/app.php file., (*2)
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., (*3)
For the most part, Literate PHP is just markdown files allowing you to write user stories, to do lists, and more., (*4)
Then code blocks are parsed into PHP. Currently, Literate PHP only supports a blade-like syntax for defining routes and comments., (*5)
Routes can be defined using the following syntax:, (*6)
@get('item', 'ItemsController@index')
And will output:, (*7)
Route::get('item', 'ItemsController@index');
Comments can be included by using markdown H1 tags using the following syntax:, (*8)
# Items
And will output:, (*9)
// Items