手把手教你搭建PHP开发“黄金自由新搭档”

作者: 何朱必 分类: 开发笔记 发布时间: 2017-03-30 15:43

引言:随着PHP广泛应用白热化,大家使用的开发工具从重量级的ZendStudio到轻量级的Notepad++可以说是五花八门、应有尽有,这给初学者带来不少困惑,工具太多了就无从下手选择适合自己需要的东东。笔者亲自测试和比较,选择适合大多数开发人员追求既“自由、快捷、简便”又满足功能强大的实际需要,从自定义PHP运行环境配置文件着手搭建PHP开发平台,并给出详细的操作步骤。手把手教你用Composer依赖包+优雅艺术Laravel框架+IDE集成开发工具PhpStorm+phpRE自定义运行环境搭建“黄金自由新搭档”PHP开发平台,让天下没有难配的运行开发环境,希望能给初学者带来快乐和帮助。

phpRE 究竟是什么东东?

用专业术语回答就是:phpRE 是 Win32 下绿色安装的 Apache + PHP + MySQL + Composer + Laravel 运行环境组件压缩包。最适合与 PhpStorm 搭配集成强劲 IDE 开发平台,最适用于Laravel 框架和 WordPress 等开源程序 Web开发。开发所需的官方最新版本组件都已为你封装好了,只需一键安装即可轻松搞定 PHP 运行开发环境,并默认同步官方最新版组件及时更新发布(可以灵活更换自定义版本),免费、开源与分享。”

目的和意义:在Win7/10下自定义安装 php-7.2.2 apache2.4.29 mysql-5.7.22 phpMyAdmin-4.8.0.1 wordpress-4.9.5 Laravel-5.6 PhpStorm-2018.1.2 运行环境,轻松实现“运行环境自定义配置、开发工具集成强大功能、新老版本自由搭配应用”,严格区别于传统相对被动使用现成的“套餐式”PHP运行开发环境组件lwamp集成软件

搭建操作步骤:

下载官网最新或适合的软件资料,轻松安装、整合、搭建自定义PHP运行环境与开发平台

(1)软件下载(建议64位操作系统下载安装x64版本)
安装完整版(最新版套餐):网盘下载phpRE(Ver1.3.8)提取码:zije
VC14(vc_redist.x86.exe)

http://www.microsoft.com/en-us/download/details.aspx?id=48145

httpd-2.4.33-win32-VC14.zip

http://www.apachelounge.com/download/

php-7.2.5-Win32-VC14-x86.zip(非商业加密源码开发线程安全版:VC14 x86 Thread Safe)

http://windows.php.net/download#php-7.0

mysql-5.7.22-win32.zip

http://dev.mysql.com/downloads/mysql

phpMyAdmin-4.8.0.1-all-languages.zip

https://www.phpmyadmin.net/

wordpress-4.9.5-zh_CN.zip

https://cn.wordpress.org/

Laravel-5.6

The PHP Framework For Web Artisan

配置文件包下载
http://www.hezhubi.com/wp-content/uploads/2016/04/Settings.jar

PhpStorm-2018.1.2.exe

http://www.jetbrains.com/phpstorm/download/#section=windows/
中文语言包下载
http://www.hezhubi.com/wp-content/uploads/2016/05/resources_cn.jar
主题压缩包下载
http://www.hezhubi.com/wp-content/uploads/2016/05/settings.jar

