2017 © Pedro PelĂĄez
 

library lib-arrayaccess

Code Inc.'s ArrayAccess library

image

codeinchq/lib-arrayaccess

Code Inc.'s ArrayAccess library

  • Tuesday, February 27, 2018
  • by joanfabregat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

ArrayAccess library

Usage

<?php
use CodeInc\ArrayAccess\ArrayAccessTrait;
use CodeInc\ArrayAccess\AbstractArrayAccess;
use CodeInc\ArrayAccess\ArrayAccess;

/*
 * As a trait
 */
class MyArrayAccesssibleClass1 implements \ArrayAccess {
    use ArrayAccessTrait;

    protected function getAccessibleArray():array {
        // returns the accessible array
    }
}

/*
 * As a parent class
 */
class MyArrayAccesssibleClass2 extends AbstractArrayAccess {
    protected function getAccessibleArray():array {
        // returns the accessible array
    }
}

/*
 * As a autonomous object
 */
$arrayAccessible = new ArrayAccess([1 =>  "One", 2 => "Two", 3 => "Three"]);
echo $arrayAccessible[2]; // echoes "Two"

Installation

This library is available through Packagist and can be installed using Composer:, (*1)

composer require codeinc/array-access

License

The library is published under the MIT license (see LICENSE file)., (*2)

The Versions

27/02 2018

dev-master

9999999-dev https://github.com/codeinchq/lib-arrayaccess

Code Inc.'s ArrayAccess library

  Sources   Download

proprietary

The Requires

  • php >=7.0

 

27/02 2018

1.1.3

1.1.3.0 https://github.com/codeinchq/lib-arrayaccess

Code Inc.'s ArrayAccess library

  Sources   Download

proprietary

The Requires

  • php >=7.0

 

12/12 2017

1.1.2

1.1.2.0 https://github.com/codeinchq/lib-arrayaccess

Code Inc.'s ArrayAccess library

  Sources   Download

proprietary

The Requires

  • php >=7.0

 

06/12 2017

1.1.1

1.1.1.0 https://github.com/codeinchq/lib-arrayaccess

Code Inc.'s ArrayAccess library

  Sources   Download

proprietary

The Requires

  • php >=7.0

 

05/12 2017

1.1.0

1.1.0.0 https://github.com/codeinchq/lib-arrayaccess

Code Inc.'s ArrayAccess library

  Sources   Download

proprietary

The Requires

  • php >=7.0

 

04/12 2017

1.0.0

1.0.0.0 https://github.com/codeinchq/lib-arrayaccess

Code Inc.'s ArrayAccess library

  Sources   Download

proprietary

The Requires

  • php >=7.0