Mention that composer autoload.php will work as well

This commit is contained in:
nikic 2014-09-12 13:51:17 +02:00
parent 6423864160
commit 5d7fec2027

View File

@ -6,12 +6,14 @@ This document explains how to use the parser, the pretty printer and the node tr
Bootstrapping Bootstrapping
------------- -------------
The library needs to register a class autoloader; this is done by including the The library needs to register a class autoloader. You can either use the ''vendor/autoload.php'' file generated by
`bootstrap.php` file: Composer or by including the bundled `lib/bootstrap.php` file:
```php ```php
<?php <?php
require 'path/to/PHP-Parser/lib/bootstrap.php'; require 'path/to/PHP-Parser/lib/bootstrap.php';
// Or, if you're using Composer:
require 'path/to/vendor/autoload.php';
``` ```
Additionally you may want to set the `xdebug.max_nesting_level` ini option to a higher value: Additionally you may want to set the `xdebug.max_nesting_level` ini option to a higher value: