bytic/namefy

Namefy helper for Models, Controllers

1.0.2 2021-03-02 10:41 UTC

This package is auto-updated.

Last update: 2021-12-30 12:20:29 UTC


README

Namify helper for Models, Controllers

Latest Version on Packagist Latest Stable Version Latest Unstable Version

Software License Build Status Quality Score StyleCI Total Downloads

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();