This repository has been archived by the owner on Apr 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Phalcon | ||
|
||
Phalcon 是使用 C 扩展编写、高性能的 PHP 框架。 | ||
|
||
Windows用户可以在https://github.com/phalcon/cphalcon/releases 下载 `.dll` 文件,加入 `php.ini` 配置中: | ||
```ini | ||
extension=php_phalcon.dll | ||
``` | ||
重启你的WEB服务器后,在 `phpinfo()` 中看到 Phalcon 扩展,代表你安装成功。 | ||
|
||
我们还需要安装[phalcon-devtools](https://github.com/phalcon/phalcon-devtools)(Phalcon开发者工具,可以自动生成代码,或为IDE创建Phalcon语法提示) | ||
```shell | ||
git clone https://github.com/phalcon/phalcon-devtools.git | ||
``` | ||
|
||
然后将目录加入系统环境变量**PATH**,在命令行输入: | ||
```shell | ||
phalcon --help | ||
``` | ||
返回如下信息,说明设置成功: | ||
```shell | ||
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` 文件夹,运行命令: | ||
```shell | ||
php gen-stubs.php | ||
``` | ||
它会在本文件夹中生成相应版本语法目录,在你的IDE中导入 `Configure PHP Include Paths` 即可。 |