8000 GitHub - furthestworld/maze: A PHP Configuration File Manager
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

furthestworld/maze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About Maze

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Maze is a PHP configuration file manager.

Installation

composer require edoger/maze

Example

<?php
use Maze\Maze;

// Create Maze configuration file manager instanse.
$maze = new Maze("Your/configuration/file/root/directory");

// Load: Your/configuration/file/root/directory/maze.conf.php
$items = $maze->load('maze');

$items->exists('key');       // Check whether the configuration item exists.
$items->get('key');          // Get a configuration item value.
$items->all();               // Get all configuration item values.
$items->set('key', 'value'); // Add or update a configuration item.
$items->forget('key');       // Forget a configuration item.
$items->merge($items);       // Merge all configuration items from another items instance.
?>

License

Apache License 2.0

About

A PHP Configuration File Manager

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0