• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
PHP Laravel Framework'üne Dalış
 

PHP Laravel Framework'üne Dalış

on

  • 2,521 views

Özgür Web Günleri 2013'de yaptığım sunum. Üzerinden geçtiğimiz örnek uygulama: https://github.com/emir/OWG2013-Sample-Laravel-App Video kaydının linki eklenecektir.

Özgür Web Günleri 2013'de yaptığım sunum. Üzerinden geçtiğimiz örnek uygulama: https://github.com/emir/OWG2013-Sample-Laravel-App Video kaydının linki eklenecektir.

Statistics

Views

Total Views
2,521
Views on SlideShare
2,497
Embed Views
24

Actions

Likes
2
Downloads
19
Comments
0

1 Embed 24

https://twitter.com 24

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    PHP Laravel Framework'üne Dalış PHP Laravel Framework'üne Dalış Presentation Transcript

    • PHP LARAVEL FRAMEWORK’ÜNE DALIŞ
    • Emir Karşıyakalı Developer at EFabrika ! ! ! github.com/emir twitter.com/emirkarsiyakali linkedin.com/in/emirkarsiyakali ! emirkarsiyakali@gmail.com
    • Neden Laravel? • Composer • Symfony components • Routing • Communtiy • ORM (MySQL, Postgres, SQL Server, SQLite) • Red, green, refactor! (PHPUnit) • Authentication • Cache, Events, Queues • Blade Templating • CLI
    • “Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching.” –Taylor Otwell
    • Nasıl öğrenebilirim? • Dökümantasyon, API • Laracasts • Leanpub
    • Kurulum PHP >= 5.3.7
 MCrypt PHP Extension
 
 composer create-project laravel/laravel
    • MVC?
    • Routing • Route to closures • Route to controllers • Route to RESTful controllers • Route to Resources
    • Routing
    • Route Grup, Filtreler
    • Route Model Binding
    • Artisan • Komutları görüntüleme
 php artisan list • Geliştirme ortamını çalıştırma
 php artisan serve • Etkileşimli kabuk
 php artisan tinker • Controller üretmek
 index, create, store, show, edit, update, destroy
 php artisan controller:make
    • Artisan • Migration oluşturmak
 php artisan migrate • Database seeding
 php artisan db:seed • Kuyruğu dinlemek
 php artisan queue:listen • Route list
 php artisan routes • 3rd party, sizin geliştirmeleriniz
 php artisan whatever the hell you want.

    • Jeffrey’s Generator • Migrations • Scaffolding • Models • Test • Views • Pivot Tables • Forms • Seeds • Resources https://github.com/JeffreyWay/Laravel-4-Generators
    • Controllers • Controller Filters • RESTful Controllers (getProfile, postProfile)
 Route::controller • Resource Controllers
    • Views & Responses • Basic Responses
 Returning strings • Redirects
 Redirect::to('user/login')->with('message', 'Login Failed’); • Views 
 View::make('greeting', array('name' => ‘Emir')); • Special Responses
 Response::json, Response::download,
    • Errors & Logging • debug 
 app/config/app.php
 default => true • HTTP Exceptions
 app:abort(‘code’, ‘message’); • Logging (debug, info, notice, warning, error, critical, and alert.)
 Log::info(‘Lorem ipsum dolor sit amet.’);
    • Database • Running Queries
 DB::select(‘select * from users where id = ?', array(1)); • Query Builder
 DB::table('users')->where('name', ‘John')->first();

    • …Eloquent class Post extends Eloquent { }
    • Eloquent
 Selecting Records
    • Eloquent
 Inserting Records
    • Eloquent
 Inserting Records
    • Eloquent
 Updating, Deleting Records
    • MongoDB? MongoLid
 • 
 class User extends MongoLid {
 protected $collection = 'users'; 
 }
 
 https://github.com/Zizaco/mongolid-laravel

    • Questions?
    • Koding https://koding.com/Apps/laravel-1 https://github.com/emir/Laravel.kdapp
    • Teşekkürler!