A pure PHP parser for HCL (HashiCorp Configuration Language). Parse, validate, and convert HCL to JSON and back.
Requires PHP 8.4+
composer require cline/hcl- Getting Started - Installation and basic usage
- HCL Syntax - Complete syntax reference
- Expressions - Operators, conditionals, and for expressions
- JSON Conversion - Convert between HCL and JSON
- Validation - Validate configuration files
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
The MIT License. Please see License File for more information.