定制 ronappleton/laravel-dot 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ronappleton/laravel-dot

Composer 安装命令:

composer require ronappleton/laravel-dot

包简介

Set and get array values via dot notation

README 文档

README

Set and get array values via dot notation.

This library is a wrapper for Laravel around the php-dot library.

It makes accessible a facade 'Dot' to use the php-dot library.

Installation

composer require ronappleton/laravel-dot "v1.0"

Laravel < 5.5 add RonAppleton\LaravelDot\ServiceProvider::class to your config/app.php file

Laravel > 5.5 the library is autoloaded.

Lumen add $app->register(RonAppleton\LaravelDot\ServiceProvider::class); to your bootstrap/app.php

Example Usage

Declare use RonAppleton\LaravelDot\Facade\Dot; at the top of your file.

Then:

$value = Dot::get($array, 'key.to.your.value', $defaultValue);

$success = Dot::set($array, 'key.to.append.value', $value);

Note: set accesses the array via reference and returns true on success.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-02-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固