PHPackages                             webrium/console - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. webrium/console

ActiveLibrary[CLI &amp; Console](/categories/cli)

webrium/console
===============

1.2.1(1y ago)0126[1 issues](https://github.com/webrium/console/issues)PHP

Since Jul 31Pushed 3mo agoCompare

[ Source](https://github.com/webrium/console)[ Packagist](https://packagist.org/packages/webrium/console)[ RSS](/packages/webrium-console/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (17)Used By (0)

Webrium Console
===============

[](#webrium-console)

The Webrium Console Commands include tools for generating files, calling methods, and managing databases. Below is a list of available commands and how to use them.

Generate a Model
----------------

[](#generate-a-model)

The make:model command creates a new model file in the models directory. You can create either a simple model or a database-connected model.

#### Usage

[](#usage)

```
php webrium make:model  [--table=] [--force] [--no-plural]

```

- **ModelName** : The name of the model (e.g., User).
- **--table|-t**: Specify the database table name (e.g., users). If omitted, the model name is converted to snake\_case and pluralized (e.g., User becomes users).
- **--force|-f**: Overwrite the model file if it already exists.
- **--no-plural**: Prevent adding an "s" to the table name (e.g., User stays user instead of users).

#### Example

[](#example)

```
php webrium make:model User --table=users

```

Or instead of that

```
php webrium make:model User -t

```

This creates a User.php model file in the models directory, linked to the users table.

Controller operation
--------------------

[](#controller-operation)

### Generate a Controller

[](#generate-a-controller)

The make:controller command creates a new controller file in the controllers directory.

#### Usage

[](#usage-1)

```
php webrium make:controller  [--force] [--namespace=]

```

ControllerName: The name of the controller (e.g., User). The suffix Controller is automatically added if not included.

- **--force|-f**: Overwrite the controller file if it already exists.
- **--namespace**: Specify a custom namespace (default: App\\Controllers).

#### Example

[](#example-1)

```
php webrium make:controller User

```

This creates a UserController.php file in the controllers directory with the namespace App\\Controllers.

Call a Controller or Model Method
---------------------------------

[](#call-a-controller-or-model-method)

The call command allows you to execute a method on a controller or model, passing optional parameters.

#### Usage

[](#usage-2)

```
php webrium call  [--params=] [--model] [--namespace=]

```

- **Class@Method**: The class and method to call (e.g., UserController@getUsers or User@getDetails).
- **--params|-p**: A JSON array of parameters (e.g., \[1, "active"\]). Defaults to an empty array.
- **--model|-m**: Target a model instead of a controller.
- **--namespace**: Specify a custom namespace (default: App\\Controllers for controllers, App\\Models for models).

#### Example

[](#example-2)

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

```

This calls the getUsers method on App\\Controllers\\UserController with the parameters \[1, "active"\].

Manage Databases
----------------

[](#manage-databases)

The `db` command provides tools to manage databases, including listing databases, viewing tables, creating databases, and deleting databases.

#### Usage

[](#usage-3)

```
php webrium db  [] [--use=] [--force]

```

- action: The action to perform:

    - list: List all databases.
    - tables: List tables in a database.
    - create: Create a new database.
    - drop: Delete a database.
- **DatabaseName**: The name of the database (required for create and drop).
- **--use|-u**: Specify a database for the tables action.
- **--force|-f**: Skip confirmation when dropping a database.

#### Examples

[](#examples)

List all databases:

```
php webrium db list

```

List tables in a specific database:

```
php webrium db tables --use=my_database

```

Create a new database:

```
php webrium db create my_database

```

Delete a database (with confirmation):

```
php webrium db drop my_database

```

Manage Tables
-------------

[](#manage-tables)

The table command allows you to manage database tables, including viewing column details and deleting tables.

#### Usage

[](#usage-4)

```
php webrium table   [--use=] [--force]

```

- **action**: The action to perform:

    - **info** or `columns`: Display column details (name, type, null, key, default, extra).
    - **drop**: Delete the table.
- **TableName**: The name of the table.
- **--use|-u**: Specify a database.
- **--force|-f**: Skip confirmation when dropping a table.

#### Examples

[](#examples-1)

View columns of a table:

```
php webrium table columns users

```

Delete a table (with confirmation):

```
php webrium table drop users

```

Logs
----

[](#logs)

### Display the list of log files

[](#display-the-list-of-log-files)

```
php webrium log list

```

### Show the latest logs

[](#show-the-latest-logs)

```
php webrium log latest

```

### Display logs based on log file name

[](#display-logs-based-on-log-file-name)

```
php webrium log file {log_file_name}

```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance67

Regular maintenance activity

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~50 days

Recently: every ~130 days

Total

14

Last Release

375d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a97dd5a7e3cc63235bc6fd1637d71f884a1fb7812267047e80c77a547604671d?d=identicon)[parsgit](/maintainers/parsgit)

---

Top Contributors

[![benkhalife](https://avatars.githubusercontent.com/u/31080657?v=4)](https://github.com/benkhalife "benkhalife (92 commits)")

### Embed Badge

![Health badge](/badges/webrium-console/health.svg)

```
[![Health](https://phpackages.com/badges/webrium-console/health.svg)](https://phpackages.com/packages/webrium-console)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[matthiasnoback/symfony-console-form

Use Symfony forms for Console command input

368264.8k8](/packages/matthiasnoback-symfony-console-form)[phpcr/phpcr-shell

Shell for PHPCR

721.3M8](/packages/phpcr-phpcr-shell)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1441.3k](/packages/shel-neos-terminal)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
