PHPackages                             sachoo/phalcon-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. [Framework](/categories/framework)
4. /
5. sachoo/phalcon-console

ActiveLibrary[Framework](/categories/framework)

sachoo/phalcon-console
======================

Based on phalcon devtools, this tools provide a console component with powerfull migration system for Mysql and Cassandra

2.0.2(4y ago)1135.4k↓46.2%3[1 PRs](https://github.com/SachaMorard/phalcon-console/pulls)1MITPHPPHP &gt;=5.5

Since Feb 23Pushed 4y ago2 watchersCompare

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

READMEChangelog (5)Dependencies (2)Versions (6)Used By (1)

Phalcon Console
===============

[](#phalcon-console)

This components is based on [Phalcon Devtools](https://github.com/phalcon/phalcon-devtools)and provides a really cool console to migrate your databases based on your models metadatas. Also, you could add your own commands.

Requirements
------------

[](#requirements)

- PHP &gt;= 5.5
- Phalcon &gt;= 3.0.0

Installing via Composer
-----------------------

[](#installing-via-composer)

Install composer in a common location or in your project:

```
curl -s http://getcomposer.org/installer | php
```

Create the composer.json file as follows:

```
{
    "require": {
        "sachoo/phalcon-console": "~1.*"
    }
}
```

Run the composer installer:

```
php composer.phar install
```

If it not exists yet, create a console binary script at the root of your project. If you need an example, you can copy console.example.php from sachoo/phalcon-console component:

```
cp vendor/sachoo/phalcon-console/console.example.php console.php
```

To enable the commands you want, those you've wrote, and those from community, you have to add a new array on your config:

```
'commandsToEnable' => [
    \Phalcon\Commands\Builtin\Info::class,
    \Phalcon\Commands\Builtin\Enumerate::class,
    \Phalcon\Commands\Builtin\Migration::class,
    \Phalcon\Commands\Builtin\ClearCache::class,
    \Commands\MyCommand::class
 ],
```

Also, you have to include your boostrap on line 12 properly

```
require __DIR__ . '/app/bootstrap_cli.php';
```

Usage
-----

[](#usage)

To get a list of available commands just execute following:

```
 ./console.php
```

This command should display something similar to:

```
Available commands:
  info             (alias of: i)
  commands         (alias of: list, enumerate)
  mig              (alias of: migration)
  cc               (alias of: clear-cache)
```

Migration
---------

[](#migration)

Migrations commands generate scripts with datetime versioning. In your configuration file, you must to define a config-&gt;application-&gt;migrationDir value. Then you have to manage your model metadatas with [sachoo/phalcon-model-annotations](https://github.com/sachoo/phalcon-model-annotations)

To know more about the power of Migrations, execute:

```
 ./console mig
```

This command should display something similar to:

```
Help:
  Migration Commands

Usage: Generate a Migration
  mig gen

Usage: Run all available Migrations
  mig run

Usage: Run just one migration up
  mig up

Usage: Run just one migration down
  mig down

Usage: Generate migration file with Diff beetween Models and your Databases
  mig diff

Usage: Show migration status
  mig status
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~447 days

Total

5

Last Release

1584d ago

Major Versions

1.0.1 → 2.0.02020-07-03

### Community

Maintainers

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

---

Top Contributors

[![takman1](https://avatars.githubusercontent.com/u/6367675?v=4)](https://github.com/takman1 "takman1 (2 commits)")

---

Tags

cliconsoleframeworkmigrationcommandphalcon

### Embed Badge

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

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

###  Alternatives

[phalcon/migrations

Run and Generate DB Migrations with Phalcon Framework

29977.8k6](/packages/phalcon-migrations)[fly-apps/fly-laravel

A cli tool for launching and deploying Laravel apps on Fly.io

431.3k](/packages/fly-apps-fly-laravel)

PHPackages © 2026

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