Laravel Framework
By: Jaimin Gohel
About Speaker
- MCA(GLSICT)
- Laravel Developer @ QlooIt Solutions
- Moziilian
- Love Open Source Technologies
Career Advice
IDEA
PHP
Statistics about php
-
Most popular open source server side scripting language. Almost 82% of the web 2.0 is built with php.
-
There are about 5 million PHP developers worldwide.
-
Some of the biggest on-line brands such as Facebook, Flickr, wordpress, and Yahoo! are powered by PHP.
PHP Framework
-
PHP framework is a library that makes the life of site developer easier by for example hiding some complexities of HTTP protocol or by adding some useful functions.
-
Have some built in functions for obvious tasks like authentication, routing, sessions, and caching.
-
example: wordpress, joomla, magento, laravel.
Why we need a framework?
Laravel Philosophy
- Laravel is a web application framework with expressive, elegant syntax.
- We believe development must be an enjoyable, creative experience to be truly fulfilling.
- Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching.
- Happy developers make the best code.
Advantages of Laravel
- Laracasts
- Intuitive Syntax
$users = User::paginate(5);
- Artisan Code Generation
php artisan make:controller SampleController
- Out-of-the-box User Model
- Blade Templating Engine
- Security
Security in laravel
- bcrypt hased passwords(one way encryption)
- Prepared statements for sql, which prevents sql injection
- <script> tag is filtered by default, which prevents from xss
- CSRF Protection
Install Laravel
Server Requirement
The Laravel framework has a few system requirements:
- PHP >= 5.4, PHP < 7
- Mcrypt PHP Extension
- OpenSSL PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
Composer
- Composer is dependency manager for your php application.
- It manages(install/update) the libraries of your project
- find composer at http://getcomposer.org
- Create a laravel project with composer
Composer (cont.)
- Composer create-project laravel/laravel makerparty “5.0.*” –prefer-dist
- Create virtual host entry
1.0 Introduction to routing, controller and views
2.0 Passing Data to Views
3.0 Little more about Blade
4.0 Environments and Configuration
5.0 Migrations
6.0 Eloquent
7.0 Basic Model-Controller-View Workflow
8.0 Forms
deck
By Jaimin Gohel
deck
- 751