micropackage/casegnostic
最新稳定版本:1.0.0
Composer 安装命令:
composer require micropackage/casegnostic
包简介
Casegnostic - access properties and methods both snake_case and camelCase
README 文档
README
🧬 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
📃 License
GNU General Public License (GPL) v3.0. See the LICENSE file for more information.
统计信息
- 总下载量: 6.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2023-03-22