mibadger/settings

This package is abandoned and no longer maintained. No replacement package was suggested.

The Settings Component

v4.0.0 2021-08-12 12:06 UTC

This package is auto-updated.

Last update: 2022-11-19 17:10:06 UTC


README

Build Status Code Coverage Scrutinizer Code Quality SensioLabsInsight

The Settings Component.

Example

<?php

use miBadger\Settings\Settings;

/**
 * Construct a settings object.
 */
$settings = new Settings();

/**
 * Load the settings file from the given location.
 */
$settings->load($path);

/**
 * Returns the value to which the specified key is mapped, or null if the settings map contains no mapping for the key.
 */
$settings->get('name'); // John Doe

/**
 * Associates the specified value with the specified key in the settings map.
 */
$settings->set('Jane Doe');

/**
 * Save the settings file at the given location.
 */
$settings->save($path);