mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-01-17 15:18:17 +01:00
Mention that composer autoload.php will work as well
This commit is contained in:
parent
6423864160
commit
5d7fec2027
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user