Lithium console: console command to interact with your li3 application. See http://lithify.me/
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
config
console
extensions/command
libraries
tests
.gitmodules
LICENSE.txt
README.md
readme.wiki

README.md

Li3 console

Lithium console: console command to interact with your li3 application.

Please note: this code is experimental and is in a very early stage, do not use it in production.

Usage

li3 console running in development environment, PHP5.3.6 (Darwin)
[development]> Environment::get()
=> 'development'
[development]> $req = new lithium\action\Request(array('url' => '/hello/test?my=data'))
=> <Request url:'/hello/test?my=data'>
[development]> $c = new HelloWorldController(array('request' => $req))
=> <HelloWorldController request:<Request url:'/hello/test?my=data'> response:<Response status:200/'OK' type:'text/html' body:''>>
[development]> $c($req, array())
=> <Response status:200/'OK' type:'text/html' body:'Hello World!'>
[development]> $c
=> <HelloWorldController request:<Request url:'/hello/test?my=data'> response:<Response status:200/'OK' type:'text/html' body:'Hello World!'>>
[development]> q
Exiting.

Credits

Thanks to nateabele, daschl, masom and the lively li3 community.

Copyright

See LICENSE.txt for details.