(2)安装和运行 Apache服务器、MySQL服务器,成功启动PHP运行环境:
①运行install.exe安装开发目录和安装MSVC14 (Visual C++ 2015)编译程序vc_redist.x86.exe
②在开发目录D:\phpRE相应子目录中解压安装Apache、Php、Mysql、www\PhpMyadmin(注意重命名这四个zip文件解压后的子目录)、www\Wordpress(解压后子目录可更名为rk)
③在dos命令窗口运行D:\phpRE\install.bat批处理文件安装Web服务器、数据库服务器及标准配置文件(操作DOS命令:在开始菜单按钮旁“搜索框”中键入cmd回车,键入d:回车,键入cd\phpre回车,键入install.bat回车;非家庭版win7/win10必须以管理员身份执行批处理文件,否则windows系统拒绝安装Apache服务。操作方法:右键点开始菜单按钮→windows PowerShell(管理员)→在dos命令行键入d:回车→键入cd ../phpre回车→键入 ./install.bat回车 )
可用热键Ctrl+Alt+Delete重启或停止ApacheRK、MysqlRK服务进行运行环境调试
(3)安装PhpStorm 后第一次启动需进行激活/汉化/主题安装或导入配置文件来自定义开发环境:
① 激活时选择License server 填入JetBrains 授权服务器网址(License Server RL) https://jetlicense.nss.im/ 点击Active即可通过激活服务器激活;或者先打开 http://idea.lanyus.com/ 网页“获取注册码”,再运行软件粘贴已获取的注册码进行激活,在注册码官网下获得最新版IntelliJ IDEA 注册码2018年10月14日失效
② 汉化补丁能实现中文界面操作,直接将resources_zh.jar 复制到安装目录下lib目录中即可
③ 可导入PhpStorm配置文件包settings.jar,重启完成PhpStorm编辑器的字体着色配置;PhpStorm默认的字体和背景色都是挺伤眼睛的,可以下载使用“金典黑”配色方案,也可以手动更换其他更好的主题:
可以从http://www.riaway.com/index.php下载各类主题的jar文件,从主菜单打开你的编辑器选择 File->Import Setting.导入你下载的jar文件(必须把下载压缩包重命名为settings.jar),等待phpstorm重启之后进行配置:打开File->Settings->Editor->Colors and fonts 然后选择你喜欢的着色风格主题即可
(4)如何使用:
成功安装后运行PHP进行Web开发
① 启动 Apache 网络服务器 : 热键Ctrl+Alt+Delete –> 系统服务 –> ApacheRK –> 运行(下次开机自动)
② 启动 MySQL 数据库服务器 :热键Ctrl+Alt+Delete –> 系统服务 –> MySQLRK –> 运行(下次开机自动)
③ 输入 http://www.phpre.com 开启Web开发平台PHP运行环境
④ 您的网站根目录文件或本地站点程序存储在 D:\phpRE\www\
⑤ 在PhpStorm运行时选择开发目录D:\phpRE\www\搭建PHP“黄金自由新搭档”,轻松实现“运行环境自定义配置、开发工具集成强大功能、新老版本自由搭配应用”,严格区别于相对被动使用传统“套餐式”PHP运行开发环境组件
⑥ 输入 http://www.test.com 启动您的test项目入口文件index.php
结语:所谓“黄金自由新搭档”意为整合了当下PHP集成开发工具之精华,吸收了广大开者之宝贵经验,真可谓是高大上、重品味,phpRE开发平台自由搭配PHP版本及最佳适配WordPress、Laravel、PhpStorm组合应用, 且这些精品背后都有着非常活跃的开发社区,持续不断提供着丰富而实用的模板、插件,对PHP开发实在给力,因此,新搭档、集大成,既不受传统“套餐式”组合件的束缚,又能跟上最新潮最规范的标准开发步子,让入门者少走弯路早成范儿,让大咖们得心应手,快乐编程,体验规范编程的乐趣,提高PHPWeb开发效率

如果觉得我的文章对您有用,请随意赞赏。您的支持将鼓励我继续创作!

