Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Lithium console: console command to interact with your li3 application. See http://lithify.me/

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 config
Octocat-spinner-32 console
Octocat-spinner-32 extensions
Octocat-spinner-32 libraries
Octocat-spinner-32 tests
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 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.

Something went wrong with that request. Please try again.