PHPackages                             molovo/phake - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. molovo/phake

ActiveLibrary[CLI &amp; Console](/categories/cli)

molovo/phake
============

A PHP task runner inspired by Make, Rake et al.

v1.1.4(10y ago)2911MITPHP

Since Feb 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/molovo/phake)[ Packagist](https://packagist.org/packages/molovo/phake)[ RSS](/packages/molovo-phake/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (13)Used By (0)

Phake
=====

[](#phake)

[![Join the chat at https://gitter.im/molovo/phake](https://camo.githubusercontent.com/cf7ff08981d6b0a1b0d986c324bf2f66af067522ab7b1ef764992be68a7e8e86/68747470733a2f2f6261646765732e6769747465722e696d2f6d6f6c6f766f2f7068616b652e737667)](https://gitter.im/molovo/phake?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

A PHP task runner inspired by Make, Rake et al.

Installation and Usage
----------------------

[](#installation-and-usage)

#### Installing phake globally

[](#installing-phake-globally)

```
composer global require molovo/phake

# Ensure ~/.composer/vendor/bin is in your path, then in a directory
# with a Phakefile, run:
phake task
```

#### Installing per Project:

[](#installing-per-project)

```
composer require molovo/phake

vendor/bin/phake task
```

#### Installing ZSH Completion

[](#installing-zsh-completion)

Rename the file `phake.zsh-completion` to `_phake`, and move it somewhere in your `$fpath`. `/usr/local/share/zsh/site-functions/` is usually a good choice.

Usage
-----

[](#usage)

#### Default Task

[](#default-task)

Create a file called `Phakefile` in the root of your project. This is just a simple PHP file. The first task you should define is called `default`. This is the task that is performed if you run `phake` without any arguments.

For now, we'll use it to execute a simple shell command by passing it a string:

```
