Table of Contents
Phalcon entry guide
Home Backend Development PHP Tutorial Phalcon installation on Windows 'Phalcon pit guide series 1'

Phalcon installation on Windows 'Phalcon pit guide series 1'

Jul 07, 2021 pm 04:04 PM
phalcon windows

Phalcon entry guide

  • Preface
  • 1. Installation
  • 2. Phalcon development tool installation
  • 3. Environment variable configuration
  • 4. Use of Phalcon development tools
    • Generate project framework
    • Generate controller/model
    • Praise phalcon
  • 5. Summary

I remember where I saw this framework before However, companies that I have recently joined are using this framework, so let’s take a look at Kaka’s entry guide!

First of all, no matter how efficient the framework is, the installation process is really a pitfall at every step!

Officially, it is the fastest among the PHP frameworks, 15 times faster than ThinkPHP, which is pretty good!

But I still want to complain about this framework. When installing the toolkit, I installed phalcon3.4.3 for the first time, and then it was prompted that it needed to be upgraded to version 4.0.0.

This is nothing, then upgrade! After downloading 4.0.0, it said that it needs to be upgraded to 4.0.3.

If that’s okay, continue downloading. This time I downloaded 4.0.6 directly. Listening to the official version, I guess the installation will not be successful overnight.

1. Installation

Installation environment:

  • PHP7.2
  • phalcon_x64_vc15_php7.2_4.0.6 5190_nts.zip
  • phpstudy

Download address: https://github.com /phalcon/cphalcon/releases/tag/v4.0.6

Phalcon installation on Windows Phalcon pit guide series 1

Put the downloaded dll file into the PHP extension directory

Phalcon installation on Windows Phalcon pit guide series 1

Then add the corresponding dll information in the php.ini file.

Phalcon installation on Windows Phalcon pit guide series 1

Restart the server and output the version information in the PHP file

Phalcon installation on Windows Phalcon pit guide series 1

##

psr download address: https://pecl.php.net/package/psr/0.7.0/windows

If you find that the installation fails, Thinking about installing it! I was so manipulated by this framework that I lost my temper. Mine is that the ddl file cannot be found.

If you also downloaded it, you also need to put the extension file in the directory corresponding to the PHP version.

2. Phalcon development tool installation

Use git to clone, the address is

git clone https://github.com/phalcon/phalcon-devtools.git
Copy after login

Then put the file on the desktop, open the directory and find the location shown below

Phalcon installation on Windows Phalcon pit guide series 1

Right-click the mouse to modify the path address

Phalcon installation on Windows Phalcon pit guide series 1

Then execute phalcon in the command line and you will see the information in the picture below. You need to pay attention here. The corresponding information will be prompted. Just follow the operation.

Phalcon installation on Windows Phalcon pit guide series 1

The final result is like this. To be honest, setting up this environment is a waste of effort. No wonder few people in China use it.

Phalcon installation on Windows Phalcon pit guide series 1

3. Environment variable configuration

This section should not appear here, but I still write it for the novices. I hope it will be This article can directly solve all your installation problems.

Configuring environment variables is an operation that some people have not configured before, because most of them use PhpStudy locally as the development environment.

Right-click My Computer

Phalcon installation on Windows Phalcon pit guide series 1

##Click Advanced System Configuration

Phalcon installation on Windows Phalcon pit guide series 1

Click on environment variables

Phalcon installation on Windows Phalcon pit guide series 1

Then click OK one by one in the order in which they are opened.

4. Use of Phalcon development tools

It should be noted here that phalcon-devtools needs to be configured in the path installation directory.

