Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Laravel? WTF is that?
Shameless Plug
Gibson Tang
Founder of Azukisoft
Pte Ltd
What is
Laravel?
MVC framework
With Dependency Injection
Focus on Unit Tests
DRY principles
Introduction
Currently at version 5.0
Version 4.2 is still popular
5.1 will be coming soon
Laravel
Based on Symfony
Symfony has a higher learning curve
Laravel has the opposite
http://www.sitepoint.com/best-php-
f...
Laravel
Laravel
Uses Composer as a package manager
Not Pear
As Pear sucks
You can't have a MVC framework without a
package manager...
Laravel
In a nutshell, as my friend said it 'It is like
Rails for PHP'
This sounds like heresy to all the Rails
people her...
Laravel
Coming from a CodeIgniter background
Laravel makes it easy for you to focus on the
business logic
As the other boi...
Laravel
In the database.php file, you just need to fill
in these parameters
'mysql' => array(
'driver' => 'mysql',
'host' ...
Laravel
Laravel also abstracts away the syntax using
ORMs and Query Builders
Has build in protection against SQL injection...
Laravel
Eloquent ORM
$result =
Customer::where('name', '=' 'Handsome')-
>get();
Instead of
Select * from Customer where na...
Laravel
Fluent Query Builder
$result =
DB::table('customer')->where('id', 4)->get();
Instead of
Select * from Customer whe...
Laravel
Database Migration
Think of it as git for your database
Except without the confusing and fun bits
Easy seeding of ...
Laravel
RESTful Controllers (Good for creating
RESTful APIs)
Queue management
In-house support for Redis
Inhouse support f...
Laravel
https://github.com/search?l=PHP&q=+stars%3A%3E0&ref=searchresults&type=Repositorie
s
Laravel
A lot of resources
http://www.Laracasts.com
http://www.packalyst.com for Laravel
packages
http://laravel-recipes.c...
Laravel
Laravel sounds like the best thing that
happened since sliced bread
So what's the downside?
Laravel
What's wrong?
It's still using PHP
Composer can be a memory hog when you
run 'composer update'
Can be too heavywei...
Laravel
No build in admin panel
But there is a package for that
Not as established as Python/Django or RoR
But that means ...
Laravel
For a lightweight framework
Check out Lumen lumen.laravel.com
Created by the same guy aka OMO(One Man
Operation) w...
Laravel
Thank you. Any questions?
Upcoming SlideShare
Loading in …5
×

Intro to Laravel

703 views

Published on

An introduction to Laravel

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Intro to Laravel

  1. 1. Laravel? WTF is that?
  2. 2. Shameless Plug Gibson Tang Founder of Azukisoft Pte Ltd
  3. 3. What is Laravel? MVC framework With Dependency Injection Focus on Unit Tests DRY principles
  4. 4. Introduction Currently at version 5.0 Version 4.2 is still popular 5.1 will be coming soon
  5. 5. Laravel Based on Symfony Symfony has a higher learning curve Laravel has the opposite http://www.sitepoint.com/best-php- framework-2015-sitepoint-survey-results/
  6. 6. Laravel
  7. 7. Laravel Uses Composer as a package manager Not Pear As Pear sucks You can't have a MVC framework without a package manager, can you?
  8. 8. Laravel In a nutshell, as my friend said it 'It is like Rails for PHP' This sounds like heresy to all the Rails people here Well, everyone has their own opinion
  9. 9. Laravel Coming from a CodeIgniter background Laravel makes it easy for you to focus on the business logic As the other boilerplate stuff is abstracted away
  10. 10. Laravel In the database.php file, you just need to fill in these parameters 'mysql' => array( 'driver' => 'mysql', 'host' => '127.0.0.1', 'database' => 'wordpress', 'port' => '3306', 'username' => 'root', 'password' => 'foobar123', 'charset' => 'utf8',
  11. 11. Laravel Laravel also abstracts away the syntax using ORMs and Query Builders Has build in protection against SQL injections Eloquent Fluent
  12. 12. Laravel Eloquent ORM $result = Customer::where('name', '=' 'Handsome')- >get(); Instead of Select * from Customer where name = 'Handsome';
  13. 13. Laravel Fluent Query Builder $result = DB::table('customer')->where('id', 4)->get(); Instead of Select * from Customer where id = 4';
  14. 14. Laravel Database Migration Think of it as git for your database Except without the confusing and fun bits Easy seeding of database tables
  15. 15. Laravel RESTful Controllers (Good for creating RESTful APIs) Queue management In-house support for Redis Inhouse support for payment APIs using the Laravel Cashier package which interfaces with Stripe
  16. 16. Laravel https://github.com/search?l=PHP&q=+stars%3A%3E0&ref=searchresults&type=Repositorie s
  17. 17. Laravel A lot of resources http://www.Laracasts.com http://www.packalyst.com for Laravel packages http://laravel-recipes.com/ Among others
  18. 18. Laravel Laravel sounds like the best thing that happened since sliced bread So what's the downside?
  19. 19. Laravel What's wrong? It's still using PHP Composer can be a memory hog when you run 'composer update' Can be too heavyweight for some use cases
  20. 20. Laravel No build in admin panel But there is a package for that Not as established as Python/Django or RoR But that means that Laravel has a lot of cool stuff coming it's way
  21. 21. Laravel For a lightweight framework Check out Lumen lumen.laravel.com Created by the same guy aka OMO(One Man Operation) who developed Laravel It integrates well with Laravel
  22. 22. Laravel Thank you. Any questions?

×