Comments 0

Presentation transcript

Zend Framework fromthe Command Line(Zend Framework Party Tricks)Three waysThree waysThe Easy WayThree waysThe Easy WayThe Hard WayThree waysThe Easy WayThe Hard WayThe Stupid WayThe Easy Waycurl, wget, etc.Handy toolsThe Easy Waycurl, wget, etc.Handy toolsEasy to “cron” a processThe Easy Waycurl, wget, etc.Handy toolsEasy to “cron” a processUnnecessary overheadThe Hard WayZend ToolGood tool for what it doesThe Hard WayZend ToolGood tool for what it doesEasy to get startedThe Hard WayZend ToolGood tool for what it doesEasy to get startedDifficult to extendThe Hard WayZend ToolGood tool for what it doesEasy to get startedDifficult to extendNot designed for the types of tasks we aretrying to solve.The Stupid WayMy WayThe Stupid WayMy WayReal cli applications but written usingZend Framework and MVC (Well, M&C,there’s not much V)Why My WayNo new skills to learnWhy My WayNo new skills to learnAll your favorite friends are thereWhy My WayNo new skills to learnAll your favorite friends are thereEasy to repurpose codeClearing the CacheFrom the Masterwork “Guide toProgramming with Zend Framework”Clearing the CacheFrom the Masterwork “Guide toProgramming with Zend Framework”Using existing code and methods from thecliClearing the CacheFrom the Masterwork “Guide toProgramming with Zend Framework”Using existing code and methods from thecliMy first attempt at a cli using ZF.Show Code HereclearCache.phpCal/Request/Cli.phpCal/Router.phpmakeDomainScratches an itchmakeDomainScratches an itchMust be run as root because it restartsservicesmakeDomainScratches an itchMust be run as root because it restartsservicesVery specific tool but solves a specificproblem.Show Code HeremakeDomain.phpQuestions?Who Am I?Cal EvansDirector of the PCE, Ibuildingshttp://techportal.ibuildings.comhttp://blog.calevans.comhttp://twitter.com/calevanscal@ibuildings.comcal@calevans.comAIM:cal@calevans.comSkype: cevans-ibuildings