https://github.com/ghalambaz/configfilemanager
https://github.com/ghalambaz/configfilemanager
configuration-management ini-parser php
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ghalambaz/configfilemanager
- Owner: ghalambaz
- License: mit
- Created: 2018-10-16T18:12:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-12T08:50:02.000Z (about 6 years ago)
- Last Synced: 2025-02-09T00:44:10.315Z (over 1 year ago)
- Topics: configuration-management, ini-parser, php
- Language: PHP
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
### Config File Manager
> this class written 5 years ago . it's better to not use regular expressions for performance and faster interpreting . this project is just for ... !
you may have file like this in your projects
**#config.ini**
>Title=My App
>TemplateDirectory=temp dir
start with create new instance of **ConfigFileManager**
```php
$config = new ConfigFileManager('configs/config.ini'); //opening file config.ini from configs directory
echo $config->Title; //read "Title" value which is equal to "My App"
$config->Title = "Your App"; //changing value of "Title"
$config->save(); //save changes to config.ini easily
```
### installation
---
`composer require ghalambaz/config-file-manager `