Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
41 lines (31 sloc) 1.32 KB

Settings

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);
You can’t perform that action at this time.