2017 © Pedro Peláez
 

library data-structure

Jimdo PHP library extraction of data-structure component

image

jimphle/data-structure

Jimdo PHP library extraction of data-structure component

  • Wednesday, August 23, 2017
  • by schnipseljagd
  • Repository
  • 73 Watchers
  • 0 Stars
  • 374 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Jimphle-data-structure

Jimdo PHP library extraction of data-structure component., (*1)

This comes with a Map and a Vector and a Null implementation of the BaseInterface. Facts: * Immutable * Throws InvalidPropertyException on none-existing keys * Is able convert complete trees of different data structures to json * Is sometimes not very efficient. For example the fromArray method uses the Vector::isSequentialList check which copies the complete array in memory, (*2)

A Vector is a representation of an array with sequential numeric indexes:, (*3)

$vector = new \Jimphle\DataStructure\Vector(
    array(
        'foo',
        'bar'
    )
);

echo $vector[1];

A Map is a representation of an array with key and value:, (*4)

$map = new \Jimphle\DataStructure\Map(
    array(
        'foo' => 'bar'
    )
);
echo $map->foo;

$map = new \Jimphle\DataStructure\Map(
    array(
        'foo-1' => 'bar'
    )
);
echo $map['foo-1'];

Convert an object tree to json:, (*5)

$map = new \Jimphle\DataStructure\Map(
    array(
        'who?' => new \Jimphle\DataStructure\Vector(
            array(
                new Jimphle\DataStructure\Map(
                    array(
                        'foo' => 'bar'
                    )
                )
            )
        )
    )
);
echo $map->toJson();

The Versions

23/08 2017

dev-master

9999999-dev https://github.com/Jimdo/jimphle-data-structure

Jimdo PHP library extraction of data-structure component

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Joscha

map vector data-structure

23/08 2017

v0.5.0

0.5.0.0 https://github.com/Jimdo/jimphle-data-structure

Jimdo PHP library extraction of data-structure component

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Joscha

map vector data-structure

13/08 2015

v0.4.0

0.4.0.0 https://github.com/Jimdo/jimphle-data-structure

Jimdo PHP library extraction of data-structure component

  Sources   Download

MIT

The Development Requires

by Joscha

map vector data-structure

13/08 2015

v0.3.0

0.3.0.0 https://github.com/Jimdo/jimphle-data-structure

Jimdo PHP library extraction of data-structure component

  Sources   Download

MIT

The Development Requires

by Joscha

map vector data-structure

12/08 2015

v0.2.0

0.2.0.0 https://github.com/Jimdo/jimphle-data-structure

Jimdo PHP library extraction of data-structure component

  Sources   Download

MIT

The Development Requires

by Joscha

map vector data-structure

16/02 2014

v0.1.0

0.1.0.0 https://github.com/Jimdo/jimphle-data-structure

Jimdo PHP library extraction of data-structure component

  Sources   Download

MIT

The Development Requires

by Joscha

map vector data-structure