| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Phalcon PHP is a web framework delivered as a C extension providing high performance and lower resource consumption.
This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.
Install composer in a common location or in your project:
curl -s http://getcomposer.org/installer | phpCreate the composer.json file as follows:
{
"require": {
"phalcon/devtools": "dev-master"
}
}If you are still using Phalcon 1.3.x, create a composer.json with the following instead:
{
"require": {
"phalcon/devtools": "1.3.*@dev"
}
}Run the composer installer:
php composer.phar installInstall composer and box in a common location or in your project:
curl -s http://getcomposer.org/installer | php
bin/composer installBuild phar file phalcon-devtools
bin/box build -v
chmod +xr ./phalcon.phar
# Test it!
php ./phalcon.pharPhalcon 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-devtoolsThis 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/phalconTo get a list of available commands just execute following:
phalcon commands helpThis 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)Please remove manually directories:
and files:
and just run form your project root:
$ phalcon webtools --action=enableShould add 'adapter' parameter in your db config file (if you use not Mysql database). For PostgreSql will be
$config = [
"host" => "localhost",
"dbname" => "my_db_name",
"username" => "my_db_user",
"password" => "my_db_user_password",
"adapter" => "Postgresql"
];Phalcon Developer Tools is open source software licensed under the New BSD License. © Phalcon Framework Team and contributors
| Back | FazBrowse Home | New Git URL |