PHP code example of vikkio88 / slime-api

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

    

vikkio88 / slime-api example snippets


return [
    'commandPaths' => [
        'App\Lib\Slime\Console\Commands\\',
        'App\Console\\'
    ]
];
 novice build

php novice migrate && php novice seeder

$ php novice <command_name>

 coverage [percentage]
 echo [parameter1] [parameter2] ...
 

php novice build

php novice build clean
config/build.php

php novice create_model users\\player
Models/Users/Player.php

php novice create_action users\\player_get_one
Actions/Users/PlayerGetOne.php

php novice create_model users\\player_match
Models/Users/PlayerMatch.php