承接 jlinn/caseformat 相关项目开发

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

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

jlinn/caseformat

Composer 安装命令:

composer require jlinn/caseformat

包简介

A PHP case formatting tool inspired by Google Guava's CaseFormat.

关键字:

README 文档

README

Build Status

A PHP case formatting tool inspired by Google Guava's CaseFormat.

Installation Using Composer

Assuming composer.phar is located in your project's root directory, run the following command:

php composer.phar require jlinn/caseformat:~1.0

Usage

The following case formats are supported:

Format Example
LOWER_HYPHEN foo-bar
LOWER_UNDERSCORE foo_bar
LOWER_CAMEL fooBar
LOWER_SPACE foo bar
UPPER_CAMEL FooBar
UPPER_UNDERSCORE FOO_BAR
UPPER_SPACE FOO BAR

Conversion from LOWER_UNDERSCORE to UPPER_CAMEL, for example, is done like so:

use CaseFormat\CaseFormat;

$converted = CaseFormat::LOWER_UNDERSCORE("test_string")->to(CaseFormat::UPPER_CAMEL);

In the example above, the value of $converted would be "TestString".

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固