定制 yuloh/neko 二次开发

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

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

yuloh/neko

最新稳定版本:0.1.0

Composer 安装命令:

composer require yuloh/neko

包简介

Simple helpers for case transformations.

README 文档

README

Neko is a small collection of case tranformation functions for PHP. They are as simple as possible with no external dependencies.

I wrote this library because I was tired of the other libraries out there not working like I expected. Neko can handle input in Title case, lower case, PascalCase, camelCase, kebab-case, SCREAMING-KEBAB-CASE, snake_case, and SCREAMING_SNAKE_CASE.

You can see how Neko stacks up against other case transformation libraries in the throwdown over here.

Install

Neko can be installed using composer.

$ composer require yuloh/neko

Usage

Snake Case

use function Yuloh\Neko\snake_case;

echo snake_case('Hello World'); // hello_world

Kebab Case

use function Yuloh\Neko\kebab_case;

echo kebab_case('Hello World'); // hello-world

Pascal Case

use function Yuloh\Neko\pascal_case;

echo pascal_case('Hello World'); // HelloWorld

Camel Case

use function Yuloh\Neko\camel_case;

echo camel_case('Hello World'); //helloWorld

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-21