Shellvar-Parser, is a small group of PHP functions that parse a text file containing shell variables. This is intended to allow for config files that may be included by common shell scripts (Bourne, Bash, zsh) or be parsed in PHP by Shellvar-Parser. It does not presently support all possible syntax, see below for supported features.
Shellvar-Parser was written in something of a hurry, in the
middle of some other projects. I may substantially re-write it
sometime, because the code is ugly.
You can ask
for help with Shellvar-Parser on the mailing list.
View the current: README • manpage
• License (GPL)
Requires PHP 5.2 or greater with PCRE. Can use POSIX if available.
Mailing list | Archives