Laravel

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Laravel
Laravel logo
Developer(s) Taylor Otwell
Initial release June 2011; 3 years ago (2011-06)[1]
Stable release 5.0.27[2] / April 4, 2015; 22 days ago (2015-04-04)
Development status Active
Written in PHP
Operating system Cross-platform
Type Web application framework
License MIT License
Website laravel.com

Laravel is a free, open source PHP web application framework, designed for the development of model–view–controller (MVC) web applications. Laravel is released under the MIT License, with its source code hosted on GitHub.[3][4][5]

According to a December 2013 developers survey on PHP frameworks popularity, Laravel was listed as the most popular PHP framework of 2013, followed by Phalcon, Symfony2, CodeIgniter and others.[6] As of August 2014, Laravel is the most popular and watched PHP project on GitHub.[7]

Features[edit]

The following features serve as Laravel's key design points (where not specifically noted, descriptions refer to the features of Laravel 3.x):[3][4][5][8]

  • Bundles provide a modular packaging system to Laravel 3.x, with numerous bundled features already available for easy addition to applications. Laravel 4.x uses Composer as a dependency manager to add framework-agnostic and Laravel-specific PHP packages available from the Packagist repository.[9]
  • Eloquent ORM (object-relational mapping) is an advanced PHP implementation of the active record pattern, providing at the same time internal methods for enforcing constraints on the relationships between database objects. Following the active record pattern, Eloquent ORM presents database tables as classes, with their object instances tied to single table rows.[10][11] Laravel's query builder provides a more direct database access alternative to the Eloquent ORM.[12]
  • Application logic is an integral part of developed applications, implemented either by using controllers or as part of the route declarations. Syntax used for definitions is similar to the one used by Sinatra framework.
  • Reverse routing defines a relationship between the links and routes, making it possible for later changes to routes to be automatically propagated into relevant links. When the links are created by using names of existing routes, the appropriate uniform resource identifiers (URIs) are automatically created by Laravel.
  • Restful controllers provide an optional way for separating the logic behind serving HTTP GET and POST requests.
  • Class auto loading provides automated loading of PHP classes without the need for manual maintenance of inclusion paths. On-demand loading prevents inclusion of unnecessary components, so only the actually used components are loaded.
  • View composers are logical code units that can be executed when a view is loaded.
  • IoC container makes it possible for new objects to be generated by following the inversion of control principle, with optional instantiating and referencing of new objects as singletons.
  • Migrations provide a version control system for database schemas, making it possible to associate changes in the application's codebase and required changes in the database layout. As a result, the deployment and updating of applications is significantly simplified.
  • Database seeding is a simple way to populate database tables with default data for testing or setup purposes.[13]
  • Unit testing plays an important role in Laravel, which itself contains numerous unit tests that detect and prevent regressions in the framework. Unit tests can be run through the artisan command-line utility.
  • Automatic pagination simplifies the task of implementing pagination, replacing the usual manual implementation approaches with automated methods integrated into Laravel.
  • Form request is a feature of Laravel 5 that serves as the base for form input validation by internally binding event listeners, resulting in automated invoking of the form validation methods and generation of the actual form.[14]

Conferences[edit]

Laracon is a conference centered around the Laravel framework, primarily organized by UserScape with additional help provided by various sponsors.[15] As of August 2014, the following Laracons have been held:[16]

Date Location
February 22–23, 2013 Washington, D.C.
August 30–31, 2013[17] Amsterdam
May 15–16, 2014 New York City
August 28–30, 2014[18] Amsterdam

See also[edit]

References[edit]

  1. ^ Maks Surguy (July 27, 2013). "History of Laravel PHP framework, Eloquence emerging". maxoffsky.com. Retrieved January 22, 2015. 
  2. ^ "laravel/framework: Release v5.0.27". github.com. April 4, 2015. Retrieved April 17, 2015. 
  3. ^ a b "Laravel Documentation (versions 3.0–3.2.14)". three.laravel.com. Retrieved August 30, 2014. 
  4. ^ a b "Laravel Documentation (version 4.2)". laravel.com. Retrieved August 30, 2014. 
  5. ^ a b Daniel Gafitescu (June 6, 2013). "Goodbye CodeIgniter, Hello Laravel". sitepoint.com. Retrieved December 21, 2013. 
  6. ^ Bruno Skvorc (December 28, 2013). "Best PHP Frameworks for 2014". sitepoint.com. Retrieved January 2, 2014. 
  7. ^ "Most popular and watched PHP projects". github.com. Retrieved August 30, 2014. 
  8. ^ Jeffrey Way (November 29, 2012). "Why Laravel is Taking the PHP Community by Storm". tutsplus.com. Retrieved December 21, 2013. 
  9. ^ "Laravel documentation (version 4.2): Package development". laravel.com. Retrieved August 30, 2014. 
  10. ^ "Eloquent ORM in Laravel: What and Why!". enukesoftware.com. Retrieved December 19, 2014. 
  11. ^ "Develop Faster with the Laravel PHP Framework". developer.com. Retrieved April 17, 2015. 
  12. ^ "Laravel documentation (version 4.2): Query builder". laravel.com. Retrieved December 19, 2014. 
  13. ^ "Migrations and Seeding". laravel.com. Retrieved 4-25-2015.  Check date values in: |accessdate= (help)
  14. ^ Manmeet Anand. "Creating a Contact Form in Laravel 5 Using the Form Request Feature!". tisindia.com. Retrieved March 2, 2015. 
  15. ^ "Userscape home page". userscape.com. Retrieved January 2, 2014. 
  16. ^ "Laravel documentation: Laracon". laravel.io. Retrieved January 2, 2014. 
  17. ^ "Laracon EU 2013". laracon.eu. Retrieved January 2, 2014. 
  18. ^ "Laracon EU 2014". laracon.eu. Retrieved August 30, 2014. 

External links[edit]