Skip to content

Would it be possible to edit a laravel config file? #124

Answered by dg
austinkregel asked this question in Q&A
Discussion options

You must be logged in to vote

I think PhpParser would be better suited for this. This library has an API for namespaces, classes, methods, functions, but not for PHP code itself, which it just sees as a strings. With PhpParser you can go further and parse the code of the arrays and modify it.

https://github.com/nikic/PHP-Parser/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@austinkregel
Comment options

Answer selected by austinkregel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants