承接 sil-org/php-array-dot-notation 相关项目开发

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

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

sil-org/php-array-dot-notation

最新稳定版本:0.2.0

Composer 安装命令:

composer require sil-org/php-array-dot-notation

包简介

PHP library for using dot notation in arrays

README 文档

README

A utility to use dot notation in PHP arrays.

Setup

  1. Clone this repo.
  2. Copy local.env.dist to local.env and update GitHub.com token as appropriate.
  3. Run make test to install dependencies and run PHPUnit tests.

Makefile script

There is a Makefile in place to simplify common tasks.

  • make test - does composer install and runs phpunit tests

Class DotNotation

Util class containing a single method to collapse a multi-dimensional array into a single-dimensional array. Array keys are combined using a dot to separate levels of the array. For instance:

[
    'a' => [
        'x' => 'data1',
    ],
    'b' => 'data2',
]

will be collapsed to

[
    'a.x' => 'data1',
    'b' => 'data2',
]

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-23