2017 © Pedro Peláez
 

library literate-routes

Allows for literate routes in php

image

rtablada/literate-routes

Allows for literate routes in php

  • Thursday, February 27, 2014
  • by rtablada
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Literate Routes Builder

This package allows you to write Literate routes files for Laravel and build them using an artisan command., (*1)

Installation

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

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., (*3)

Literate PHP Syntax

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

Routes can be defined using the following syntax:, (*6)

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

And will output:, (*7)

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

Comments

Comments can be included by using markdown H1 tags using the following syntax:, (*8)

# Items

And will output:, (*9)

// Items

The Versions

27/02 2014

dev-develop

dev-develop

Allows for literate routes in php

  Sources   Download

MIT

The Requires

 

27/02 2014

dev-master

9999999-dev

Allows for literate routes in php

  Sources   Download

MIT

The Requires