micropackage/casegnostic 问题修复 & 功能扩展

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

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

micropackage/casegnostic

最新稳定版本:1.0.0

Composer 安装命令:

composer require micropackage/casegnostic

包简介

Casegnostic - access properties and methods both snake_case and camelCase

README 文档

README

BracketSpace Micropackage Latest Stable Version PHP from Packagist Total Downloads License

Micropackage logo

🧬 About Casegnostic

Package that simplifies transition from one coding standard to other, namely from snake_case to camelCase or vice-versa.

When you're about to break compatibility by changing method name from something_important() to somethingImportant() you can simply attach the trait.

use Micropackage\Casegnostic\Casegnostic;

class Example
{
	use Casegnostic;

	public function somethingImportant()
	{
		return true;
	}
}

$x = new Example();

// That works as expected:
$x->somethingImportant();

// But that works too! 🤯
$x->something_important();

💾 Installation

composer require micropackage/casegnostic

🕹 Usage

Simply attach the trait to your class.

use Micropackage\Casegnostic\Casegnostic;

class Example
{
	use Casegnostic;
}

📦 About the Micropackage project

Micropackages - as the name suggests - are micro packages with a tiny bit of reusable code, helpful particularly in WordPress development.

The aim is to have multiple packages which can be put together to create something bigger by defining only the structure.

Micropackages are maintained by BracketSpace.

📖 Changelog

See the changelog file.

📃 License

GNU General Public License (GPL) v3.0. See the LICENSE file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2023-03-22