手把手教你跑 Larave 框架实战笔记系列之一

作者: 人可工作室 分类: 开发体验笔记 发布时间: 2018-03-01 10:16

[宗旨]严格遵循现代编程组件化Web开发原理,通过phpRE+Composer + PhpStorm+Laravel快捷安装配置集成强大现代优雅开发平台,实现一站式Web开发。
[前言]据调查显示,目前45-54岁之间的开发者,超过一半在16岁之前就开始编程,18-24岁的开发者,有20%在16岁前开始编程。结论是一句话:“编程从娃娃抓起”。

万事开头难。编程入门更是很难找到适合自己的门道。做人走正道不误入歧途,才会心安理得,活得舒坦幸福;编程走正道不抄小道,才能做精做强,项目优雅艺术。如果说Python中PyCharm+Django是绝配的话,那么,PHP中PhpStorm+Laravel更佳绝配。殊途同归,这两者都是在不同语言风格而非常相似的集成开发环境中进行Web开发的好搭档。童鞋们可以通过Anaconda平台轻松入门Django开发,也可以通过phpRE平台快速入门Laravel开发。PHP原生开发是基于C来直接用PHP函数组件化编程一步步完成整个项目开发的,这样做的好处是自由灵活,完全按开发人员自己的想法来实现各个功能模块,然后再把各功能模块拼接成一个项目工程,这就好比搭积木,工作量相对大些,但对练习入门基本功非常有帮助,特别是对学习运用PHP组件、包或库非常有益,对选择功能模块个性化样式也非常灵活自由,既可以天马行空,又可以异想天开,对打开脑洞非常好。原生开发项目效果如何完全取决于开发人员的审美观以及对业务逻辑的处理、对PHP的理解和把握。相对原生开发而言,框架开发大大限制了开发人员灵活自由度,从某种程度上约束了程序员的独立思考,更不要说是异想天开了,多半构架都要求你老老实实按照框架规定动作一步步走下去。

不管是原生开发,还是框架开发,程序员最痛苦的事就是开发每个项目都少不了要干许多手工写代码的苦力活,可如今既然有了简洁明快、优雅艺术Laravel框架就会省力省事多了,Laravel会让PHP原生组件Artisan帮你写代码,这就叫做“优雅”,就好比Python中Web框架Django映射生成代码一样,你只需一句命令轻轻一敲,就会看到黑客般代码在黑屏幕上来回翻滚,一瞬间,模型全都自动给你生成了,那更是逼格高得受不了……

PHP为Web而生。只要有服务器,只要有Web就肯定会有PHP,PHP市场发展好坏不以人的意志为转移,盲目跟风炒作任何一门语言流行程度或能存活多久,对这门语言本身存在的价值毫无意义,我们能够控制的只有好好的去发挥PHP最大的优势,为人类,为企业,为个人,做出更加卓越的项目!由于部分低效框架限制了整个程序性能的发挥,近年来,PHP已是毁誉参半。好在“为Web艺术家而生”的Laravel的出现,随着框架升级而不需要改动业务逻辑代码,这就是Laravel最具有现实意义的组件化开发,组件化开发将会给PHP带来生机和再创辉煌。只要事先优化配置好运行环境的话,PHP跑起来性能一点都不差。自从有了Composer包管理工具这个“艺术家”,让PHP实现了现代组件化开发,持续提升着PHP现代感,使PHP性能有了质的飞跃。后来,我们又有了更加优雅、艺术的Laravel开发框架,更是把PHP现代、优雅表现力推向新的高度。但是 laravel 入手确实是有难度的,官方文档仅仅适合入门的童鞋当新华字典查阅使用,对新手小白来说实在是很不友好。官方文档一上来就搞了个 Homestead虚拟机 ,开发团队的初衷是给PHPer创建友好开发家园,但其配置繁琐、深奥难懂,好多童鞋直接就被撞死在Laravel开发环境搭建这堵墙上了。哈哈,好在老何我绕过这堵墙,给童鞋们编写了智能优雅一键安装的 phpRE 快捷集成运行环境安装程序,轻松跨越复杂的配置过程,直接进入集成开发环境PhpStorm + Composer+Laravel 勾搭配置环节,轻轻松松就把这些相对独立的开发工具整合成了优雅、艺术、现代的强大集成开发环境(IDE)或开发平台

说到这里,童鞋们可能会问:phpRE究竟又是什么东东?举个例子,计算机硬件组装DIY装机大家都不陌生,可能还有人干过这玩意儿,就是用电脑组件按照一定的规范、接口组装PC或平板电脑、手机,这样,硬件组装厂或手机代加工厂就不难理解了。同理,软件开发的项目工程也同样可以组件开发,这一思想早在上世纪八九十年代的面向过程编程就已经形成了,在后来的OOP面向对象编程中发扬光大,尤其是VB、VC、VFP等老牌的GUI图形界面第四代语言,在表单上用大量的控件、第三方插件通过拖拽方式按一定的规范或接口来开发应用软件,这与DIY装机就更加形象了。软件走过了垄断销售的春夏秋冬,走到了免费、自由、开源的今天,自由开源文化大行其道,组件化开发思想永放光芒。在组件开发的大气候大背景下,Composer顺应时代而生,Laravel自然成了组件化开发的产物,越是倡导自由开源的开发语言或工具越将会成为组件化开发的时代先锋,PHP7、Python3、Composer、Laravel或WordPress等时代弄潮儿正在阔步向前,走在时代的前列,phpRE只不过就是PHP、WordPress、Composer、Laravel等这些组件化开发工具的操作平台或组件开发App产品的“组装厂”。用专业术语回答就是:phpRE 是 Win32 下绿色安装的 Apache + PHP + MySQL + Composer + Laravel 运行环境组件压缩包。最适合与 PhpStorm 搭配集成强劲 IDE 开发平台,最适用于Laravel 框架和 WordPress 等开源程序 Web开发。开发所需的官方最新版本组件都已为你封装好了,只需一键安装即可轻松搞定 PHP 运行开发环境,并默认同步官方最新版组件及时更新发布(可以灵活更换自定义版本),免费、开源与分享。”

