2017 © Pedro Peláez
 

library registry

Laravel 4 Registry Manager for storing application specific settings

image

twosuperior/registry

Laravel 4 Registry Manager for storing application specific settings

  • Monday, June 4, 2018
  • by twosuperior
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3,226 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 11 Versions
  • 3 % Grown

The README.md

Registry Manager

Laravel 4/5 Registry Manager for storing application specific settings. A mashup of https://github.com/theelphie/registry and https://github.com/torann/laravel-4-registry. A big thanks to @Torann and @theelphie., (*1)

Thanks also to @srlabs for his blog on Laravel 5 Package Development, (*2)

Installation for Laravel 5

Add the following into your composer.json file:, (*3)

{
    "require": {
        "twosuperior/registry": "2.0.x"
    }
}

Installation for Laravel 4

Add the following into your composer.json file:, (*4)

{
    "require": {
        "twosuperior/registry": "1.0.x"
    }
}

Post Install Setup for Laravel 5

Add the service provider and alias into your app/config/app.php, (*5)

'providers' => [
    Twosuperior\Registry\RegistryServiceProvider::class,
],

'Registry' => Twosuperior\Registry\Facades\Registry::class,

Run php artisan vendor:publish, (*6)

Post Install Setup for Laravel 4

Add the service provider and alias into your app/config/app.php, (*7)

'providers' => array(
    'Twosuperior\Registry\RegistryServiceProvider',
),

'Registry' => 'Twosuperior\Registry\Facades\Registry',

Run php artisan config:publish "twosuperior\registry", (*8)

Run php artisan migrate --package="twosuperior\registry" to install the registry table, (*9)

Usage

Retrieve item from registry, (*10)

Registry::get('foo'); \\will return null if key does not exists
Registry::get('foo.bar'); \\will return null if key does not exists

Registry::get('foo', 'undefine') \\will return undefine if key does not exists

Store item into registry, (*11)

Registry::set('foo', 'bar');
Registry::set('foo', array('bar' => 'foobar'));

Registry::get('foo'); \\bar
Registry::get('foo.bar'); \\foobar

Remove item from registry, (*12)

Registry::forget('foo');
Registry::forget('foo.bar');

Clear cache and reload registry, (*13)

Registry::clear();

Flush registry table, (*14)

Registry::flush();

Dump all values from an item, (*15)

Registry::dump('foo');

Retrieve all items from registry, (*16)

Registry::all();

Mass update, (*17)

$settings = Input::only('name', 'address', 'email');

Registry::store($settings);

The Versions

04/06 2018

dev-master

9999999-dev

Laravel 4 Registry Manager for storing application specific settings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel registry twosuperior

04/06 2018

2.1.1

2.1.1.0

Laravel 4 Registry Manager for storing application specific settings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel registry twosuperior

15/05 2018

2.1.0

2.1.0.0

Laravel 4 Registry Manager for storing application specific settings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel registry twosuperior

15/06 2017

2.0.4

2.0.4.0

Laravel 4 Registry Manager for storing application specific settings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel registry twosuperior

15/06 2017

2.0.3

2.0.3.0

Laravel 4 Registry Manager for storing application specific settings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel registry twosuperior

30/09 2015

2.0.2

2.0.2.0

Laravel 4 Registry Manager for storing application specific settings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel registry twosuperior

30/09 2015

2.0.1

2.0.1.0

Laravel 4 Registry Manager for storing application specific settings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel registry twosuperior

23/03 2015

2.0.0

2.0.0.0

Laravel 4 Registry Manager for storing application specific settings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel registry twosuperior

03/10 2014

dev-L4

dev-L4

Laravel 4 Registry Manager for storing application specific settings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel registry twosuperior

03/10 2014

1.0.1

1.0.1.0

Laravel 4 Registry Manager for storing application specific settings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel registry twosuperior

24/09 2014

1.0.0

1.0.0.0

Laravel 4 Registry Manager for storing application specific settings

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

laravel registry twosuperior