2017 © Pedro Peláez
 

cakephp-plugin cakephp-settings

Read and write settings for CakePHP apps

image

jorisvaesen/cakephp-settings

Read and write settings for CakePHP apps

  • Monday, June 18, 2018
  • by jorisvaesen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Settings plugin for CakePHP

Installation

You can install this plugin into your CakePHP application using composer., (*1)

The recommended way to install composer packages is:, (*2)

composer require jorisvaesen/cakephp-settings

Enable plugin:, (*3)

bin/cake plugin load -b JorisVaesen/Settings

Migrate settings table, (*4)

bin/cake migrations migrate -p JorisVaesen/Settings

Usage

Create setting, (*5)

bin/cake joris_vaesen/settings.create

Read setting, (*6)

use JorisVaesen\Settings\Settings;

echo Settings::read($name);

Write setting, (*7)

// Using simple find and update
$settingsTable = TableRegistry::getTableLocator()->get('JorisVaesen/Settings.Settings');
$setting = $settingsTable->find('name', ['name' => 'SETTING_NAME'])->first();
$setting->set('value', 'NEW VALUE');
$settingsTable->save($setting);

// Write method
TableRegistry::getTableLocator()->get('JorisVaesen/Settings.Settings')
    ->write('NAME', 'NEW_VALUE');

The Versions

18/06 2018

dev-master

9999999-dev

Read and write settings for CakePHP apps

  Sources   Download

MIT

The Requires

 

The Development Requires

settings cakephp

18/06 2018

0.2.0

0.2.0.0

Read and write settings for CakePHP apps

  Sources   Download

MIT

The Requires

 

The Development Requires

settings cakephp

18/06 2018

0.1.0

0.1.0.0

Read and write settings for CakePHP apps

  Sources   Download

MIT

The Requires

 

The Development Requires

settings cakephp