archetype
archetype copied to clipboard
Edit PHP files programmatically
The method `insertStmts` method automatically sorts the nodes in a strange way. Typically using ->add() will *prepend* the node among its equals. So the new use statement below will come...
Hi, when using PHPFile, is there a way to add methods to a class?
I forked this to see if I could figure out a way to use it Symfony, and the first thing I did was run composer install and then try to...
I'd love to be able to use this in a Symfony project. If you have the symfony CLI installed, here's a simple script to see the error. (I'm only putting...
This PR adds support for `nikic/php-parser` 5.0. It removes support for 4.0. This has become necessary as PHPUnit 11 requires 5.0. [PHPUnit 11 is now the default in Laravel](https://github.com/laravel/laravel/blob/b3df041d860233e3d1cd325fea41abe6564e894c/composer.json#L18).
It is unclear how the FileInput driver is supposed to work when using the config file outside of a Laravel application. For example, building another composer package which has Archetype...