11.08.2017 Views

codebright

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Getting Started<br />

Laravel is a framework for the PHP programming language. While PHP is known to have a less than<br />

desirable syntax, it is easy to use, easy to deploy, and can be found powering many of the modern<br />

web sites you use day to day. Laravel not only provides useful shortcuts, tools, and components to<br />

help you achieve success with all of your web based projects, but it also aims to fix some of PHP’s<br />

flaws.<br />

Laravel has a beautiful, semantic, and creative syntax that allows it to stand out among a large<br />

number of frameworks available for the language. This makes PHP a joy to use, without sacrificing<br />

power and efficiency. Laravel is a great choice for amateur projects and enterprise solutions alike,<br />

and whether you are a seasoned pro with the language, or a newcomer, Code Bright will help you<br />

turn the ideas you have into fully functional web applications.<br />

Let’s have a quick look at the requirements for both the framework and this book.<br />

Requirements<br />

• A Computer Reading is great, but you will learn more from playing with the examples that<br />

you find in the book.<br />

• A Webserver Laravel needs a web server. It doesn’t matter which one you use but I find the<br />

majority of the community use either Apache or Nginx and doing the same will make it much<br />

easier to find support if needed.<br />

• PHP: Hypertext Preprocessor 5.3 or greater Laravel is a PHP framework, it requires the<br />

PHP programming language. Trust me you are going to need this one. Since Laravel uses<br />

some modern features of the language you will also need version 5.3.7 or greater. You can find<br />

out the PHP version used by most web servers by typing php -v at the console, or using the<br />

phpinfo() method.<br />

• A Database Server While not a requirement of the framework, many of the examples in the<br />

book interact with a database. For this reason I would recommend setting up a database server<br />

supported by the PDO connector. While I would recommend using the flexible and free MySQL<br />

by Su.. Oracle, other popular database servers include SQL Server, Postgres and SQLite.<br />

• A Text Editor You will need this to play with the examples found within the book. I highly<br />

recommend Sublime Text 2, and while it’s not free, it is extremely sexy. There are however<br />

millions of editors and IDEs available, find one that suits the way you work.<br />

Now before we can start working on our Laravel projects, we must first download a copy of the<br />

framework.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!