承接 larapkg/laravel-keychanger 相关项目开发

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

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

larapkg/laravel-keychanger

Composer 安装命令:

composer create-project larapkg/laravel-keychanger

包简介

PhpKeyChanger allows you to pass a json string, object or an array and it will recursively re-key the array using the case you give it.

README 文档

README

Codacy Badge Build Status

KeyChanger allows you to pass a json string, object or an array and it will recursively re-key it using the case you give it. This package was created to handle situation like $someImportedData->SomeKey so we can use a nice $someImportedData->someKey for example, to assist in readable clean code.

  • Camel Case
  • Pascal Case
  • Snake Case
  • Kebab Case
  • Studly Case

Installation

Note: Php key changer requires php ^7.4

composer require larapkg/laravel-keychanger

Usage

$reKeyed = KeyChanger::reKey($array, 'snake');

You can use any of the above cases, and you can pass in an object, a Json string or an Array, it will be return the same type that you pass in.

Credits

I used Illuminate\Support\Str as the basis of the StringConverters class`, many thanks Taylor Otwell and all contributors.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-08-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固