ntesic/phalcon-devtools
Composer 安装命令:
composer require ntesic/phalcon-devtools
包简介
This tools provide you useful scripts to generate code helping to develop faster and easy applications that use with Phalcon framework.
README 文档
README
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.2"
}
}
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 --help
Phalcon DevTools (3.0.2)
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
ntesic/phalcon-devtools 适用场景与选型建议
ntesic/phalcon-devtools 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 331 次下载、GitHub Stars 达 0, 最近一次更新时间为 2016 年 12 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「phar」 「phalcon」 「Devtools」 「webtools」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ntesic/phalcon-devtools 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ntesic/phalcon-devtools 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ntesic/phalcon-devtools 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Extractor project for php
Uniondrug Trace Client Component for uniondrug/framework
HiDev plugin for Box PHAR builder
Smart compressed files extractor
multiple small utils
统计信息
- 总下载量: 331
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2016-12-06
