Download the PHP package puko/console without Composer
On this page you can find all versions of the php package puko/console. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor puko
Package console
Short Description Advanced console util that make pukoframework get things done on the fly.
License MIT
Package console
Short Description Advanced console util that make pukoframework get things done on the fly.
License MIT
Please rate this library. Is it a good library?
Informations about the package console
Puko Console
Advanced CLI utility that makes the Puko Framework development experience faster and more efficient.
Installation
Requirements
- PHP 7.2.5+
- Symfony Console 5.4
- Supported Databases: MySQL, PostgreSQL, SQL Server
Usage
Quick Start
Commands
Setup Commands
| Command | Description |
|---|---|
setup:db [schema] |
Connect to database and generate models |
setup:secure |
Generate encryption configuration |
setup:auth <name> |
Generate authentication plugin |
setup:controller <type> <name> |
Generate controller (view or service) |
setup:model <action> <name> <schema> |
Interactive model wizard |
Examples
Routes Commands
| Command | Description |
|---|---|
routes:list |
List all registered routes |
routes:resort |
Sort routes alphabetically |
routes:dir |
Display routes with directories |
routes:view <action> <url> |
Add view route |
routes:service <action> <url> |
Add service (API) route |
routes:crud <schema/table> |
Generate full CRUD service |
routes:console <action> <path> |
Add console route |
routes:socket <action> <path> |
Add WebSocket route |
routes:error <action> |
Set error handler |
routes:lost <action> |
Set 404 handler |
Examples
Generate Commands
| Command | Description |
|---|---|
generate:db |
Create database from models (reverse engineer) |
generate:ui |
Generate DataTables UI components |
Examples
Refresh Commands
| Command | Description |
|---|---|
refresh:db [schema] |
Reload database schema and regenerate models |
Other Commands
| Command | Description |
|---|---|
serve [port] |
Start PHP built-in server (default: 4000) |
language <directory> |
Build localization files |
element:add <name> |
Generate view element |
element:download <name> |
Download element from repository |
cli <path> |
Execute PHP in console mode |
tests |
Run PHPUnit tests |
Examples
Options
| Option | Description |
|---|---|
-h, --help |
Display help for a command |
-q, --quiet |
Do not output any message |
-V, --version |
Display application version |
--ansi |
Force ANSI output |
--no-ansi |
Disable ANSI output |
-n, --no-interaction |
Do not ask interactive questions |
-v, -vv, -vvv |
Increase verbosity |
Project Structure
After using Puko Console, your project will have:
PHPDoc Annotations
Puko Console uses PHPDoc annotations for model introspection:
Supported Annotations
#Table [name]- Table name#Column [name]- Column definition#PrimaryKey- Primary key field#VarChar(size),#Int,#Text, etc. - Data types
Migration Commands
Database migration system supporting MySQL, PostgreSQL, and SQL Server.
| Command | Description |
|---|---|
migrate:make <name> |
Create new migration file |
migrate:run |
Run pending migrations |
migrate:rollback |
Rollback last migration |
migrate:reset |
Rollback ALL migrations |
migrate:status |
Show migration status |
Migration Make Options
| Option | Description |
|---|---|
--create |
Create a new table |
--table |
Specify table name |
Examples
Migration File Structure
Blueprint API
Configuration
The console reads from src/config/init.php:
Upgrading from Old Version
The command syntax has changed from the old format:
| Old Syntax | New Syntax |
|---|---|
php puko setup db main |
php puko setup:db main |
php puko routes list |
php puko routes:list |
php puko generate db |
php puko generate:db |
php puko serve 8080 |
php puko serve 8080 |
php puko version |
php puko --version |
License
MIT License - Copyright (c) 2018 Didit Velliz
All versions of console with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0|>=8.0
The package puko/console contains the following files
Loading the files please wait ...