gravatalonga / configuration-scan
Scan for Configuration in very opinionated manner
Fund package maintenance!
gravataLonga
1.0.0
2022-01-17 22:49 UTC
Requires
- php: ^7.4|^8.0
- symfony/finder: ^6.0|^5.4.2
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-12-18 05:46:11 UTC
README
Scan for Configuration in very opinionated manner:
parent-folder
\- name-of-folder
\- config.json
\- other.json
\- other-name-of-folder
\- config.json
Install
composer require "gravatalonga/configuration-scan"
Requirements
It was tested on PHP7.4 and PHP8.0
How to use
<?php $scan = new \Gravatalonga\ConfigurationScan\Scan("parent-folder"); $containers = $scan->containers(); // get array with "name-of-folder" as key, and config.json as value. // .... $configurations = $scan->configurations('name-of-folder'); // it will get "other" as key and other.json as value.
Tests
composer test