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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
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

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


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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package puko/console contains the following files

Loading the files please wait ...