SlideShare une entreprise Scribd logo
1  sur  50
Introduction
Who am I?
• Simon Funk
• CEO and founder of Tree Stones web agency
• Passionate Webdeveloper and Laravel enthusiast
• Always interested for new technology and innovations
When I discovered Laravel
What is Laravel?
• PHP Framework for Artisans
• First release 2011
• Built on top of Symfony2 Components
• MVC based
• Like any framework, provides services and libraries to make interaction
with web requests and other services
Laravel Philosophy
• Love beatiful code
• Has expressive, elegant syntax
• Attempts to take the pain out of development (authentication, routing,
sessions, and caching)
• Providing powerful tools needed for large, robust applications
• Happy developers make the best code
Who is behind?
Taylor Otwell
Google Trend
The Installation
• Larave is based on Composer
• Installation via Laravel Installer
• Installation via Composer
Laravel folder structer
Controllers
Models
Views
The Basics
• Routing
• Controllers
• Templating (Blade)
• ORM (Eloquent)
Routing
• Handles the HTTP requests
• GET, POST, PUT, PATCH, DELETE
• Routes are defined in routes.php
• Routes can uses a closure
• Or you can use a Controller
Routing
Route List
• image
Controller
Blade
• Laravel default template engine
• Files need to use .blade.php extension
• Driven by inheritance and sections
• Extensible for adding new custom contol structures (directives)
Define a Blade Layout
Using a Blade Layout
Eloquent (ORM)
• Active Record
• Table – plural, snake_case class name
• Migrations
• Support relationship
• Soft deleting
• Timestamp
Migration & Seeder
• Migration • Seeder
Model
Artisan
• Laravel CLI, command «php artisan do:somtehing»
• Uses the Symfony Console component
• Manage table migrations, seed tables, create resourceful controllers
• Many more
Artisan
Service Container
• Manages class depencies
• Based on dependency injection method
• Dependencies are injected at run-time
• Allowing dependencies to be easily swapped
Service Container
Service Providers
• Act like component bootstrap
• Group related Service Container registrations in one place
• Can also run other functionalities like artisan command
Service Providers
Facades – What are they?
• Facade::doSomethingCool()
• Isn’t that a static method?
• Well, no
Facades – What are they?
• A «static» access to underlying service
• Lool like static resources, but actually uses services underneath
• Classes are resolved via Service Containers
Facades
• Laravel has a lot usefull usages of Facades like
• App::config()
• View::make()
• DB::table()
• Mail::send()
• Request::get()
• Session::get()
• Url::route()
• And much more…
Queue
• Provides a unified API across queue back-ends
• Interface to
• Amazon SQS
• IronMQ
• Redis queues
• Beanstalkd
• Sync – calls job inline
Middleware
• Allows processing or filtering of requests entering the system
• Example: Authentication, manipulation of content
Encryption
• Simplified encryption using mcrypt
• Available as Facade Crypt::(‘secret’)
Filesystem
• Abstraction layer to filesystem
• Local filesystem
• Amaron S3
• Rackspace Cloud Storage
• FTP/SFTP
• Dropbox
• Uses the league/flysystem library
Authentication
• Inlcudes libraries to do basic username/password authentication out
of the box
• Includes password recovery (Forgot password)
• Protecting routes using filters
Testing
• Testing Toolset
• Supports PHPUnit out of the box
• Easy to get started with Composer
• Allows you to simulate a web browser
• Support Mockery
Ecosystem
• Laravel
• Lumen
• Socialite
• Cashier
• Elixir
• Envoyer
• Spark (coming soon)
• Homestead
• Forge
Lumen
• Micor-framework for Micro-services
• Sacrifices configurability for speed
• Easy upgrade to a full Laravel application
Socialite
• Integrates Social authentication functionality
• Almost for all popular platforms available
• http://socialiteproviders.github.io
Cashier
• Billing without the hassle
• Subscription logic included
• Easy to setup
Envoy
• A simple deployment solution
• Handles SSH tasks
• Deploy on miltiple servers at onve
Elixir
• Gulp simplified
• Compilation, concatenation, minifaction, auto-prefixing,…
• Support for
• Source Maps
• CoffeScript
• Browserify
• Babel
• …
Spark (coming soon)
• Billing
• Team management
• Invitations
• Registration
• 2-factor auth
• …
Homestead
• Comes with everything you need
• Ubuntu
• PHP 5.6 & 7
• Nginx
• MySQL & Postgres
• Node
• Memcached
• …
Forge
• Automates the process to setup a server
• You don’t need to learn how to set up one
• Saves you the effort of settings everything up
• Globally, saves you ridiculous amounts of time
Envoyer (!= Envoy)
• Zero downtime deployments
• Seamless rollbacks
• Cronjobs monitoring with heartbeats
• Deployment health status
Community
• Slack http://larachat.co/
• Forum https://laracasts.com/discuss
• Forum http://laravel.io/forum
• Twitter https://twitter.com/laravelphp
• GitHub https://github.com/laravel/laravel
Conference
• LaraconUS July 27-29, Kentucky USA http://laracon.us/
• LaraconEU August 23-24, Amsterdam NL http://laracon.eu
Learning
• Laravel Documentation https://laravel.com/
• Laracasts https://laracasts.com/
CMS
• AsgardCMS https://asgardcms.com/
• OctoberCMS http://octobercms.com/
Thank you!
Questions?

