bytic / namefy
Namefy 帮助器,用于模型和控制器
1.0.2
2021-03-02 10:41 UTC
Requires
- php: ^7.2|^8.0
- bytic/inflector: ^1.0
- bytic/utility: ^1.0
Requires (Dev)
- mockery/mockery: ^1.1
- phpunit/phpunit: ^7.2|^8.0|^9.0
This package is auto-updated.
Last update: 2024-08-29 05:54:08 UTC
README
Namefy 帮助器,用于模型和控制器
安装
composer require anytizer/namifier.php:dev-master
基本用法
<?php require_once 'vendor/autoload.php'; // use the factory to create a controller name from slug $model = \ByTIC\Namefy\Namefy::from('post')->controllerName(); // use the factory to create a controller name from model name $model = \ByTIC\Namefy\Namefy::model('post')->controllerName();