Home

Awesome

Phaad

Phaad is a little language, written in Ruby, implementing a subset of Ruby's syntax, and compiling it down to PHP.

Status

Phaad is a work in progress. I made it to save myself from typing dollar signs, and brackets everywhere, when developing in PHP, while teaching myself a little about Lexers and Parsers.

The following features are currently implemented

Getting Started

Installing

It's best to install the latest revision from the repository.

git clone https://github.com/utkarshkukreti/phaad.git
cd phaad
bundle install
rake spec # optional
rake install

Installing the gem will provide you with a phaad command. Invoking it without any parameters brings up an interactive REPL, similar to IRB. You can type in code, and get the generated PHP code back instantly.

Examples

It's best to checkout the spec directory for a list of features with examples for now.

License

MIT License. (c) 2011 Utkarsh Kukreti.