PHP code example of emirustaoglu / artisan

1. Go to this page and download the library: Download emirustaoglu/artisan 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/ */

    

emirustaoglu / artisan example snippets




use emirustaoglu\artisan;

$artisan = new artisan([
    'migration_path' => __DIR__ . '/databases/migrations/',
    'seed_path' => __DIR__ . '/databases/seeds/',
    'view_path' => __DIR__ . '/resources/view/',
    'controller_path' => __DIR__ . '/app/Controllers/',
    'middleware_path' => __DIR__ . '/app/Middlewares/',
    'model_path' => __DIR__ . '/app/Model/',
    'enum_path' => __DIR__.'/app/Enum/',
    'contoller_name_space' => 'App\Controllers',
    'middleware_name_space' => 'App\Middlewares',
    'model_name_space' => 'App\Model',
    'enum_name_space' => 'App\Enum',
    'db_host' => 'localhost',
    'db_name' => '',
    'db_user' => '',
    'db_password' => '',
    'migration_table' => 't_migrations',
    'seed_table' => 't_seeds'
]);

return $artisan->getCommand($argv);

bash
php -r "
bash
php artisan migrate
php artisan seeds
bash
php artisan make:controller UserController
bash
php artisan serve