https://github.com/phlib/config
https://github.com/phlib/config
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phlib/config
- Owner: phlib
- License: lgpl-3.0
- Created: 2015-02-21T14:39:22.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2025-01-27T11:12:41.000Z (over 1 year ago)
- Last Synced: 2026-01-11T09:11:50.026Z (6 months ago)
- Language: PHP
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# phlib/config
[](https://github.com/phlib/config/actions/workflows/code-checks.yml)
[](https://codecov.io/gh/phlib/config)
[](https://packagist.org/packages/phlib/config)
[](https://packagist.org/packages/phlib/config)

```php
$config = [
'db' => [
'host' => '10.1.0.1',
'username' => 'sam',
'password' => 'SuperSafePass',
],
];
$host = \Phlib\Config\get($config, 'db.host');
$port = \Phlib\Config\get($config, 'db.port', 3306);
```
## License
This package is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see .