Zend Framework from the Command Line
(Zend Framework Party Tricks)
Three ways
The Easy Way
Three ways
The Easy Way The Hard Way
Three ways
The Easy Way The Hard Way The Stupid Way
The Easy Way
curl, wget, etc. Handy tools
The Easy Way
curl, wget, etc. Handy tools Easy to “cron” a process
The Easy Way
curl, wget, etc. Handy tools Easy to “cron” a process Unnecessary overhead
The Hard Way
Zend Tool Good tool for what it does
The Hard Way
Zend Tool Good tool for what it does Easy to get started
The Hard Way
Zend Tool Good tool for what it does Easy to get started Difficult to extend
The Hard Way
Zend Tool Good tool for what it does Easy to get started Difficult to extend Not designed for the types of tasks we are
trying to solve.
The Stupid Way
My Way
The Stupid Way
My Way Real cli applications but written using
Zend Framework and MVC (Well, M&C, there’s not much V)
Why My Way
No new skills to learn
Why My Way
No new skills to learn All your favorite friends are there
Why My Way
No new skills to learn All your favorite friends are there Easy to repurpose code
Clearing the Cache
From the Masterwork “Guide to Programming with Zend Framework”
Clearing the Cache
From the Masterwork “Guide to Programming with Zend Framework”
Using existing code and methods from the cli
Clearing the Cache
From the Masterwork “Guide to Programming with Zend Framework”
Using existing code and methods from the cli
My first attempt at a cli using ZF.
Show Code Here
clearCache.phpCal/Request/Cli.php
Cal/Router.php
makeDomain
Scratches an itch
makeDomain
Scratches an itch Must be run as root because it restarts
services
makeDomain
Scratches an itch Must be run as root because it restarts
services Very specific tool but solves a specific
problem.
Show Code Here
makeDomain.php
Who Am I?
Cal EvansDirector of the PCE, Ibuildings
http://techportal.ibuildings.comhttp://blog.calevans.comhttp://twitter.com/[email protected]@calevans.comAIM:[email protected]: cevans-ibuildings