PHPackages                             federicogon/devtools - 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. federicogon/devtools

ActiveLibrary[Framework](/categories/framework)

federicogon/devtools
====================

This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.

v5.x-dev(3y ago)01BSD-3-ClauseJavaScriptPHP &gt;=7.3

Since Feb 7Pushed 3y agoCompare

[ Source](https://github.com/federicogon/phalcon-devtools)[ Packagist](https://packagist.org/packages/federicogon/devtools)[ Docs](https://phalcon.io)[ RSS](/packages/federicogon-devtools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (17)Versions (2)Used By (0)

Phalcon Devtools
================

[](#phalcon-devtools)

[![codecov](https://camo.githubusercontent.com/eac9e0f91a8327b81bc5d6901893cf1a4ffa867e40dcf42b4dfa27bc10198b97/68747470733a2f2f636f6465636f762e696f2f67682f7068616c636f6e2f7068616c636f6e2d646576746f6f6c732f6272616e63682f342e302e782f67726170682f62616467652e737667)](https://codecov.io/gh/phalcon/phalcon-devtools)[![Latest Version](https://camo.githubusercontent.com/d1a31fa41aad5989366cd2d289061acb4dd3ce64fc9712c00d19fc10e88a1b58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068616c636f6e2f646576746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://github.com/phalcon/phalcon-devtools)[![Software License](https://camo.githubusercontent.com/cb25e110ebc973650d5506bcb5fc974551fa6dff93d0edcc328acbe538789558/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d2d332d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/phalcon/phalcon-devtools/blob/master/LICENSE.txt)[![Total Downloads](https://camo.githubusercontent.com/249f56792a7346d7428cff7ecd7e429224056a27dc0d8b8ec0f24ca850225daf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068616c636f6e2f646576746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phalcon/devtools)[![Daily Downloads](https://camo.githubusercontent.com/69a38f05cf688343fc2ed3063a636f91e4982dcc9db4753e80a162ff47eea7b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f7068616c636f6e2f646576746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phalcon/devtools)[![Build Status](https://camo.githubusercontent.com/e524a981640a691007f113a8711111e22e0412c10f97baac4d370f74be6e2720/68747470733a2f2f6170692e7472617669732d63692e6f72672f7068616c636f6e2f7068616c636f6e2d646576746f6f6c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/phalcon/phalcon-devtools)

[![Phalcon WebTools](https://camo.githubusercontent.com/e70046f7f6940bc6f96ab0fc51293e506fe97762d6bb30e69956cbf6240a0488/687474703a2f2f692e696d6775722e636f6d2f423356327553662e706e67)](https://camo.githubusercontent.com/e70046f7f6940bc6f96ab0fc51293e506fe97762d6bb30e69956cbf6240a0488/687474703a2f2f692e696d6775722e636f6d2f423356327553662e706e67)

What's Phalcon?
---------------

[](#whats-phalcon)

Phalcon PHP is a web framework delivered as a C extension providing high performance and lower resource consumption.

What are Devtools?
------------------

[](#what-are-devtools)

This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.

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

[](#requirements)

- PHP &gt;= 7.2
- Phalcon &gt;= 4.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-dev": {
        "phalcon/devtools": "~4.1"
    }
}
```

If you are still using Phalcon 3.4.x, create a `composer.json` with the following instead:

```
{
    "require-dev": {
        "phalcon/devtools": "^3.4"
    }
}
```

Run the composer installer:

```
php composer.phar install
```

Build `.phar`
-------------

[](#build-phar)

Install composer and box in a common location or in your project:

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

Build phar file `phalcon-devtools`

```
bin/box build -v
chmod +xr ./phalcon.phar
# Test it!
php ./phalcon.phar
```

Installation via Git
--------------------

[](#installation-via-git)

Phalcon Devtools can be installed by using Git.

Just clone the repo and checkout the current branch:

```
cd ~
git clone https://github.com/phalcon/phalcon-devtools.git
cd phalcon-devtools
```

This method requires a little bit more of setup. Probably the best way would be to symlink the `phalcon` file to a directory in your `PATH`, so you can issue phalcon commands in each directory where a phalcon project resides.

```
cd phalcon-devtools
ln -s $(pwd)/phalcon /usr/bin/phalcon
chmod ugo+x /usr/bin/phalcon
```

If you get a `"phalcon: command not found"` message while creating the symlink, make an alias.

```
alias phalcon=/home/[USERNAME]/phalcon-devtools/phalcon
```

Usage
-----

[](#usage)

To get a list of available commands just execute following:

```
phalcon commands help
```

This command should display something similar to:

```
$ phalcon --help

Phalcon DevTools (4.1.0)

Help:
  Lists the commands available in Phalcon DevTools

Available commands:
  info             (alias of: i)
  commands         (alias of: list, enumerate)
  controller       (alias of: create-controller)
  module           (alias of: create-module)
  model            (alias of: create-model)
  all-models       (alias of: create-all-models)
  project          (alias of: create-project)
  scaffold         (alias of: create-scaffold)
  migration        (alias of: create-migration)
  webtools         (alias of: create-webtools)
  serve            (alias of: server)
  console          (alias of: shell, psysh)
```

Database adapter
----------------

[](#database-adapter)

Should add `adapter` parameter in your `db` config file (if you use not MySQL database).

For PostgreSQL it will be something like:

```
$config = [
  'host'     => 'localhost',
  'dbname'   => 'my_db_name',
  'username' => 'my_db_user',
  'password' => 'my_db_user_password',
  'adapter'  => 'Postgresql'
];
```

Configuration file
------------------

[](#configuration-file)

By creating **config.json** or any other configuration file called **config** in root project you can set options for all possible commands, for example:

```
{
  "migration" : {
    "migrations": "App/Migrations",
    "config": "App/Config/db.ini"
  },
  "controller" : {
    "namespace": "Phalcon\\Test",
    "directory": "App/Controllers",
    "base-class": "App\\MyAbstractController"
  }
}
```

And then you can use `phalcon migration run` or `phalcon controller SomeClass` and those commands will be executed with options from file. Arguments provided by developer from command line will overwrite existing one in a file.

License
-------

[](#license)

Phalcon Developer Tools is open source software licensed under the [New BSD License](https://github.com/phalcon/phalcon-devtools/blob/master/LICENSE.txt).
© Phalcon Framework Team and contributors

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

1192d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11c77999126e6bae3bd5e3206c4c4c216505f5e942189aee7f0e91b2391448fd?d=identicon)[federicogon](/maintainers/federicogon)

---

Top Contributors

[![sergeyklay](https://avatars.githubusercontent.com/u/1256298?v=4)](https://github.com/sergeyklay "sergeyklay (929 commits)")[![Jeckerson](https://avatars.githubusercontent.com/u/3289702?v=4)](https://github.com/Jeckerson "Jeckerson (487 commits)")[![jenovateurs](https://avatars.githubusercontent.com/u/3491729?v=4)](https://github.com/jenovateurs "jenovateurs (215 commits)")[![sergeysviridenko](https://avatars.githubusercontent.com/u/26042973?v=4)](https://github.com/sergeysviridenko "sergeysviridenko (79 commits)")[![dschissler](https://avatars.githubusercontent.com/u/3968727?v=4)](https://github.com/dschissler "dschissler (41 commits)")[![xboston](https://avatars.githubusercontent.com/u/201306?v=4)](https://github.com/xboston "xboston (40 commits)")[![wenchen](https://avatars.githubusercontent.com/u/959457?v=4)](https://github.com/wenchen "wenchen (23 commits)")[![niden](https://avatars.githubusercontent.com/u/1073784?v=4)](https://github.com/niden "niden (22 commits)")[![zinovyev](https://avatars.githubusercontent.com/u/1627048?v=4)](https://github.com/zinovyev "zinovyev (15 commits)")[![BeMySlaveDarlin](https://avatars.githubusercontent.com/u/10584911?v=4)](https://github.com/BeMySlaveDarlin "BeMySlaveDarlin (15 commits)")[![richmulhern](https://avatars.githubusercontent.com/u/1664673?v=4)](https://github.com/richmulhern "richmulhern (14 commits)")[![rianorie](https://avatars.githubusercontent.com/u/2292861?v=4)](https://github.com/rianorie "rianorie (13 commits)")[![theDisco](https://avatars.githubusercontent.com/u/199368?v=4)](https://github.com/theDisco "theDisco (12 commits)")[![dreamsxin](https://avatars.githubusercontent.com/u/314295?v=4)](https://github.com/dreamsxin "dreamsxin (12 commits)")[![KoriSeng](https://avatars.githubusercontent.com/u/10483025?v=4)](https://github.com/KoriSeng "KoriSeng (11 commits)")[![sjinks](https://avatars.githubusercontent.com/u/7810770?v=4)](https://github.com/sjinks "sjinks (11 commits)")[![pgalocha](https://avatars.githubusercontent.com/u/16243521?v=4)](https://github.com/pgalocha "pgalocha (11 commits)")[![kenjikobe](https://avatars.githubusercontent.com/u/2137523?v=4)](https://github.com/kenjikobe "kenjikobe (10 commits)")[![ninjapanzer](https://avatars.githubusercontent.com/u/159591?v=4)](https://github.com/ninjapanzer "ninjapanzer (9 commits)")[![dacgray](https://avatars.githubusercontent.com/u/12794616?v=4)](https://github.com/dacgray "dacgray (9 commits)")

---

Tags

frameworkpharDevtoolsphalconwebtools

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/federicogon-devtools/health.svg)

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

###  Alternatives

[phalcon/devtools

This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.

1.3k2.0M54](/packages/phalcon-devtools)[phalcon/migrations

Run and Generate DB Migrations with Phalcon Framework

29977.8k6](/packages/phalcon-migrations)[pestphp/pest-plugin-drift

The Pest Drift Plugin

734.0M74](/packages/pestphp-pest-plugin-drift)[zemit-cms/core

Build high-performance PHP applications faster with Phalcon Kit — a modular developer toolkit that extends the Phalcon framework.

138.2k1](/packages/zemit-cms-core)

PHPackages © 2026

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