Zend Framework from the Command Line

fishhookFladgeInternet και Εφαρμογές Web

13 Δεκ 2013 (πριν από 3 χρόνια και 5 μήνες)

82 εμφανίσεις

Zend Framework from
the Command Line
(Zend Framework Party Tricks)
Three ways
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.php
Cal/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
Questions?
Who Am I?
Cal Evans
Director of the PCE, Ibuildings
http://techportal.ibuildings.com
http://blog.calevans.com
http://twitter.com/calevans
cal@ibuildings.com
cal@calevans.com
AIM:cal@calevans.com
Skype: cevans-ibuildings