/ruby-cli

:gem: Ruby Cli Framework for basic execution on command line applications

Primary LanguagePHP

Framework

Command make

  • php make controller ControllerTest:index
  • php make model ModelTest:table

Routes src/routes

<?php

/**
 * Register all routes and methods here.
 * keyword => Controller@method
 * 
 * php ruby sample=index,other=test
 */
$routes = [
    "sample" => "ExampleController@index",
    "other" => "SomeController@test"
]; 

Running the commands

php ruby --routeName methodName