Upgrade to Pro — share decks privately, control downloads, hide ads and more …

選一個框架當好朋友,讓您成為開心攻城獅

 選一個框架當好朋友,讓您成為開心攻城獅

於 2014/11/27 受邀於 彰化師範大學 資訊工程學系系學會 分享 Laravel Framework,主題分為三段:

1. 選一個框架當好朋友,讓您成為開心攻城獅 (本投影片)
2. 使用 Laravel 的前與後 (https://speakerdeck.com/shengyou/shi-yong-laravel-de-qian-yu-hou)
3. 成為全能 PHP 攻城獅 (https://speakerdeck.com/shengyou/cheng-wei-quan-neng-php-gong-cheng-shi)

Shengyou Fan

November 27, 2014
Tweet

More Decks by Shengyou Fan

Other Decks in Programming

Transcript

  1. መ࡞໛ٖ • ໛ٖመ࡞Ұݸ Blog ሢ୊࡞ۀ - መ࡞Ұݸ؆қత Blog ໢᜾ -

    㑌ҰἫจষ౎ՄҎᓤሱԙ๭Ұݸ෼ྨ - ࡾछఄݱํࣜɿ័᧸ɺ෼ྨɺᄸҰ - ྻදܕท໘ࢧԉ෼ทᖣ᧸ ༗ᘋ໰౴ɿ؆ड़䓟త࡞๏
  2. ֤ग़حট • WAMPɺXAMPPɺEasyPHPɺAppServ • Microsoft Web Platform ҆᧋แ • PHP

    + MySQL + Apache ᘐཱ҆᧋/ઃఆ • (Mac) MAMPɺHomebrewɺܥ౷㚎ݐ • (Linux) apt-getɺcompiled from source
  3. ڠಉ߹࡞ • ަ׵ሢ୊䈕Ҋ - ೺ݪ࢝䈕༻ zip ଧแɼ༻ email ަ׵ʀ҃ ੋ௚઀ڞڗҰݸ

    Dropbox ࢿྉᇄ - ኺ ላ௕A ಹᬑ፤౸Ұแၚ㘸த௒޷༻త ࢿྉݿ࿈ઢ Class - ኺ ላ௕B ಹᬑ፤౸Ұแᡒ㘸໵኷޷༻త ᒬ൘޻۩แ
  4. ҆શੑత໰୊ • શ෦ఔࣜᛰ౎ࡏ Document Root ఈԼɼ⃧ Ճݪ࢝ᛰമ࿐෩ᯃ • ࢿྉݿతૢ࡞શ෦ᯪḤሜ SQL

    ޠ๏ɼ׌ ᔒ༗ઃఆሣጯత҆શػ੍ɼ༰қड౸߈㐝 • දᄸၚૹᔒ༗ሣ csrf ਐߦ๷ڔɼ༰қඃՄ ೳత߈㐝 try ౸ ๞/ሞ…
  5. ؃ࣅ؆ᄸჟෆ؆ᄸ • Ұݸ໢࿏ጯ༻ఔࣜཁ႔ཧత޻࡞༗ɿ Ṗ೭ԻɿԿෆ༻ᐽՍʁ - ࿏༝ Route - ท໘ᬓा߇੍ -

    DB ૢ࡞ - 㗞ग़ท໘ - ҆શੑ๷ڔ - AJAX ႔ཧ - ࢿྉ෼ท - ࢖༻ऀೝᨽ - ࡨޡ႔ཧػ੍ - دᚙ Email
  6. PaaS 䆋ॺ • Ұൠৗݟత໢࿏ओػԟԟੋ ڞڗओػ (shared hosting)ɼ။༗ PHP ൛ຊաᢜɺࢿ ݯڞ᎖ɺແ๏҆᧋ֹ֎౟݅త᠍ᴍ

    • ࢖༻ PaaS త෰຿ɼᩋ㟬୞धཁሢ஫ࡏఔ ࣜ։ᚙଈՄɼओػ҆᧋ɺઃఆɺᎷॆɺྲྀ ྔ౳౎ՄҎ༝ฏ୆௚઀㢨䓟׬੒
  7. Laravel Framework • ༝ Taylor Otwell ओಋ։ᚙɼ໨લ 4.2 ൛ɿ -

    ჩߟ Ruby on RialsɺASP.NET MVC ٴ Sinatra తޠ๏࿨Սߏ - େྔ࢖༻ Symfony ݩ݅ɼݐཱݎመతᐽ Սجૅ - ༬ఆ 2014.12 ᚙ䆋 5.0 ൛
  8. ֩৺ཧ೦ ޠ๏؆ᄸ༏ඒతɼ ᩋ։ᚙऀ༇շత PHP ᐽՍʂ Happy developers make the best

    code. ˒ ჩߟࢿྉɿhttp://laravel.com/docs/4.2#laravel-philosophy
  9. બᎩ Laravel తݪҼ • ؆ᄸɺਗ਼ુɺࣗզදୡతᐽՍݩ݅ • ׭ํจ݅׬੔ਗ਼ુɺ૬᮫ላशࢿݯ׬੔ • ࡞ऀఆظᚙ䆋৽൛ •

    ᪑্ைྲ਼ྀ੎త։ᚙ޻۩/౟݅ • ၚڭ࢜ଟɺࣾ܈େ • ੜଶܥ׬੔ɺ ૬᮫౟݅ଟ
  10. બᎩ Laravel తݪҼ • ᐽՍݩ݅ຊ਎۩උ؆ᄸɺਗ਼ુɺࣗզදୡ తಛ࣭ɼ࡞ऀ೗ੋ㘸ɿ - It’s expressive -

    It’s simple - It’s accessible ˒ ჩߟࢿྉɿhttp://taylorotwell.tumblr.com/post/21038245018/why-laravel
  11. બᎩ Laravel తݪҼ • ׭ํจ݅׬੔ਗ਼ુ • আྃ׭໢্ఏڙతݪจ൛ • ݱࡏؐ༗ࣾ܈ਖ਼ᱪதจ൛ •

    ૬᮫ላशࢿݯଟ • Մࡏ leanpub ্༻ laravel ᙛ᮫伴ࣈ查 ˒ ׭ํจ݅ɿhttp://laravel.com/docs/4.2 ˒ ჩߟॻ੶ɿhttp://www.laravel-dojo.com/books
  12. બᎩ Laravel తݪҼ • ᪑্ைྲ਼ྀ੎త։ᚙ޻۩/౟݅ - homestead (㐘ٖػث) - socialite

    (հ઀֤छ oauth ೝᨽ) - cashier (੔߹ Stripe గ㕕ܕۚྲྀ෰຿) - elixir (႔ཧલ୺ assets తẂۚ᥂)
  13. બᎩ Laravel తݪҼ • ၚڭ࢜ଟ - ֤ํେਆ౤ೖ Laravel ։ᚙ޻࡞ (Cool

    kids are in the community!) • ࣾ܈େ - 2013 ೥࠷डᓣܴᐽՍ - Github ࠷ଟ᮫஫ PHP ᐽՍ ˒ ჩߟࢿྉɿhttp://laravel-news.com/category/the-artisan-files/ ˒ ჩߟࢿྉɿhttp://taylorotwell.com/on-community/
  14. Github ࠷ड᧺஫ Laravel ੋ Github ্࠷ଟ੕੕త PHP ᐽՍ ˒ Github

    ፺ਘɿhttp://bit.ly/1t1qsEz ˒ Wikipedia ل㑚ɿhttp://en.wikipedia.org/wiki/Laravel#cite_note-7