下面让我们一步步见证这一奇迹……

最靠谱的Laravel一键安装 

安装完整版(最新版套餐):网盘下载phpRE(Ver1.3.8)提取码:zije
一键安装 phpRE 集成运行开发环境,已帮你事先搞定了Laravel必须的PHP扩展配置(在php.ini中开启 openssl 和 fileinfo 扩展)、PATH系统环境变量编辑、搭建本地虚拟主机(http://www.phpre.com)、Composer全局安装等大量手工活……

phpRE安装成功后,接下来初始化PhpStorm与Composerl勾搭配置、Laravel插件和Laravel IDE helper以及项目开发相关依赖包、组件就可大功告成了。
5分钟从零环境一键安装创建Laravel项目 

详情参考《phpRE+Composer+PhpStorm+Laravel安装配置搭建优雅艺术Laravel项目集成开发环境简明教程https://www.hezhubi.com/laravelide.htm

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

20条评论
  • Octavia

    2019年7月24日 上午6:45

    It’s wonderful that you are getting ideas from this paragraph as well as from our dialogue made here.

  • Dominick

    2019年7月23日 下午6:26

    Hey I know this is off topic but I was wondering if you knew of
    any widgets I could add to my blog that automatically tweet
    my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy reading your
    blog and I look forward to your new updates.

  • Wiley

    2019年7月22日 下午6:59

    I read this article completely on the topic of the resemblance of most
    recent and earlier technologies, it’s remarkable article.

  • Verena

    2019年7月22日 上午2:26

    Way cool! Some extremely valid points! I appreciate you penning this post plus the rest of the site is also really good.

  • Taylor

    2019年7月21日 下午8:57

    of course like your website however you need to check the spelling on quite a few of your
    posts. Many of them are rife with spelling problems and I to find it very bothersome
    to inform the truth however I’ll certainly come back again.

  • Royce

    2019年7月21日 上午6:35

    Wow that was odd. I just wrote an very long
    comment but after I clicked submit my comment didn’t show up.
    Grrrr… well I’m not writing all that over again. Regardless, just wanted to say excellent blog!

  • Annetta

    2019年7月20日 下午9:42

    What’s up to all, the contents existing at this website are
    actually remarkable for people experience, well, keep up the nice work fellows.

  • Rigoberto

    2019年7月16日 下午11:17

    Excellent post. I will be dealing with some of these issues as well..

  • Shanna

    2019年7月16日 上午10:05

    First of all I would like to say wonderful blog!

    I had a quick question which I’d like to ask if you don’t mind.
    I was interested to know how you center yourself and clear your thoughts before writing.
    I’ve had a tough time clearing my thoughts in getting my thoughts out.
    I do take pleasure in writing but it just seems like the first 10 to
    15 minutes tend to be lost simply just trying to figure
    out how to begin. Any ideas or tips? Appreciate it!

  • Kristal

    2019年7月16日 上午5:49

    Link exchange is nothing else but it is only placing the other person’s blog link on your page at suitable place and other person will also do same in favor of you.

  • Dominik

    2019年7月16日 上午4:35

    Hello mates, its fantastic article regarding cultureand entirely explained, keep it up all the time.

  • Elvia

    2019年7月13日 上午9:25

    Thanks designed for sharing such a pleasant opinion,
    paragraph is nice, thats why i have read it completely

  • Mervin

    2019年7月12日 上午10:42

    Hi there! Do you know if they make any plugins to protect against hackers?
    I’m kinda paranoid about losing everything
    I’ve worked hard on. Any recommendations?

  • Dominique

    2019年7月12日 上午7:22

    This is the perfect webpage for anybody who would like to understand this topic.
    You realize so much its almost tough to argue with you (not that I really
    will need to…HaHa). You definitely put a brand new spin on a subject which has been written about for many years.

    Great stuff, just excellent!

  • Lynwood

    2019年7月11日 下午6:56

    I know this if off topic but I’m looking into starting my own blog and was wondering
    what all is required to get set up? I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very web smart so I’m not 100% sure. Any recommendations
    or advice would be greatly appreciated. Many thanks

  • Fredrick

    2019年7月11日 上午11:04

    These are actually fantastic ideas in regarding blogging.

    You have touched some good factors here. Any way keep up wrinting.

  • Caren

    2019年7月11日 上午10:42

    Wow! Finally I got a blog from where I be capable of genuinely take helpful facts concerning my study and knowledge.

  • ig

    2019年6月29日 下午10:43

    I am genuinely pleased to read this weblog posts which includes plenty of helpful data, thanks for providing these statistics.

  • Amado

    2019年6月28日 下午3:42

    fantastic points altogether, you just received a new reader.
    What could you suggest about your put up that you just made some
    days ago? Any positive?

  • 何朱必

    2018年3月1日 上午10:26

    传承经典,分享笔记。

回复 Dominik 取消回复

您的电子邮箱地址不会被公开。 必填项已用*标注