liluoao / phalcon
v1.1.0
2018-02-27 00:00 UTC
Requires
- php: >=7.1
- guzzlehttp/guzzle: ~5.3|~6.0
This package is not auto-updated.
Last update: 2022-02-01 13:12:52 UTC
README
安装本库
composer create-project liluoao/phalcon
安装Phalcon
Phalcon 是一个使用 C 扩展编写的高性能 PHP 框架。
Windows 用户可以从https://github.com/phalcon/cphalcon/releases 下载 .dll
文件,将其添加到 php.ini
配置中:
extension=php_phalcon.dll
重启您的 WEB 服务器后,在 phpinfo()
中看到 Phalcon 扩展,表示您已成功安装。
安装Phalcon-devtool
phalcon-devtools 是 Phalcon 开发者工具,可以自动生成代码,并为 IDE 创建 Phalcon 语法提示。
git clone https://github.com/phalcon/phalcon-devtools.git
然后将目录添加到系统环境变量 PATH 中,在命令行输入:
phalcon --help
返回如下信息,说明设置成功:
Phalcon DevTools (3.2.12)
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)
为 IDE 创建语法提示
进入 ~/phalcon-devtools/ide
文件夹,运行命令:
php gen-stubs.php
它会在本文件夹中生成相应版本的语法目录,在您的 IDE 中导入 Configure PHP Include Paths
即可。