Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.
/ slim-yaml-routes Public archive

A package for Slim Framework 3 allowing you to define Slim routes using YAML file

Notifications You must be signed in to change notification settings

gtnsimon/slim-yaml-routes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slim-yaml-routes (W.I.P)

A package for Slim Framework 3 allowing you to define \Slim\App routes using YAML file.

<?php
// require 'vendor/autoload.php'

// instantiate Slim Container with \Slim\App settings:
// https://www.slimframework.com/docs/objects/application.html
$container = new \Slim\Container(/* ['settings' => [...] */);

// add slim-yaml-routes to extends the Router
$container->register(new \gtnsimon\Slim\YAML\RouterProvider(__DIR__ . '/routes.yml'));

$app = new \Slim\App($container);
$app->run();

TODO

  • Documentation on how to define routes in the .yml file.

About

A package for Slim Framework 3 allowing you to define Slim routes using YAML file

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages