I recently tried to develop WeChat public accounts. After building a simple backend with Apache Mysql, I chose to use PHP for development. Therefore, we are faced with the problem of building a PHP development environment locally. Although you can use brew to download various tools and configure them manually, considering the complexity of building and maintaining it, we finally chose to use integrated tools to complete it.
The local server is built using XAMPP. This tool integrates Apache Mysql PHP Perl and phpmyadmin, a tool that can perform visual database management. It is really complete and considerate, and the installation is also very simple.
Next all the way until the installation is complete, and then start the service.
After the installation is completed, you can see the prompt message. At this time, the database and so on have been installed, the root user has been created, and the password is still empty - this can be changed in the configuration file.
The PHP editor uses zend studio, which is a well-known IDE for PHP development.