承接 drlenux/large-array 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drlenux/large-array

最新稳定版本:1.1.1

Composer 安装命令:

composer require drlenux/large-array

包简介

Array for big data, big array, large array, memory array

README 文档

README

Latest Version Total Downloads

PHP Array Implementation with SQLite3

Designed for storing large datasets as an array.

Please note: If you have a very large array, consider reevaluating your architecture rather than using this code. Use this library only in exceptional cases.

Installation

You can install this package via Composer:

composer require drlenux/large-array

Usage

use Drlenux\LargeArray\LargeArray;

$array = new LargeArray(/** optional salt **/);
$array = new LargeArray('for report');

for ($i = 0; $i < 1_000_000; $i++) $array[] = $i;
$array['test'] = 'test value';
$array['sub']['array'] = true; // don't use, 'cause return null
$array['sub'] = ['array' => true]; // it's correct

$array->in(5000); // result: true [instead of in_array]
$array[5000] // result: 5000
$array['test'] // result: test value

LargeArray use interface ArrayAccess, Countable, Iterator

Security

If you discover any security-related issues, please email oleksii@bielokudrenko.family instead of using the issue tracker.

License

This package is open-source software licensed under the MIT license.

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-31