2017 © Pedro Peláez
 

neos-package registry

Global registry of things with an Eel helper

image

psmb/registry

Global registry of things with an Eel helper

  • Saturday, December 9, 2017
  • by dimaip
  • Repository
  • 1 Watchers
  • 2 Stars
  • 696 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 5 Versions
  • 6 % Grown

The README.md

Use with caution and only if you absolutely have to!, (*1)

This package provides you with a registry service and an Eel helper to get and set values on it., (*2)

Installation

composer require psmb/registry, (*3)

Usage

Example

root = T:Collection {
    @context.blah = ${Registry.set('acc', 0)}
    collection = ${[1,2,3]}
    itemName = 'item'
    itemRenderer = T:Value {
        @context.blah = ${Registry.set('acc', item + Registry.get('acc'))}
        value = ${Registry.get('acc')}
    }
}

The following methods are available:, (*4)

  • set(key, value): Sets a value by key
  • get(key): Returns a value by key
  • getset(key, value): Atomically sets key to value and returns the old value stored at key.
  • increment(key): Increment a value by key
  • decrement(key): Derement a value by key

A key can consist of a single string or a path, separated with dots which addresses a value in a nested array., (*5)

The Versions

09/12 2017

dev-master

9999999-dev

Global registry of things with an Eel helper

  Sources   Download

MIT

The Requires

 

21/03 2017

2.0.1

2.0.1.0

Global registry of things with an Eel helper

  Sources   Download

MIT

The Requires

 

01/02 2017

2.0

2.0.0.0

Global registry of things with an Eel helper

  Sources   Download

MIT

The Requires

 

01/02 2017

1.0

1.0.0.0

Global registry of things with an Eel helper

  Sources   Download

MIT

The Requires

 

29/11 2016

0.1

0.1.0.0

Global registry of things with an Eel helper

  Sources   Download

MIT

The Requires