Recently in writing a PHP extension that involves a Yaml file parsing feature ...
There are currently two solutions:
- With the third-party Yaml Library (Http://pyyaml.org/wiki/LibYAML), the disadvantage is that the installation of the extension will require additional installation of this third library, and this library is not so popular.
- In the extension of the implementation of a YAML file parsing, the disadvantage is time-consuming ...
Would you please help me to take an idea?
Reply content:
Recently in writing a PHP extension that involves a Yaml file parsing feature ...
There are currently two solutions:
- With the third-party Yaml Library (Http://pyyaml.org/wiki/LibYAML), the disadvantage is that the installation of the extension will require additional installation of this third library, and this library is not so popular.
- In the extension of the implementation of a YAML file parsing, the disadvantage is time-consuming ...
Would you please help me to take an idea?
Third Party library. YAML's syntax is much more complex than JSON and is not easy to implement.
Allow to modify the environment or compile pecl better, or with SPYC can also.
The SYMFONY2 framework comes with the YAML parsing function, which is modular and can be used separately.