mattketmo/camel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

mattketmo/camel

最新稳定版本:v1.1.0

Composer 安装命令:

composer require mattketmo/camel

包简介

Tiny library to handle words case transformation

README 文档

README

Build status... Code quality... License MIT Packagist

Tiny library to handle words case transformation.

The main idea is to split the given word into several words and assemble them in another format.

Example: camelCase => [camel, Case] => camel_case

Installation

composer require mattketmo/camel

Usage

<?php

require __DIR__.'/vendor/autoload.php';

use Camel\CaseTransformer;
use Camel\Format;

$transformer1 = new CaseTransformer(new Format\SnakeCase, new Format\CamelCase);
$transformer2 = new CaseTransformer(new Format\CamelCase, new Format\ScreamingSnakeCase);

echo $transformer1->transform('hello_world'); // helloWorld
echo $transformer2->transform('helloWorld');  // HELLO_WORLD

Supported formats

  • camelCase
  • StudlyCaps
  • snake_case
  • SCREAMING_SNAKE_CASE
  • spinal-case

Unit Tests

Install phpunit via Composer:

composer install

Once installed, run the following command:

vendor/bin/phpunit

License

Camel is released under the MIT License. See the bundled LICENSE file for details.

统计信息

  • 总下载量: 336.73k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 32
  • 点击次数: 3
  • 依赖项目数: 28
  • 推荐数: 0

GitHub 信息

  • Stars: 29
  • Watchers: 4
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固