2017 © Pedro Peláez
 

library registry

Registry component provides a mechanism for storing data globally in a well managed fashion, helping to prevent global meltdown.

image

flextype-components/registry

Registry component provides a mechanism for storing data globally in a well managed fashion, helping to prevent global meltdown.

  • Saturday, May 5, 2018
  • by Awilum
  • Repository
  • 1 Watchers
  • 0 Stars
  • 83 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 66 % Grown

The README.md

Registry Component

Registry component provides a mechanism for storing data globally in a well managed fashion, helping to prevent global meltdown. , (*1)

Version License Total downloads Quality Score , (*2)


, (*3)

Installation

With Composer:, (*4)

composer require flextype-components/registry

Usage

use Flextype\Component\Registry;

$registry = new Registry();

Methods

Method Description
set() Set a value in the registry.
get() Get item from the registry.
has() Determine if the registry has a value for the given name.
delete() Delete a value from the registry.
flush() Flush all values from the registry.
all() Get all values in the register.

Method: set()

Set a value in the registry., (*5)

Example:, (*6)

$registry->set('movies.the-thin-red-line.title', 'The Thin Red Line');

Method: get()

Get item from the registry., (*7)

Example:, (*8)

$registry->get('movies.the-thin-red-line.title');

Method: has()

Determine if the registry has a value for the given name., (*9)

Example:, (*10)

if ($registry->has('movies.the-thin-red-line.title')) {
    // do something...
}

Method: delete()

Example:, (*11)

$registry->delete('movies.the-thin-red-line.title');

Method: flush()

Flush all values from the registry., (*12)

Example:, (*13)

$registry->flush();

Method: all()

Get all values in the register., (*14)

Example:, (*15)

$dump = $registry->all();

License

The MIT License (MIT) Copyright (c) 2020 Sergey Romanenko, (*16)

The Versions

05/05 2018

dev-master

9999999-dev https://github.com/flextype-components/registry

Registry component provides a mechanism for storing data globally in a well managed fashion, helping to prevent global meltdown.

  Sources   Download

MIT

The Requires

 

storage registry

05/05 2018

v1.1.0

1.1.0.0 https://github.com/flextype-components/registry

Registry component provides a mechanism for storing data globally in a well managed fashion, helping to prevent global meltdown.

  Sources   Download

MIT

The Requires

 

storage registry

05/05 2018

v1.0.2

1.0.2.0 https://github.com/flextype-components/registry

Registry component provides a mechanism for storing data globally in a well managed fashion, helping to prevent global meltdown.

  Sources   Download

MIT

The Requires

 

storage registry

05/05 2018

v1.0.1

1.0.1.0 https://github.com/flextype-components/registry

Registry component provides a mechanism for storing data globally in a well managed fashion, helping to prevent global meltdown.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

storage registry

12/04 2018

v1.0.0

1.0.0.0 https://github.com/flextype-components/registry

Registry component provides a mechanism for storing data globally in a well managed fashion, helping to prevent global meltdown.

  Sources   Download

MIT

The Requires

  • php ^7.1.3

 

storage registry