Contenu connexe

Tendances

Lecture 2_ Intro to laravel.pptx
Lecture 2_ Intro to laravel.pptxLecture 2_ Intro to laravel.pptx
Lecture 2_ Intro to laravel.pptx
SaziaRahman
 
Web application development with laravel php framework version 4
Web application development with laravel php framework version 4Web application development with laravel php framework version 4
Web application development with laravel php framework version 4
Untung D Saptoto
 

Tendances (20)

Introduction to laravel framework
Introduction to laravel frameworkIntroduction to laravel framework
Introduction to laravel framework
 
Projects In Laravel : Learn Laravel Building 10 Projects
Projects In Laravel : Learn Laravel Building 10 ProjectsProjects In Laravel : Learn Laravel Building 10 Projects
Projects In Laravel : Learn Laravel Building 10 Projects
 
Laravel
LaravelLaravel
Laravel
 
Why Laravel?
Why Laravel?Why Laravel?
Why Laravel?
 
Lecture 2_ Intro to laravel.pptx
Lecture 2_ Intro to laravel.pptxLecture 2_ Intro to laravel.pptx
Lecture 2_ Intro to laravel.pptx
 
Introduction to Spring Boot
Introduction to Spring BootIntroduction to Spring Boot
Introduction to Spring Boot
 
Laravel 101
Laravel 101Laravel 101
Laravel 101
 
01 Php Introduction
01 Php Introduction01 Php Introduction
01 Php Introduction
 
Web application development with laravel php framework version 4
Web application development with laravel php framework version 4Web application development with laravel php framework version 4
Web application development with laravel php framework version 4
 
What-is-Laravel-23-August-2017.pptx
What-is-Laravel-23-August-2017.pptxWhat-is-Laravel-23-August-2017.pptx
What-is-Laravel-23-August-2017.pptx
 
Web Development with Laravel 5
Web Development with Laravel 5Web Development with Laravel 5
Web Development with Laravel 5
 
Spring boot introduction
Spring boot introductionSpring boot introduction
Spring boot introduction
 
Laravel tutorial
Laravel tutorialLaravel tutorial
Laravel tutorial
 
Laravel ppt
Laravel pptLaravel ppt
Laravel ppt
 
Introduction to angular with a simple but complete project
Introduction to angular with a simple but complete projectIntroduction to angular with a simple but complete project
Introduction to angular with a simple but complete project
 
Spring boot
Spring bootSpring boot
Spring boot
 
Code igniter - A brief introduction
Code igniter - A brief introductionCode igniter - A brief introduction
Code igniter - A brief introduction
 
Spring Framework
Spring Framework  Spring Framework
Spring Framework
 
Angular - Chapter 1 - Introduction
 Angular - Chapter 1 - Introduction Angular - Chapter 1 - Introduction
