承接 elleyeayeme/case-converter 相关项目开发

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

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

elleyeayeme/case-converter

Composer 安装命令:

composer require elleyeayeme/case-converter

包简介

A converter for strings in most popular cases

README 文档

README

This package allows strings in any of the popular formats (e.g. camel case and snake case) to be converted between one another.

Installation

Install the latest version with:

composer require elleyeayeme/case-converter 

Basic Usage

<?php

use CaseConverter\CaseConverter;

$converter = new CaseConverter;

// Outputs a_string_with_99_numbers
echo $converter->convert('aStringWith99Numbers')
    ->from('camel')
    ->to('snake');

See the Supported Formats section for a list of the tokens to pass to from() and to() for conversion.

Supported Formats

The formats supported at present are:

  • Camel case (token: camel) i.e. thisIsCamelCase
  • Kebab case (token: kebab) i.e. this-is-kebab-case
  • Snake case (token: snake) i.e. this_is_snake_case
  • Studly caps (token: studly) i.e. ThisIsStudlyCaps
  • Standard text (token: standard) i.e. this is standard text

License

Case Converter is licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固