mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-27 12:24:39 +01:00
854 B
854 B
Installation
There are multiple ways to include the PHP parser into your project:
Installing via Composer
Run the following command inside your project:
php composer.phar require nikic/php-parser
If you haven't installed Composer yet, you can do so using:
curl -s http://getcomposer.org/installer | php
Installing as a Git Submodule
Run the following command to install the parser into the vendor/PHP-Parser
folder:
git submodule add git://github.com/nikic/PHP-Parser.git vendor/PHP-Parser
Installing from the Zip- or Tarball
Download the latest version from the download page, unpack it and move the files somewhere into your project.