PHP code example of webrium / console

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

    

webrium / console example snippets


php webrium make:model <ModelName> [--table=<TableName>] [--force] [--no-plural]

php webrium make:model User --table=users

php webrium make:controller <ControllerName> [--force] [--namespace=<Namespace>]

php webrium make:controller User

php webrium call <Class@Method> [--params=<JSON>] [--model] [--namespace=<Namespace>]

php webrium call UserController@getUsers --params='[1, "active"]'

php webrium db <action> [<DatabaseName>] [--use=<Database>] [--force]

php webrium db list

php webrium db tables --use=my_database

php webrium table <action> <TableName> [--use=<Database>] [--force]

php webrium table columns users 

php webrium log list