readme.md 1.46 KB
Newer Older
1
# [Laravel](http://laravel.com) - A PHP Framework For Web Artisans
2

3 4 5 6
Laravel is a clean and classy framework for PHP web development. Freeing you
from spaghetti code, Laravel helps you create wonderful applications using
simple, expressive syntax. Development should be a creative experience that you
enjoy, not something that is painful. Enjoy the fresh air.
7

8
[Official Website & Documentation](http://laravel.com)
Taylor Otwell committed
9

10
## Feature Overview
Taylor Otwell committed
11 12 13 14 15 16 17 18 19 20

- Simple routing using Closures or controllers.
- Views and templating.
- Driver based session and cache handling.
- Database abstraction with query builder.
- Authentication.
- Migrations.
- PHPUnit Integration.
- A lot more.

21
## A Few Examples
Taylor Otwell committed
22

23
### Hello World:
Taylor Otwell committed
24

25 26 27 28 29 30 31 32
```php
<?php

Route::get('/', function()
{
	return "Hello World!":
});
```
Taylor Otwell committed
33

34
### Passing Data To Views:
Taylor Otwell committed
35

36 37 38 39 40 41
```php
<?php

Route::get('user/(:num)', function($id)
{
	$user = DB::table('users')->find($id);
Taylor Otwell committed
42

43 44 45
	return View::make('profile')->with('user', $user);
});
```
Taylor Otwell committed
46

47
### Redirecting & Flashing Data To The Session:
Taylor Otwell committed
48

49 50 51 52 53
```php
<?php

return Redirect::to('profile')->with('message', 'Welcome Back!');
```
Taylor Otwell committed
54

55
## Contributing to Laravel
Taylor Otwell committed
56

57 58 59
Contributions are encouraged and welcome; however, please review the Developer
Certificate of Origin in the "license.txt" file included in the repository. All
commits must be signed off using the `-s` switch.
Taylor Otwell committed
60

61 62 63
```bash
git commit -s -m "this commit will be signed off automatically!"
```
Taylor Otwell committed
64

65
## License
Taylor Otwell committed
66 67

Laravel is open-sourced software licensed under the MIT License.