Nginx-Config-Processor
Nginx-Config-Processor copied to clipboard
PHP Nginx configuration files processor (parser, creator, generator).
The project is nice, in fact the only one... but your pregmatch is bugged. https://github.com/romanpitak/Nginx-Config-Processor/blob/master/src/Directive.php -> checkKey: 1. / An unescaped delimiter must be escaped with a backslash (\) Plenty...
Can be reproduced by this example here: ```php
hello, i had read your project , and i havn't see how to parse nginx config,if this project can do this thing ?
Is there is a way to update directives values or append directives to existing ones?
It's mostly a question, not a bug... why `prettyPrint(0)` adding indent to each line? I'm adding `prettyPrint(-1)` to avoid this behavior.
Allow the Directive to store multiple assigned comments: - the "Above Directive Comment" or comment block - the "In-line Comment" - the "End of Scope Comment" And implement the correct...
Printing the short (one directive) scopes on the same line as the directive that contains them.