bytic / namefy
Namefy helper for Models, Controllers
Installs: 2 603
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
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-10-29 06:12:17 UTC
README
Namify helper for Models, Controllers
Installation
composer require anytizer/namifier.php:dev-master
Basic Usage
<?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();