https://github.com/dschoenbauer/config
A library to load a directory full of JSON files into a massive array that can be accessed.
https://github.com/dschoenbauer/config
Last synced: about 1 month ago
JSON representation
A library to load a directory full of JSON files into a massive array that can be accessed.
- Host: GitHub
- URL: https://github.com/dschoenbauer/config
- Owner: dschoenbauer
- License: mit
- Created: 2017-09-11T15:59:37.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2018-09-05T19:37:46.000Z (over 6 years ago)
- Last Synced: 2024-12-03T01:12:53.292Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 85.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Config
A common library to load a directory full of JSON files into a massive array that
can be accessed.[](https://travis-ci.org/dschoenbauer/config) [](https://coveralls.io/github/dschoenbauer/config?branch=develop) [](https://github.com/dschoenbauer/config) [](https://packagist.org/packages/dschoenbauer/config) [](https://github.com/dschoenbauer/config/releases)
### Methods summary
|Method | Description|
| ----- | ----- |
|public **__construct( string $path = null )**|
|public **mixed get( string $dotNotation, mixed $defaultValue = null )**|retrieves a value from the amalgamation of all the JSON files data|
|public **array getFiles( string $path )**|retrieves an array of JSON files found in a directory|
|public **importData( array $files = [] )**|loads data into the object from a list of JSON files. If run multiple times the data will be continually added to|
|public **load( string $path )**|loads JSON files from a directory path|
|public **DSchoenbauer\DotNotation\ArrayDotNotation #getArrayDot( )**|Array dot notation allows for quick and easy access to a complicated data structure|
|public **setArrayDot( DSchoenbauer\DotNotation\ArrayDotNotation $arrayDot )**|Array dot notation allows for quick and easy access to a complicated data structure|
|public string **filterPath( string $path )**|Cleans a string so that it is truly a path relevant to the class.|