# 自做Windows上界面美观的PHP集成环境软件

**URL:** <https://www.shiqidu.com/t/topic/433>\
**Category:** 开发调优\
**Tags:** PHP\
**Created:** [2018 年5 月 31 日 10:06 UTC](https://www.shiqidu.com/t/topic/433 "2018-05-31T10:06:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

作者： ![salamander](https://www.shiqidu.com/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@salamander](https://www.shiqidu.com/u/salamander)\
发布日期： [2018 年5 月 31 日 10:06 UTC](https://www.shiqidu.com/t/topic/433/1 "2018-05-31T10:06:47Z")

</div>

[Github](https://github.com/salamander-mh/SalamanderWnmp)

# WNMP Based On WPF(WPF制作的wnmp环境)

[![Build Status](https://discourse.shiqidu.com/uploads/default/original/1X/480508dbec2a8e6101154fbd55db52079c9e9757.svg)](https://travis-ci.org/slimphp/Slim)  
[![Coverage Status](https://discourse.shiqidu.com/uploads/default/original/1X/bc18ac1bfe5c0dd0bb1b9ea7c6971111248cf0b8.svg)](https://coveralls.io/r/slimphp/Slim)  
[![License](https://discourse.shiqidu.com/uploads/default/original/1X/7cf0c0799a53e75240eb15b83f0226354bc1bcc8.svg)](https://packagist.org/packages/slim/slim)

## Download(集成包下载)

- [下载地址(Nginx)](http://ongd1spyv.bkt.clouddn.com/SalamanderWnmp.7z)
- [下载地址(OpenResty)](http://ongd1spyv.bkt.clouddn.com/SalamanderWnmp-OpenResty.7z)

## Main Window(主界面)

 ![SalamanderWnmp](https://discourse.shiqidu.com/uploads/default/original/1X/2fd781f0cbe9a7b594bfec6553bdaff45d4a215a.png)

 ![SalamanderWnmp](https://discourse.shiqidu.com/uploads/default/original/1X/23f5458717b349dd38751b0aca7e1ac8a5f8ae28.png)

## Other Functions(其他功能)

#### Regulaer Settings(常规设置)

 ![常规设置](https://discourse.shiqidu.com/uploads/default/original/1X/c367b9b9f12fee351d901866d316561901bfe259.png)

#### Theme Color Panel(调色面板)

 ![调色面板](https://discourse.shiqidu.com/uploads/default/original/1X/8e6124112e24d98f702429d4e6d737a7872f07de.png)

#### Coding Panel(编程面板)

 ![编程面板](https://discourse.shiqidu.com/uploads/default/original/1X/0ea4fd9c7968a1a5a15cc2f0bc07dd8c16b473af.png)

#### Questions Panel(常见问题面板)

 ![常见问题面板](https://discourse.shiqidu.com/uploads/default/original/1X/34f037e82f8a4b543e0dba2f7389b94745b0c916.png)

## Usage(使用)

下载集成包后，运行SalamanderWnmp.exe（首次运行会自动配置），开启nginx和php，然后在浏览器中输入[http://localhost/](http://localhost/) 即可看到Hello Salamander！字样，说明配置成功。（使用数据库功能，则打开mysql）

## Notice(注意)

- php 版本为7.1.12 64位版本，需要MSVC14 (Visual C++ 2015)运行库支持，下载：[https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc\_redist.x64.exe](https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe)
- MySQL的默认账户为root，密码为空

## Switch PHP Version(切换PHP版本)

1. 从php官网下载某个版本的PHP，放入你的wnmp目录中（这里假设下载了PHP5.6，可以命名为php5.6）
2. 修改php.ini（这个文件可以从php.ini-development或php.ini-production重命名过来）中extension\_dir选项，改为wnmp中php5.6的ext目录的绝对路径（举例：D:/SalamanderWnmp/php5.6/ext），另外顺便把一些扩展也加载进来（去掉前面分号即可）

```auto
extension=php_bz2.dll
extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_ftp.dll
extension=php_gd2.dll
extension=php_gettext.dll

```

1. wnmp软件修改php目录配置

 ![修改php目录](https://discourse.shiqidu.com/uploads/default/original/1X/5f1e77aee001e52c3b7e32a74aff56521f359c5f.png)

1. 重启PHP

## Third Party Libraries(第三方库)

- [AvalonEdit](https://github.com/icsharpcode/AvalonEdit)
- [StackExchange.Redis](https://github.com/StackExchange/StackExchange.Redis)

## Contact Me(联系我)

- [Blog](http://51nazi.com)
- [segmentfault](https://segmentfault.com/u/salamander)

---

<div class="post-metadata">

作者： ![Leon](https://www.shiqidu.com/user_avatar/www.shiqidu.com/leon/32/5_2.png) [@Leon](https://www.shiqidu.com/u/Leon)\
发布日期： [2018 年5 月 31 日 14:39 UTC](https://www.shiqidu.com/t/topic/433/2 "2018-05-31T14:39:04Z")

</div>

真·大神