Angular - Chapter 1 - Introduction
 
Spring Boot
Spring BootSpring Boot
Spring Boot
 

Similaire à Laravel introduction

Microservices, Spring Cloud & Cloud Foundry
Microservices, Spring Cloud & Cloud FoundryMicroservices, Spring Cloud & Cloud Foundry
Microservices, Spring Cloud & Cloud Foundry
Emilio Garcia
 

Similaire à Laravel introduction (20)

PHP Laravel Framework'üne Dalış
PHP Laravel Framework'üne DalışPHP Laravel Framework'üne Dalış
PHP Laravel Framework'üne Dalış
 
Laravel Meetup
Laravel MeetupLaravel Meetup
Laravel Meetup
 
Apereo OAE - Bootcamp
Apereo OAE - BootcampApereo OAE - Bootcamp
Apereo OAE - Bootcamp
 
Hands-on-Laravel.pptx
Hands-on-Laravel.pptxHands-on-Laravel.pptx
Hands-on-Laravel.pptx
 
Kuby, ActiveDeployment for Rails Apps
Kuby, ActiveDeployment for Rails AppsKuby, ActiveDeployment for Rails Apps
Kuby, ActiveDeployment for Rails Apps
 
Fusion on Kubernetes - Alan Eugenio & Joe Streeky, Lucidworks
Fusion on Kubernetes - Alan Eugenio & Joe Streeky, LucidworksFusion on Kubernetes - Alan Eugenio & Joe Streeky, Lucidworks
Fusion on Kubernetes - Alan Eugenio & Joe Streeky, Lucidworks
 
Introduction to Laravel
Introduction to LaravelIntroduction to Laravel
Introduction to Laravel
 
Owin from spec to application
Owin from spec to applicationOwin from spec to application
Owin from spec to application
 
Introduction to Laravel Framework (5.2)
Introduction to Laravel Framework (5.2)Introduction to Laravel Framework (5.2)
Introduction to Laravel Framework (5.2)
 
OSDC 2013 | Introduction into Chef by Andy Hawkins
OSDC 2013 | Introduction into Chef by Andy HawkinsOSDC 2013 | Introduction into Chef by Andy Hawkins
OSDC 2013 | Introduction into Chef by Andy Hawkins
 
Microservices, Spring Cloud & Cloud Foundry
Microservices, Spring Cloud & Cloud FoundryMicroservices, Spring Cloud & Cloud Foundry
Microservices, Spring Cloud & Cloud Foundry
 
Integration in the age of DevOps
Integration in the age of DevOpsIntegration in the age of DevOps
Integration in the age of DevOps
 
20161103 Serverless Italy Meetup
20161103   Serverless Italy Meetup20161103   Serverless Italy Meetup
20161103 Serverless Italy Meetup
 
Scaling with swagger
Scaling with swaggerScaling with swagger
Scaling with swagger
 
Introduction to Flask Micro Framework
Introduction to Flask Micro FrameworkIntroduction to Flask Micro Framework
Introduction to Flask Micro Framework
 
Migration from ASP.NET MVC to ASP.NET Core
Migration from ASP.NET MVC to ASP.NET CoreMigration from ASP.NET MVC to ASP.NET Core
Migration from ASP.NET MVC to ASP.NET Core
 
Apereo OAE - Architectural overview
Apereo OAE - Architectural overviewApereo OAE - Architectural overview
Apereo OAE - Architectural overview
 
Cloud Native Camel Riding
Cloud Native Camel RidingCloud Native Camel Riding
Cloud Native Camel Riding
 
CrossWorlds: Unleash the Power of Domino for Connections Development
CrossWorlds: Unleash the Power of Domino for Connections Development CrossWorlds: Unleash the Power of Domino for Connections Development
CrossWorlds: Unleash the Power of Domino for Connections Development
 
Eugene PHP June 2015 - Let's Talk Laravel
Eugene PHP June 2015 - Let's Talk LaravelEugene PHP June 2015 - Let's Talk Laravel
Eugene PHP June 2015 - Let's Talk Laravel
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Dernier (20)

AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 

Laravel introduction