If you can’t remember the command, you can directly execute `phalcon commands

Phalcon installation on Windows Phalcon pit guide series 1

Generate project framework

Here Kaka uses the Phpstudy integrated environment and executes the create project framework command directly in the www directory.

Execute commandphalcon create-project phalcon

Phalcon installation on Windows Phalcon pit guide series 1

## Return to the www directory to see the generated project.

Phalcon installation on Windows Phalcon pit guide series 1

Then configure a virtual domain name in Phpstudy and configure it under public.

Phalcon installation on Windows Phalcon pit guide series 1

Let’s look at the configuration of the database information first!

Phalcon installation on Windows Phalcon pit guide series 1

Generate controller/model

The commands are

phalcon create-controller --name User

phalcon model test

The corresponding file will be generated.

Phalcon installation on Windows Phalcon pit guide series 1

Praise phalcon

In the installation At that time, I said ten thousand words of "I love you" to phalcon in my heart (Cao Ni Ma). But while here, I still give a thumbs up for the functions not covered by the phalcon command.

Phalcon installation on Windows Phalcon pit guide series 1

The picture above shows that after modification, the model file still exists after execution. This is more thoughtful than fastadmin.

5. Summary

It’s not easy to get here first in this issue! The frameworks are all the same, so don’t put too much energy into it, just have a general understanding.

The implementation principles are the same.

This article needs to pay attention to the following points

  • Pay attention to your own PHP environment
  • Pay attention to the version of phalcon downloaded Is it compatible with your own PHP environment?
  • Pay attention to the configuration of environment variables

The next issue will write about the practical application of phalcon

Persistence in learning, persistence in writing, and persistence in sharing are the beliefs that Kaka has always adhered to since its beginning. I hope that Kaka’s articles on the huge Internet can bring you a little bit of help. I’m Kaka, see you next time.

The above is the detailed content of Phalcon installation on Windows 'Phalcon pit guide series 1'. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1666
14
PHP Tutorial
1273
29
C# Tutorial
1253
24
How to copy and paste mysql How to copy and paste mysql Apr 08, 2025 pm 07:18 PM

Copy and paste in MySQL includes the following steps: select the data, copy with Ctrl C (Windows) or Cmd C (Mac); right-click at the target location, select Paste or use Ctrl V (Windows) or Cmd V (Mac); the copied data is inserted into the target location, or replace existing data (depending on whether the data already exists at the target location).

Can vs code run in Windows 8 Can vs code run in Windows 8 Apr 15, 2025 pm 07:24 PM

VS Code can run on Windows 8, but the experience may not be great. First make sure the system has been updated to the latest patch, then download the VS Code installation package that matches the system architecture and install it as prompted. After installation, be aware that some extensions may be incompatible with Windows 8 and need to look for alternative extensions or use newer Windows systems in a virtual machine. Install the necessary extensions to check whether they work properly. Although VS Code is feasible on Windows 8, it is recommended to upgrade to a newer Windows system for a better development experience and security.

Which operating systems are supported by Tigervnc in Debian Which operating systems are supported by Tigervnc in Debian Apr 12, 2025 pm 10:15 PM

The open source VNC tool Tigervnc is compatible with a wide range of operating systems, including Windows, Linux, and macOS. This article will introduce in detail the application of Tigervnc on the Debian system. Tigervnc is integrated in the application system of Debian system: In the Debian system, Tigervnc is integrated into the system as a VNC server component. Users can start VNC services through command line tools such as vncserver and customize display settings such as resolution and color depth. Cross-platform connection: Tigervnc client supports Windows, Linux, and macOS, which means users can run this from any

How to run sublime after writing the code How to run sublime after writing the code Apr 16, 2025 am 08:51 AM

There are six ways to run code in Sublime: through hotkeys, menus, build systems, command lines, set default build systems, and custom build commands, and run individual files/projects by right-clicking on projects/files. The build system availability depends on the installation of Sublime Text.

laravel installation code laravel installation code Apr 18, 2025 pm 12:30 PM

To install Laravel, follow these steps in sequence: Install Composer (for macOS/Linux and Windows) Install Laravel Installer Create a new project Start Service Access Application (URL: http://127.0.0.1:8000) Set up the database connection (if required)

Recommended system maintenance and optimization tools in Mac system Recommended system maintenance and optimization tools in Mac system Apr 12, 2025 pm 04:45 PM

Mac system maintenance includes: disk management (use OmniDiskSweeper to clean disk space, use disk tools to check disk errors) memory management (use Activity Monitor to monitor memory usage, end over-occupying processes) startup item management (use Linc or LaunchControl to manage startup items, disable unnecessary startup items) system cache cleaning (use CleanMyMac X or manually clean system cache) software update (timely update system and applications) regular backup (use Time Machine to backup data regularly) good usage habits (not installing applications excessively, cleaning files regularly, and monitoring system logs)

How to solve complex BelongsToThrough relationship problem in Laravel? Use Composer! How to solve complex BelongsToThrough relationship problem in Laravel? Use Composer! Apr 17, 2025 pm 09:54 PM

In Laravel development, dealing with complex model relationships has always been a challenge, especially when it comes to multi-level BelongsToThrough relationships. Recently, I encountered this problem in a project dealing with a multi-level model relationship, where traditional HasManyThrough relationships fail to meet the needs, resulting in data queries becoming complex and inefficient. After some exploration, I found the library staudenmeir/belongs-to-through, which easily installed and solved my troubles through Composer.

git software installation git software installation Apr 17, 2025 am 11:57 AM

Installing Git software includes the following steps: Download the installation package and run the installation package to verify the installation configuration Git installation Git Bash (Windows only)

See all articles