Skip to content

Commit

Permalink
Added README.
Browse files Browse the repository at this point in the history
  • Loading branch information
anatoo committed Nov 23, 2012
1 parent 1918937 commit 9a9521c
Show file tree
Hide file tree
Showing 29 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
PHPPEG
====

PEG Parser Combinator for PHP5.

Install
----

Use [composer](http://getcomposer.org/) to install this library.

$ mkdir foobar && cd foobar
$ echo '{"require": {"phppeg/phppeg": "*"}}' > composer.json
$ composer install

And include "vendor/autoload.php" to setup auto-loading for PHPPEG in your code.

<?php
include_once __DIR__ . '/vendor/autoload.php';

How to run tests and examples
----

Execute setup.sh after git-clone to setup auto-loading.

$ git clone https://github.com/anatoo/PHPPEG.git
$ cd PHPPEG
$ ./setup.sh

Run all tests:

$ php test/t/testall.php

Run examples:

$ php examples/example01.php

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"autoload": {
"psr-0" : { "PEG": "code/" }
"psr-0" : { "PEG": "src/" }
},
"require": {
"php": ">=5.2.0"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9a9521c

Please sign in to comment.