Laravel 初学者的良好开端
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23319192/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
A Good Start To Laravel Beginner
提问by Naggar
Now I'm using php in the ordinary way, After Some Searching I Knew that there is something called Laravel framework, I don't Know Any Thing About it ??? why we use laravel ?? is it for UI Enhancement "as Sliders,Drop-Down Boxs" or it makes php more easier in treating MySql or Mailing
现在我以普通的方式使用 php,经过一番搜索我知道有一个叫做 Laravel 框架的东西,我对它一无所知???为什么我们使用laravel?是用于 UI 增强“作为滑块,下拉框”还是使 php 更容易处理 MySql 或邮件
I Need Also To Know How To Begin Installing it on Localhost & Learning it "Some Easy Tutorial"
我还需要知道如何开始在本地主机上安装它并学习它“一些简单的教程”
回答by The Alpha
Laravel
is a Web Development Framework for PHP
and definition of framework from wikipedia:
Laravel
是Web Development Framework for PHP
来自维基百科的框架定义:
A web application framework (WAF) is a software framework that is designed to support the development of dynamic websites, web applications, web services and web resources. The framework aims to alleviate the overhead associated with common activities performed in web development. For example, many frameworks provide libraries for database access, templating frameworks and session management, and they often promote code reuse. For a comparison of concrete web application frameworks, see Comparison of web application frameworks.
Web 应用程序框架 (WAF) 是一种软件框架,旨在支持动态网站、Web 应用程序、Web 服务和 Web 资源的开发。该框架旨在减轻与 Web 开发中执行的常见活动相关的开销。例如,许多框架提供用于数据库访问、模板框架和会话管理的库,并且它们经常促进代码重用。有关具体 Web 应用程序框架的比较,请参阅 Web 应用程序框架的比较。
In simple words, a framework lets you build applications easily with less effort because you don't have to write every code from scratch instead the framework provides tools/classes that you may use to write your project specific code easily.Laravel
is one of the bests but not the only one, there are others. You may also check this answeras other answer stated.
简而言之,框架可以让您以更少的努力轻松构建应用程序,因为您不必从头开始编写每个代码,而是框架提供了可用于轻松编写项目特定代码的工具/类。Laravel
是最好的之一,但不是唯一的,还有其他的。您也可以像其他答案一样检查此答案。
The best way to learn the Laravel frameworkis the manual on the website, so read the manual and also you may find articles on the web and also reading a good book will help you more.
学习Laravel 框架最好的方法是网站上的手册,所以阅读手册,你也可以在网上找到文章,阅读一本好书会帮助你更多。
Some Laravel Resources:
一些 Laravel 资源:
- A list of places for resources
- Laravel-learning-resources
- laracasts(Screen Casts)
- Learninglaravelwith Free eBook
- culttt
- Laravel-recipes
- Laravel-tricks
- Heera.IT - (Laravel Tag)
Also check the Laravel Infoon StackOverflow.
另请查看StackOverflow 上的Laravel 信息。
回答by friveroll
For the first part of the question I think you could find useful this link
对于问题的第一部分,我认为您会发现此链接很有用
What's a PHP framework and what's a good one?
Why to use Laravel? Laravel let you write a PHP app very fast, there are some generators for resources, controllers and models, also you can use blade the template engine. Did you hear about ruby on rails (ROR), laravel is somewhat similar to ROR and also are cheaper to implement becouse every hosting has PHP support. So if you can't afford a VPS for rails development then Laravel is a good choice.
为什么要使用 Laravel?Laravel 让你可以非常快速地编写一个 PHP 应用程序,有一些资源、控制器和模型的生成器,你也可以使用刀片模板引擎。您是否听说过 ruby on rails (ROR),laravel 与 ROR 有点相似,而且实施起来也更便宜,因为每个主机都支持 PHP。因此,如果您负担不起用于 Rails 开发的 VPS,那么 Laravel 是一个不错的选择。
For UI Enhancement you should look for a CSS framework like bootstrapor foundationthe integration of these CSS frameworks very straightforward.
对于 UI 增强,您应该寻找一个 CSS 框架,如bootstrap或基础,这些 CSS 框架的集成非常简单。
The Laravel installation it's very easy look at the quickstart from documentation http://laravel.com/docs/quickand this free laracast video https://laracasts.com/lessons/laravel-installation-for-newbs
Laravel 安装很容易从文档http://laravel.com/docs/quick和这个免费的 laracast 视频https://laracasts.com/lessons/laravel-installation-for-newbs 中查看快速入门
Also as @WereWolf mention there are a lot of resources to learn, symfonyor Zend Frameworkdoes not have as many learning resources as Laravel.
另外正如@WereWolf 提到的,有很多资源需要学习,symfony或Zend Framework没有 Laravel 那么多的学习资源。