harp-orm/lazy-array

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

An array which contents can be loaded only when needed

0.1.1 2015-09-04 08:42 UTC

This package is auto-updated.

Last update: 2021-07-21 14:07:15 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version

An array which contents can be loaded only when needed

Instalation

Install via composer

composer require harp-orm/lazy-array

Usage

$arr = new LazyArray($loader);

// This is where the loader->load() method gets executed
echo $arr[2];

License

Copyright (c) 2015, Clippings Ltd. Developed by Ivan Kerin

Under BSD-3-Clause license, read LICENSE file.