1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2025-01-20 12:46:47 +01:00
PHP-Parser/doc/1_Installation.markdown

32 lines
854 B
Markdown
Raw Normal View History

Installation
============
There are multiple ways to include the PHP parser into your project:
Installing via Composer
-----------------------
2015-01-11 21:39:02 +01:00
Run the following command inside your project:
2015-01-11 21:39:02 +01:00
php composer.phar require nikic/php-parser
2015-01-11 21:39:02 +01:00
If you haven't installed [Composer][1] 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
2014-09-12 00:20:22 +02:00
Installing from the Zip- or Tarball
-----------------------------------
Download the latest version from [the download page][2], unpack it and move the files somewhere into your project.
2015-01-11 21:39:02 +01:00
[1]: https://getcomposer.org/
[2]: https://github.com/nikic/PHP-Parser/tags