Laravel, längst kein unbestriebenes Blatt mehr, gewinnt immer mehr an Popularität.
In diesem Vortrag wir Laravel kurz vorgestellt mit Themen wie:
- Was ist Laravel?
- Woher kommt Laravel?
- Was bietet Laravel?
- Laravel und sein Ecosystem.
und einiges mehr...
2. 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
4. 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
5. 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
11. 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
15. 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)
23. Service Container
• Manages class depencies
• Based on dependency injection method
• Dependencies are injected at run-time
• Allowing dependencies to be easily swapped
25. Service Providers
• Act like component bootstrap
• Group related Service Container registrations in one place
• Can also run other functionalities like artisan command
27. Facades – What are they?
• Facade::doSomethingCool()
• Isn’t that a static method?
• Well, no
28. 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
29. 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…
30. Queue
• Provides a unified API across queue back-ends
• Interface to
• Amazon SQS
• IronMQ
• Redis queues
• Beanstalkd
• Sync – calls job inline
31. Middleware
• Allows processing or filtering of requests entering the system
• Example: Authentication, manipulation of content
33. Filesystem
• Abstraction layer to filesystem
• Local filesystem
• Amaron S3
• Rackspace Cloud Storage
• FTP/SFTP
• Dropbox
• Uses the league/flysystem library
34. Authentication
• Inlcudes libraries to do basic username/password authentication out
of the box
• Includes password recovery (Forgot password)
• Protecting routes using filters
35. Testing
• Testing Toolset
• Supports PHPUnit out of the box
• Easy to get started with Composer
• Allows you to simulate a web browser
• Support Mockery
43. Homestead
• Comes with everything you need
• Ubuntu
• PHP 5.6 & 7
• Nginx
• MySQL & Postgres
• Node
• Memcached
• …
44. 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
45. Envoyer (!= Envoy)
• Zero downtime deployments
• Seamless rollbacks
• Cronjobs monitoring with heartbeats
• Deployment health status
46. 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
47. Conference
• LaraconUS July 27-29, Kentucky USA http://laracon.us/
• LaraconEU August 23-24, Amsterdam NL http://laracon.eu