Skip to content
This repository has been archived by the owner on Apr 9, 2018. It is now read-only.

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
liluoao authored Feb 28, 2018
1 parent 41ed2b4 commit 982e0bb
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions README.md
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` 即可。

0 comments on commit 982e0bb

Please sign in to comment.