Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

[PHPConf Taiwan 2015] 跟著 Laravel 5.1 一起成為更好的 PHP 開發者

10.225 Aufrufe

Veröffentlicht am

自 Laravel 5.0 以降,官方讓 Laravel 陸續依循更多 PSR 標準規範、實作多項設計模式、整合更多前端特色,而針對高效能也推出 Lumen 輕量框架來滿足不同層面的開發需求。本講題將討論 Laravel 5.1 針對各項開發工作提出對應的解決方案,並鼓勵開發者從使用框架的過程中學習其精華,提升自我職能以成為更好的 PHP 開發者。

Veröffentlicht in: Technologie
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • Njce! Thanks for sharing.
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier

[PHPConf Taiwan 2015] 跟著 Laravel 5.1 一起成為更好的 PHP 開發者

  1. 1. 跟著 Laravel'5.1 一起 成為更好的 PHP 開發者 5.1 PHPConf'Taiwan'2015 2015/10/9 名 'Shengyou'Fan
  2. 2. 范聖佑 @shengyou http://shengyoufan.com https://www.facebook.com/shengyoufan 得寬科技 研究員 Laravel 台灣 傳教士 Laravel Dojo 作者
  3. 3. Questions/ˈkwɛs'tʃən/ 常見疑問 (Frequency) 性http://nos.twnsnd.co/image/108924593125
  4. 4. 技術討論區最常出現的 三大月經文…
  5. 5. PHPConf'Taiwan'2015 得能著
  6. 6. PHPConf'Taiwan'2015 性http://www.geocaching.com/geocache/GC5BJ10_the-matrix
  7. 7. PHPConf'Taiwan'2015
  8. 8. TL DR 不是要來引戰的,不過… ;
  9. 9. PHPConf'Taiwan'2015 得能著 性http://w3techs.com/technologies/overview/programming_language/all (PHP 嗎 ) PHP
  10. 10. PHPConf'Taiwan'2015 性 http://matrix.wikia.com/wiki/Rescue_of_Morpheus ( 我真 很 ^.< )
  11. 11. PHPConf'Taiwan'2015 (2015 ) 性 http://www.sitepoint.com/best-php-framework-2015-sitepoint-survey-results/ Laravel
  12. 12. History/ˈhɪs'tri/ 血淚史 性http://nos.twnsnd.co/image/101262858376
  13. 13. PHPConf'Taiwan'2015 (起 ) 友 們 Laravel 年 啊 更 … Aug. 2013 ~ Laravel Symfony Phalcon 已 可 次 Jun. 2013 MVC 的 Ruby on Rails ASP.NET MVC Node.js, Sails.js Python, Django Java, Play 成 愛 下 您 Feb. 2010 Codeigniter MVC 的 得來 的 Oct. 2009 Pure PHP 得來 .php ⼤大享 ~ Mar. 2009
  14. 14. Why Laravel? 為何選擇 Laravel?
  15. 15. PHPConf'Taiwan'2015 Laravel 5.1 • 有⼿手 年 Laravel 5.1 性 - Feature - 能 - Standard - 對 - Workflow - - Ecosystem - (Language)
  16. 16. Feature/ˈfi'tʃər/' 語法特色 (Language) 性https://www.flickr.com/
  17. 17. PHPConf'Taiwan'2015 才 的 • PHP 5.4 Sep. 2015 以學 活 PHP PHP 5.5 PHP 時與 經性http://php.net/supported-versions.php
  18. 18. PHPConf'Taiwan'2015 • PHP 能 性 - PHP 5.3 - Namespaces - PHP 5.4 - []但Traits但Built-in web server - PHP 5.5 - Generators - PHP 5.6 -Variadic functions via …但phpdbg - PHP 7 - Performance++ 同
  19. 19. PHPConf'Taiwan'2015 ( ) PHPUnit 5.0 性https://github.com/sebastianbergmann/phpunit/ wiki/Release-Announcement-for-PHPUnit-5.0.0 PHPUnit 性https://twitter.com/ JeroenDeDauw/status/649825871533109248 PHPUnit 5.0 時與 PHP 5.6
  20. 20. PHPConf'Taiwan'2015 Laravel New PHP {' ''"name":'"laravel/laravel",' ''/*'全'*/' ''"require":'{' ''''"php":'">=5.5.9",' ''''/*'全'*/' ''},' ''/*'全'*/' } Laravel 5.1 composer.json 性http://laravel.com/docs/5.1/ releases#laravel-5.1 Homestead PHP 7 性http://laravel.com/docs/5.1/ homestead#upgrading-to-php-7 性https://laravel-news.com/2015/10/ homestead-now-with-php-7-support/
  21. 21. PHPConf'Taiwan'2015 Laravel PHP 5.3 Laravel 5.0 Application Code Namespaces
  22. 22. PHPConf'Taiwan'2015 Laravel PHP 5.4 Laravel 性http://laravel.com/docs/5.1/eloquent#soft-deleting
  23. 23. PHPConf'Taiwan'2015 Laravel PHP 5.5 都 github 來 https://github.com/laravel/laravel/blob/v5.0.22/config/app.php 都 github 來 https://github.com/laravel/laravel/blob/v5.1.11/config/app.php Laravel 5.0 providers 喜 Laravel 5.1 providers 喜
  24. 24. PHPConf'Taiwan'2015 Laravel Design Pattern • MVC (Model -View - Controller) • Dependency Injection • IoC (Inverse of Control) Container • … 想在 Yish 性https://laraveltw.hackpad.com/PHP-rDP6MbkvsH7
  25. 25. PHPConf'Taiwan'2015 能 • PHP 5.5.9 能 - PHP 5.3 - Namespaces - PHP 5.4 - Trait但Square bracket array syntax - PHP 5.5 - Class name resolution via ::class • Design Pattern 候 - MVC - Dependency Injection - IoC Container
  26. 26. Feature'Laravel' 的'PHP但 能 想 然得 語法特色 (Language) 性https://www.flickr.com/
  27. 27. Standard/ˈstæn'dərd/' 業界標準 性http://nos.twnsnd.co/image/96545399188
  28. 28. PHPConf'Taiwan'2015 Laravel Illuminate • PHP 多 ⼦子 2009 php|tek 最 PHP-FIG 裡 得 PHP 三道 之 • Laravel 讓 PHP-FIG 活 ⽣生最 為 Illuminate 樂 Starter Package Composer 前 $'composer'create[project'laravel/laravel'[[prefer[dist ( Composer 最 Laravel skeleton)
  29. 29. PHPConf'Taiwan'2015 Laravel Autoload {' ''''"name":'"laravel/laravel",' ''''/*'全'*/' ''''"autoload":'{' ''''''''"classmap":'[' ''''''''''''"database"' ''''''''],' ''''''''"psr[4":'{' ''''''''''''"App":'"app/"' ''''''''}' ''''},' ''''/*'全'*/' } Laravel 5.1 composer.json
  30. 30. PHPConf'Taiwan'2015 Laravel Style Guide • ⽤用 能 會 性 - 也 PHP 得來 也 得來 性 但 也但 … • Laravel 性 - Laravel 4 別把 PSR-1 能 會 - Laravel 5.1 PSR-2 別把 對 性http://laravel.com/docs/5.1/contributions#coding-style
  31. 31. PHPConf'Taiwan'2015 到 • 到 Coding Style 網 ⼒力 會 對 - squizlabs/php_codesniffer - fabpot/php-cs-fixer ⽇日 得來 對 我 性http://oomusou.io/2015/09/23/php-coding-standard/
  32. 32. PHPConf'Taiwan'2015 對 • Illuminate 愛 然得 (Laravel 4.0) • PSR-4 Autoload (Laravel 5.0) • 得來 PSR - 1 能 之 (Laravel 4.2) • 得來 PSR - 2 能 之 (Laravel 5.1) (Symfony Component) (Laravel 4.2 ⻑⾧長 PSR-0 Autoload PSR-0 活 )
  33. 33. Standard別把 對 也 得來 ⾼高 業界標準 性http://nos.twnsnd.co/image/96545399188
  34. 34. Workflow/ˈwɜrkˌfloʊ/ 工作流程 性https://www.flickr.com/
  35. 35. PHPConf'Taiwan'2015 還 ⼦子 ⽇日 最 今 點和 將 如 如 放可 事 PHP 如 得來 將 發 發 得來 開發 ⽇日 也發 得來 事 如 發 也要 發 將 公 公 但 但 得 得來 公 將
  36. 36. PHPConf'Taiwan'2015 不 Mac Windows Linux 回 ⼼心但 裡
  37. 37. PHPConf'Taiwan'2015 Laravel VMs Mac Windows Linux 今 ⼼心 Homestead Homestead Homestead
  38. 38. PHPConf'Taiwan'2015 如 不 • Composer create[project 了… • A 也 要 B 性 - 三道 MUST - 錯 家 - 也了 所 得 家 • API
  39. 39. PHPConf'Taiwan'2015 Laravel Composer • 新 Laravel 也 Package 性 - laravel/installer - laravel/socialite - laravel/cashier - laravel/spark-installer (alpha) - laravel/lumen
  40. 40. PHPConf'Taiwan'2015 如 不 • 間 性 - 新 Bootstrap但Font Awesome但jQuery… - CSS 也 LESS但SASS… - JS 也 CoffeeScript但TypeScript但ES6… - 但 但 現加 … - 公 Cache … 我主 也 PHP…
  41. 41. PHPConf'Taiwan'2015 Laravel Elixir Elixir 知 gulpfile.js var'elixir'='require('laravel[elixir');' elixir(function(mix)'{' ''''mix.functions();' }); package.json {' ''''"private":'true,' ''''"devDependencies":'{' ''''''"gulp":'"^3.8.8"' ''''},' ''''"dependencies":'{' ''''''"laravel[elixir":'"^3.0.0",' ''''''"bootstrap[sass":'"^3.0.0"' ''''}' } Assets 如 但現加
  42. 42. PHPConf'Taiwan'2015 發 出 • 發 的 也發 • 發 得 性 - Unit Testing - Functional Testing - Acceptance Testing • 發 出 性 - TDD - BDD
  43. 43. PHPConf'Taiwan'2015 Laravel Testing {' ''''"name":'"laravel/laravel",' ' "require[dev":'{' ' ' "fzaninotto/faker":'"~1.4",' ' ' "mockery/mockery":'"0.9.*",' ' ' "phpunit/phpunit":'"~4.0",' ' ' "phpspec/phpspec":'"~2.1"' ' },' '''/*'全'*/' } Laravel 5.1 composer.json var'elixir'='require('laravel[elixir');' elixir(function(mix)'{' ''''mix.phpUnit();' }); Laravel 5.1 gulpfile.js $'gulp'tdd public'function'testTddExample()' {' '''/*'也發 '*/' }
  44. 44. PHPConf'Taiwan'2015 發 機做… Laravel Homestead ⼩小 $ gulp tdd 我 性http://oomusou.io/2015/09/27/tdd-gulp-homestead/ $ gulp tdd ⾃自⾒見看 麼 我 性http://yish.im/2015/09/24/AutoTest-in-PHP/ 都 ⼜又 發 性 http://oomusou.io/2015/09/20/tdd-jaceju/ http://blog.winwu.today/2015/09/php-tdd.html https://goo.gl/ejELDG http://chan15.blogspot.tw/2015/09/php-mockery.html https://goo.gl/unrA2X http://yish.im/2015/09/24/AutoTest-in-PHP/ http://blog.tinymao.com/2015/09/24/php-tdd/
  45. 45. PHPConf'Taiwan'2015 公 • ⼈人 回 / 因 因 公 因 因 實 • git但Composer但Gulp ⽇日 中種… • ⽇日 公 但 過但 ⾛走 DevOps性世 對 就性http://www.slideshare.net/warfan/devops-53161280
  46. 46. PHPConf'Taiwan'2015 Laravel Automation Local $'envoy'run'deploy Server'3Server'1 Server'2 Cloud'Servers @servers(['web''=>''192.168.1.1'])' @task('deploy','['on''=>''web'])' ''''cd'site' ''''git'pull'origin'{{'$branch'}}' ''''php'artisan'migrate' @endtask Envoy.blade.php
  47. 47. PHPConf'Taiwan'2015 什 如 如 $'gulp'tdd 發 出 $'envoy'run 公
  48. 48. PHPConf'Taiwan'2015感 - iNDIEVOX 地 過⼆二
  49. 49. Workflow 等 工作流程 性https://www.flickr.com/
  50. 50. Ecosystem/ˈɛk'oʊˌsɪs'təm'/ 生態圈 性http://picography.co/photos/dark-forest/
  51. 51. - 某 rails 前輩 我選的不是語言、不是框架, 而是一個生態圈。
  52. 52. PHPConf'Taiwan'2015 上 • ( 再但API ) • LTS 本 (5.1 Laravel LTS) • ⽇日 (homestead, forge, envoyer) • 本 (socialite, casher, spark, lumen…) • (laravel.io) • Podcast (The Laravel Podcast) • 我 (laracast.com) • Laracon US但Laracon EU
  53. 53. PHPConf'Taiwan'2015⽚片性http://packalyst.com/
  54. 54. PHPConf'Taiwan'2015Socialite ⽚片性 http://socialiteproviders.github.io/
  55. 55. Laravel 台灣 致力在台灣推廣 Laravel Framework 並 建立專屬的正體中文社群,目前已完成 官方文件的翻譯,每月有三次固定的聚 會活動。 https://goo.gl/h2m5Tq' Guys!'We'did'a'great'job!
  56. 56. PHPConf'Taiwan'2015三點 性 https://www.facebook.com/groups/laravel.tw/ Facebook 三點
  57. 57. PHPConf'Taiwan'2015 Laravel ⼼心 性 http://laravel.tw/
  58. 58. PHPConf'Taiwan'2015 PHP ⼼心 Slack 性https://phptw.slack.com/ 性http://join-slack.phptw.org/
  59. 59. 2015 COSCUP Workshop Laravel Installfest
  60. 60. TDD/BDD 工作坊 Laravel 台灣在 2015 年 9 月中首次舉 辦以 TDD/BDD 為主題的測試工作坊, 開放 25 位學員參與,由 大澤木小鐵 主 講如何使用 PHP 應用 TDD 及 BDD 做 開發。 ⼜又後
  61. 61. 2015/09/19 - 20 工作坊活動現場
  62. 62. 2015/09/19 - 20 工作坊活動現場
  63. 63. PHPConf'Taiwan'2015 10 三道 • Laravel ⼼心 ⼼心 - 性2015/10/25 ( ) PM 1:00 ~ 5:00 - 性Dreamseeds • 性 - 三道 - 性Laravel Tracy 快 事 做⾯面 - 這 就 去 很 三點 Recca Tsai (⼼心 理沒每 可 262 )
  64. 64. PHP 也有 Day 台北的 PHP 開發者聚會,每月固定會有 一次的分享講座,邀請有經驗的開發者 前來分享開發經驗。 https://goo.gl/rzEFuE' Ricky!'We'love'you~
  65. 65. PHP Day #19 PHP 頭當 ⼀一 然得
  66. 66. Laradiner PHP/Laravel 的讀書會,目前每月固定 舉辦兩次,歡迎對 PHP/Laravel 有興趣 的朋友參與。 https://goo.gl/AmiWG7 Sam,'you'are'awesome!
  67. 67. Laradiner #15 From Apprentice To Artisan 道⼰己
  68. 68. PHPConf'Taiwan'2015 Modern PHP ⼰己 (Laradiner ⼰己在 ) https://goo.gl/LUc2IG' 三道 好 ⼰己 分 個 ⼰己 作 hackpad ⽚片
  69. 69. PHPConf'Taiwan'2015 From Apprentice To Artisan ⼰己 (Laradiner ⼰己在 ) https://goo.gl/FF9Qbc' 三道 好 ⼰己 分 個 ⼰己 很 Facebook 三點 Events
  70. 70. PHPConf'Taiwan'2015 Laravel 性 http://www.laravel-dojo.com/
  71. 71. PHPConf'Taiwan'2015 來 性 http://www.laravel-dojo.com/opensource/wagon wagon - Laravel
  72. 72. PHPConf'Taiwan'2015天 性 http://www.laravel-dojo.com/showcases
  73. 73. PHPConf'Taiwan'2015 Laravel 2014/12 2015/05 2015/07 我⾏行 性 http://www.laravel-dojo.com/workshops
  74. 74. PHPConf'Taiwan'2015 11/14 Laravel 去 性http://class.ithome.com.tw/laravel/
  75. 75. PHPConf'Taiwan'2015 Laravel You Laravel PHP Slack Laravel
  76. 76. Ecosystem 第 動⽅方 於 歡定 生態圈 性http://picography.co/photos/dark-forest/
  77. 77. Conclusions/kənˈklu'ʒən/ 回顧與總結 (Recap)
  78. 78. PHPConf'Taiwan'2015 ⼿手 • 年 得能著 • 想 • 年 Laravel (5.1) - - - -
  79. 79. 給 Laravel 5.1 一個機會 讓它陪著您一起成長!
  80. 80. PHPConf'Taiwan'2015 From apprentice to artisan 性http://www.theforce.net 真 太是⽂文 只得
  81. 81. 放膽成為藝術家! and become an artisan Code Happy!
  82. 82. PHPConf'Taiwan'2015 Q & A 相 這

×