Phalcon Developer Tools on Windows

These steps will guide you through the process of installing Phalcon Developer Tools for Windows.

Prerequisites

The Phalcon PHP extension is required to run Phalcon Tools. If you haven’t installed it yet, please see the Installationsection for instructions.

Download

You can download a cross platform package containing the developer tools from the Download section. Also you can clone it from Github.

On the Windows platform, you need to configure the system PATH to include Phalcon tools as well as the PHP executable. If you download the Phalcon tools as a zip archive, extract it on any path of your local drive i.e. c:\phalcon-tools. You will need this path in the steps below. Edit the file “phalcon.bat” by right clicking on the file and selecting “Edit”:

../_images/path-0.png

Change the path to the one you installed the Phalcon tools:

../_images/path-01.png

Save the changes.

Adding PHP and Tools to your system PATH

Because the scripts are written in PHP, you need to install it on your machine. Depending on your PHP installation, the executable can be located in various places. Search for the file php.exe and copy the path it is located in. For instance, if using the latest WAMP stack, PHP is located in: C:\wampbin\php\php5.3.10\php.exe.

From the Windows start menu, right mouse click on the “My Computer” icon and select “Properties”:

../_images/path-1.png

Click the “Advanced” tab and then the button “Environment Variables”:

../_images/path-2.png

At the bottom, look for the section “System variables” and edit the variable “Path”:

../_images/path-3.png

Be very careful on this step! You need to append at the end of the long string the path where your php.exe was located and the path where Phalcon tools are installed. Use the ”;” character to separate the differents paths in the variable:

../_images/path-4.png

Accept the changes made by clicking “OK” and close the dialogs opened. From the start menu click on the option “Run”. If you can’t find this option, press “Windows Key” + “R”.

../_images/path-5.png

Type “cmd” and press enter to open the windows command line utility:

../_images/path-6.png

Type the commands “php -v” and “phalcon” and you will see something like this:

../_images/path-7.png

Congratulations you now have Phalcon tools installed!

转载于:https://my.oschina.net/mickelfeng/blog/142856

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值