PHP code example of bytic / namefy

1. Go to this page and download the library: Download bytic/namefy library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bytic / namefy example snippets



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