php - ZF2 Zend Tool CLI will not work on Mac -


i attempting use zend tool in zend framework 2 no luck. have installed composer in project directory, , executed composer install command. appears successful. have downloaded zftool.phar file. when attempt command zf.php or zftool.php failure message:

-bash: zf.php: command not found

but in directory zf.php located. tried copying zftool.phar usr/sbin folder still receive command not found message. have googled on hour , cannot find solution this.

if has clue doing wrong appreciate feedback. admittedly amateur @ this.

i running os x 10.8.4.

it tells command zf.php not found. doesn't file @ point. use zftool.phar need able run php in cli.

to check if php enabled in cli type following:

php --version 

it should output this:

php 5.3.26 (cli) (built: jun  5 2013 19:16:29) copyright (c) 1997-2013 php group zend engine v2.3.0, copyright (c) 1998-2013 zend technologies 

also have install/enable phar module php. http://php.net/manual/en/book.phar.php

now change dir (cd) zftool.phar located , use zftool.phar this:

php zftool.phar create project foo 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -