Saturday, August 16, 2014

Phalcon (PHP Framework) Installation

Phalcon Core Installation (For Windows Developer)

  1. http://phalconphp.com/en/download/windows
    Download "Phalcon x.x.x - Windows x86 for PHP 5.4.0 (VC9)"
  2. Find out php.ini, add this line to the file :
    extension=php_phalcon.dll
  3. Restart Apache http server

Phalcon Developer Tool Installation

  1. https://github.com/phalcon/phalcon-devtools
    Download the Developer Tool as a  ZIP file
  2. Extract the ZIP files to C:\phalcon-tools\
  3. Edit phalcon.bat
    a. set PTOOLSPATH=C:\phalcon-tools
    b. php %PTOOLSPATH%\phalcon.php %*
  4. Adding PHP  to your system PATH
    e.g. ;C:\[xampp_root]\php
  5. Adding Tools to your system PATH
    e.g. ;C:\phalcon-tools
  6. Test the PHP system Path setting
    Open command prompt i.e. "Windows Key" + "r" , then input CMD
    Input: "php -v" in the black screen
    Output :
    PHP 5.x.x (cli) (built: Sep 12 2012 23:48:31)
    Copyright (c) 1997-2012 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
  7. Test the Phalcon system Path setting
    Open command prompt i.e. "Windows Key" + "r" , then input CMD
    Input: "phalcon" in the black screen
    Output :
    Phalcon DevTools (1.3.2 ALPHA 1)
    Available commands:
      commands (alias of: list, enumerate)
      controller (alias of: create-controller)
      model (alias of: create-model)
      all-models (alias of: create-all-models)
      project (alias of: create-project)
      scaffold
      migration
      webtools