phalcon-devtools 0,1,4,0,0,0 Packagist

Phalcon Developer Tools

Phalcon Devtools

Latest Version Software License Total Downloads Daily Downloads

Phalcon WebTools

What's Phalcon?

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

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

  • PHP >= 5.5
  • Phalcon >= 3.0.0

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": {
        "phalcon/devtools": "~3.0.0"
    }
}

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

{
    "require": {
        "phalcon/devtools": "^2.0"
    }
}

Run the composer installer:

php composer.phar install

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

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.php to a directory in your PATH, so you can issue phalcon commands in each directory where a phalcon project resides.

ln -s ~/phalcon-devtools/phalcon.php /usr/bin/phalcon
chmod ugo+x /usr/bin/phalcon

Usage

To get a list of available commands just execute following:

phalcon commands help

This command should display something similar to:

$ phalcon list ?

Phalcon DevTools (3.0.0)

Help:
  Lists the commands available in Phalcon devtools

Available commands:
  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)

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'
];

License

Phalcon Developer Tools is open source software licensed under the New BSD License.
© Phalcon Framework Team and contributors

Related Repositories

awesome

awesome

:sunglasses: Curated list of awesome lists ...

practical-programming-books

practical-programming-books

这里收录比较实用的计算机相关技术书籍,可以在短期之内入门的简单实用教程、一些技术网站以及一些写的比较好的博文,欢迎Fork,你也可以通过Pull Request ...

mvc

mvc

Phalcon MVC Examples ...

docs

docs

Phalcon Framework documentation ...

vagrant

vagrant

Vagrant Phalcon ...


Top Contributors

sergeyklay phalcon xboston dschissler wenchen lukosius niden zinovyev richmulhern rianorie theDisco dreamsxin sjinks 7thcubic kenjikobe gsouf andresgutierrez SidRoberts eugene-matvejev dyster niterain free6k mattvb91 vguardiola liesislukas micate sirian aaronsingline basilfx alexbusu

Dependencies

package version
php >=5.5
ext-phalcon ~3.1
psy/psysh @stable
dev kherge/box ^2.7
codeception/codeception ^2.3
phpdocumentor/reflection-docblock ^2.0
phpunit/phpunit ^4.8
codeception/specify ^0.4
codeception/verify ^0.3

Releases

-   v3.0.1 zip tar
-   v3.0.0 zip tar
-   v2.0.13 zip tar
-   v2.0.12 zip tar
-   v2.0.11 zip tar
-   v2.0.10 zip tar
-   v2.0.9 zip tar
-   v2.0.8 zip tar
-   v2.0.7 zip tar
-   v2.0.6 zip tar
-   v2.0.2 zip tar
-   v2.0.1 zip tar