2017 © Pedro Peláez
 

library stingray

Dot notation reader/writer for multidimensional arrays in PHP.

image

rwillians/stingray

Dot notation reader/writer for multidimensional arrays in PHP.

  • Monday, April 11, 2016
  • by rwillians
  • Repository
  • 2 Watchers
  • 1 Stars
  • 1,556 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

Stingray Code Climate Test Coverage

Dot notation reader/writer for multidimensional arrays in PHP., (*1)

Installing via Composer

Add Stingray to your project:, (*2)

$>  composer.phar require rwillians/stingray ^2.0

or directly to composer.json:, (*3)

{
    "require": {
        "rwillians/stingray": "^2.0"
    }
}

Then update your dependencies:, (*4)

$>  composer.phar update

Example Usage

To get any node from an array:, (*5)

use Rwillians\Stingray\Stingray;

$someArray = array(
    'client' => array(
        'name' = 'John Doe'
    )
);

// Getting a value using dot notation:
echo Stingray::get($someArray, 'client.name'); // Outputs: 'John Doe'

// Changing a value using dot notation:
Stingray::set($someArray, 'client.name', 'Jane Doe');

// Create a new key-value to an existent array using dot notation:
Stingray::set($someArray, 'client.address', 'Some Street, 123');

The Versions

11/04 2016

v2.x-dev

2.9999999.9999999.9999999-dev

Dot notation reader/writer for multidimensional arrays in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Matthew Ratzke
by Rafael Willians

11/04 2016

2.1.0

2.1.0.0

Dot notation reader/writer for multidimensional arrays in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Matthew Ratzke
by Rafael Willians

11/11 2015

2.0.0

2.0.0.0

Dot notation reader/writer for multidimensional arrays in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Matthew Ratzke
by Rafael Willians

13/06 2015

1.x-dev

1.9999999.9999999.9999999-dev

Dot notation reader/writer for multidimensional arrays in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Matthew Ratzke
by Rafael Willians

13/06 2015

1.0.1

1.0.1.0

Dot notation accessor for multidimensional arrays in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Matthew Ratzke
by Rafael Willians

12/06 2015

1.0.0

1.0.0.0

Stingray - Access array elements via dot notation

  Sources   Download

MIT

The Development Requires

by Matthew Ratzke