128条评论
  • Gerald

    2019年7月24日 下午4:41

    I have read a few excellent stuff here. Certainly price bookmarking for revisiting.
    I surprise how so much effort you set to make this sort of magnificent informative website.

  • Kareem

    2019年7月24日 上午6:53

    If some one wants to be updated with latest technologies
    afterward he must be pay a quick visit this web page and be up to date everyday.

  • Kelsey

    2019年7月24日 上午5:42

    I have read so many posts on the topic of the blogger lovers but this article is really
    a nice piece of writing, keep it up.

  • Kenton

    2019年7月24日 上午4:16

    Greetings from Colorado! I’m bored at work so I decided
    to check out your site on my iphone during lunch break.
    I really like the information you provide here
    and can’t wait to take a look when I get home. I’m surprised at how
    fast your blog loaded on my cell phone .. I’m not even using WIFI, just 3G
    .. Anyhow, amazing blog!

  • Brad

    2019年7月24日 上午3:25

    Hi there friends, its great piece of writing concerning
    educationand completely explained, keep it up all the time.

  • Jerrod

    2019年7月23日 下午8:06

    I like the helpful information you provide in your articles.
    I will bookmark your blog and check again here frequently.
    I am quite sure I will learn many new stuff right here!
    Good luck for the next!

  • Fawn

    2019年7月23日 下午5:43

    I got this site from my friend who informed me regarding this site and at the moment this time I am
    browsing this site and reading very informative content here.

  • Micki

    2019年7月23日 下午4:39

    Somebody necessarily assist to make severely posts I’d state.
    This is the first time I frequented your web page and so far?
    I amazed with the research you made to make this actual post amazing.
    Great job!

  • Jeanna

    2019年7月23日 下午3:44

    This post will help the internet visitors for creating new website
    or even a weblog from start to end.

  • Christine

    2019年7月23日 下午12:15

    Heya i’m for the first time here. I found this board and I find It really useful & it helped
    me out much. I hope to give something back and aid others like you helped me.

  • Rosemary

    2019年7月23日 上午11:40

    Great article, just what I wanted to find.

  • Madeleine

    2019年7月23日 上午10:15

    Its like you learn my thoughts! You seem to understand
    a lot about this, such as you wrote the guide in it or something.
    I think that you could do with a few percent to force the
    message home a bit, however other than that, this is wonderful
    blog. A great read. I’ll definitely be back.

  • Annis

    2019年7月23日 上午8:36

    I love what you guys tend to be up too. This kind of clever work and reporting!
    Keep up the very good works guys I’ve included you guys to our blogroll.

  • Chassidy

    2019年7月23日 上午4:48

    We stumbled over here from a different page and thought
    I may as well check things out. I like what I see so i am just following you.
    Look forward to looking into your web page for a
    second time.

  • Bernd

    2019年7月23日 上午3:47

    Why viewers still use to read news papers when in this technological world everything is accessible on web?

  • Meridith

    2019年7月23日 上午1:51

    Greetings! This is my first visit to your blog!
    We are a team of volunteers and starting a new initiative in a community in the
    same niche. Your blog provided us beneficial information to
    work on. You have done a extraordinary job!

  • Kristy

    2019年7月22日 下午11:11

    Admiring the persistence you put into your site
    and in depth information you provide. It’s nice to come across a
    blog every once in a while that isn’t the same unwanted rehashed material.
    Great read! I’ve bookmarked your site and I’m adding your
    RSS feeds to my Google account.

  • Debra

    2019年7月22日 下午10:57

    I’m gone to convey my little brother, that he should
    also go to see this blog on regular basis to obtain updated from most recent gossip.

  • Jacqueline

    2019年7月22日 下午9:06

    May I simply say what a relief to discover a person that truly understands what they are talking about over the internet.
    You actually know how to bring a problem to light
    and make it important. More people ought to check this out and
    understand this side of the story. I was surprised you are not more popular since you most certainly have the gift.

  • Marshall

    2019年7月22日 下午8:50

    Hi there, I check your new stuff daily.
    Your humoristic style is awesome, keep up the good work!

  • Zachery

    2019年7月22日 下午8:07

    Great beat ! I would like to apprentice while you amend your web
    site, how could i subscribe for a blog web site?
    The account aided me a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear idea

  • Maricela

    2019年7月22日 下午6:49

    Hi! Would you mind if I share your blog with my facebook group?
    There’s a lot of folks that I think would really enjoy your content.
    Please let me know. Cheers

  • Mamie

    2019年7月22日 下午3:58

    Hi there excellent website! Does running a blog like
    this require a great deal of work? I’ve
    absolutely no understanding of programming however I had been hoping to start
    my own blog in the near future. Anyways, if you have
    any recommendations or tips for new blog owners please share.
    I understand this is off subject nevertheless I just wanted to ask.
    Appreciate it!

  • Carmela

    2019年7月22日 下午3:15

    Hi there colleagues, its enormous post on the topic
    of cultureand entirely explained, keep it up all the time.

  • Liza

    2019年7月22日 下午12:17

    Please let me know if you’re looking for a writer for your site.
    You have some really great posts and I think I would be a good asset.

    If you ever want to take some of the load off, I’d absolutely love to write
    some content for your blog in exchange for a link back to mine.

    Please blast me an e-mail if interested. Many thanks!

  • Jaunita

    2019年7月22日 上午10:50

    Hi! I’ve been following your website for some time now and finally got the
    courage to go ahead and give you a shout out from New Caney Tx!
    Just wanted to say keep up the excellent job!

  • Zelda

    2019年7月22日 上午5:12

    I think this is among the most significant information for me.
    And i am glad reading your article. But should remark on few general things,
    The site style is ideal, the articles is really excellent :
    D. Good job, cheers

  • Lance

    2019年7月22日 上午4:46

    I am regular visitor, how are you everybody? This post posted at this website is really nice.

发表评论

电子邮件地址不会被公开。