2017 © Pedro Peláez
 

library nest

Nest is a decorator for key based methods invocation

image

regeda/nest

Nest is a decorator for key based methods invocation

  • Tuesday, March 31, 2015
  • by regeda
  • Repository
  • 1 Watchers
  • 4 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Nest

Nest is a decorator for key based methods invocation. The class for PHP 5.3 consists of just one file., (*1)

Build Status, (*2)

Usage

Defining the initial namespace and the client:, (*3)

$nest = new Nest('foo', new Redis());
echo $nest; // -> foo

Extending the namespace:, (*4)

$nest = new Nest('foo', new Redis());

echo $nest['bar']; // -> foo:bar
echo $nest['bar']['baz']; // -> foo:bar:baz

Invoking a method:, (*5)

$redis = new Redis(); // or $memcached = new Memcached()

$user = new Nest('user', $redis);

// getter

foreach ($ids as $id) {
    echo $user[$id]['username']->get(); // makes the proxy to $redis->get('user:$id:username')
}

// setter

$user[$id]['age']->set(18); // $redis->set('user:$id:age', 18)

Source: https://github.com/regeda/php-nest, (*6)

The Versions

31/03 2015

dev-master

9999999-dev

Nest is a decorator for key based methods invocation

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Anthony Regeda

redis decorator

24/04 2013

v1.1

1.1.0.0

Nest is a decorator for key based methods invocation

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Anthony Regeda

dependency injection container proxy decorator

18/04 2013

v1.0

1.0.0.0

Nest is a decorator for invocation key based methods

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by Anthony Regeda

dependency injection container proxy decorator