cenário atual do php e introdução ao laravel no devinvale 2014

Download Cenário atual do PHP e Introdução ao Laravel no Devinvale 2014

Post on 18-Jul-2015

668 views

Category:

Technology

1 download

Embed Size (px)

TRANSCRIPT

  • Desenvolvimento PHP com Laravel

    por @juliobitencourt

  • /about/juliobitencourt

    Programador desde 1998 Empresrio por 10 anos Coordenador de Marketing Digital

    @netscandigital

  • /agenda

    Histria e Cenrio atual do PHP PHP-Fig & Composer Laravel - PHP that doesnt hurt QA

  • Personal Home Pages Tools

    Criada por Rasmus Lerdof como um CGI em 1994

    1995 Open Source Reescrita do core aps a verso 3.0 (Zeev e

    Andi - Zend Engine). 4.0 baseado nesta engine

    Verso 5 lanada em 2004

  • O PHP ganha popularidade

    2002 - Wikipedia escrita em PHP 2003 - nasce o WordPress 2004 - nasce o Facebook 2005 - nasce o Youtube

  • WHO RUN THE WORLD?

  • Os sobrinhos pira!

  • HATERS

    PHP: a fractal of bad designhttp://hope.ly/12XGj0U

    PHP Sucks, But It Doesn't Matterhttp://hope.ly/12XGQQo

  • PHPSucks

  • PHPSuck

    doesntanymore!

  • A Ressureio

    GoPHP5 Composer e PHP FIG PSR-0 / PSR-4

    curl -sS https://getcomposer.org/installer | phpmv composer.phar /usr/local/bin/composer

  • Packagist

  • Composer

    composer create-project laravel/laravel your-project-name --prefer-dist

    Instalando o Laravel

  • Composer

    Instalando um pacote

    $ composer require fzaninotto/faker

    Instalando todas as dependncias (composer.json)

    $ composer install

    .gitignore /vendor

  • First things first

    SOLID Principles Object Calisthenics TDD

  • /laravel

    Ioc Container Symphony Components (PHP FIG!) Red, Green, Refactor

  • /laravel

    Artisan RESTful Routing Eloquent

  • Routing

  • php artisan routes

  • /database

    Drivers: MySQL, Postgres, SQL Server, SQLite

    Eloquent ORM Migrations

  • /eloquent

    CRUD operations Soft Deleting Relationships Eager Loading

    http://laravel.com/docs/4.2/eloquent

  • CRUD

  • CRUD

  • tt

    Profile Class. Belongs to a UserRelationships

  • User Class. Has a ProfileRelationships

  • Migrations

    php artisan migrate

  • Blade

  • tOutro layout

  • /tools

    Homestead Forge

  • /community

    www.laravel.com.br www.laravel.io www.laracasts.com

    https://twitter.com/laracasts/lists/influential-laravel-devs

  • /L5

    Laravel 5 previsto para Janeiro de 2015 :)

  • /obrigado

    @juliobitencourt

Recommended

View more >