https://github.com/mkgor/yacl
YACL is lightweight and easy to use library, which allows you to make your configuration files easy to read and edit.
https://github.com/mkgor/yacl
configuration language php7 tokenization yacl
Last synced: 5 months ago
JSON representation
YACL is lightweight and easy to use library, which allows you to make your configuration files easy to read and edit.
- Host: GitHub
- URL: https://github.com/mkgor/yacl
- Owner: mkgor
- License: mit
- Created: 2019-12-07T08:38:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-30T20:35:27.000Z (about 6 years ago)
- Last Synced: 2025-07-08T06:07:03.817Z (12 months ago)
- Topics: configuration, language, php7, tokenization, yacl
- Language: PHP
- Homepage: https://mkgor.github.io/yacl/
- Size: 35.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README




# YACL
##### Yet Another Configuration Language

YACL is lightweight and easy to use library, which allows you to make your configuration files easy to read and edit.
## Requirements
- Composer (for installation)
- PHP 7.1 or higher
## Installation
Use composer to install it
````bash
composer require mkgor/yacl
````
## Usage
After installation, you are ready to use it
````php
manager->parseYcl('path-to-your-file.ycl');
//Getting data as array
$configurationArray = $result->asArray();
//Getting data as PHP object
$configurationObject = $result->asObject();
````
## Syntax
Creating simple key => value item
````
key is "value"
````
Creating array / multidimensional array
````
arrayName are
key is "value"
secondArray are
secondKey is "secondValue"
end
end
````
You also can create inline array and specify its items in one line
````
inlineArray are "firstValue","secondValue","thirdValue" end
````
#### Syntax highlighting
In near future i will create .ycl syntax highlighting plugin for Sublime Text