Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Phalcon Router for Yaml

Build Status

Latest Stable Version Total Downloads Latest Unstable Version License

Version

PHP: 7.0.x, 7.1.x, 7.2.x
Phalcon: 3.x

Composer

{
    "require": {
       "ienaga/phalcon-router-for-yaml": "2.*"
    }
}

routing.yml sample

min

mypage_index: # /mypage/index

max

mypage_index:
  module:     frontend # Default null
  method:     [ GET, POST ] # Default GET
  url:        /mypage/{user_id}
  controller: mypage
  action:     index
  namespace:  \ProjectName\Module

app/config/services.php

$di->set("router", function () {
    return \Phalcon\Mvc\Router\Adapter\Yaml::load(
        new \Phalcon\Config\Adapter\Yaml(APP_PATH ."/directory/routing.yml")
    );
}, true);

About

Phalcon Routering for Yaml

Topics

Resources

License

Packages

No packages published
You can’t perform that action at this time.