Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Why to choose laravel framework?
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Bo-Yi Wu
March 09, 2016
Technology
0
72
Why to choose laravel framework?
Bo-Yi Wu
March 09, 2016
Tweet
Share
More Decks by Bo-Yi Wu
See All by Bo-Yi Wu
戰略轉變:從建構 AI 代理人到發展可擴展的技能生態系統
appleboy
0
210
The Smart Choice for Command-Line Image Resizing
appleboy
0
16
SSH for GitHub Actions
appleboy
0
75
打 造 A I 驅 動 的 G i t H u b ⾃ 動 化 ⼯ 作 流 程
appleboy
0
620
Connecting Your Worlds: A Guide to Integrating GitHub Actions and Jenkins
appleboy
0
96
From Natural Language to K8s Operations: The MCP Architecture and Practice of kubectl-ai
appleboy
0
1.2k
What’s MCP && Authorization?
appleboy
0
100
Building a Unified API Gateway for Secure and Scalable Cross-Cloud AI Service
appleboy
0
1.8k
Building MCP (Model Context Protocol) with Golang
appleboy
0
3.4k
Other Decks in Technology
See All in Technology
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
1
1.9k
量子クラウドサービスの裏側 〜Deep Dive into OQTOPUS〜
oqtopus
0
120
コスト削減から「セキュリティと利便性」を担うプラットフォームへ
sansantech
PRO
3
1.5k
日本の85%が使う公共SaaSは、どう育ったのか
taketakekaho
1
230
コミュニティが変えるキャリアの地平線:コロナ禍新卒入社のエンジニアがAWSコミュニティで見つけた成長の羅針盤
kentosuzuki
0
120
顧客の言葉を、そのまま信じない勇気
yamatai1212
1
360
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
仕様書駆動AI開発の実践: Issue→Skill→PRテンプレで 再現性を作る
knishioka
2
670
Greatest Disaster Hits in Web Performance
guaca
0
260
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
3.9k
Introduction to Bill One Development Engineer
sansan33
PRO
0
360
Digitization部 紹介資料
sansan33
PRO
1
6.8k
Featured
See All Featured
A designer walks into a library…
pauljervisheath
210
24k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
120
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.2k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Side Projects
sachag
455
43k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
180
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
910
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
280
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Transcript
為什麼選擇 Laravel Framework 2016.03.03 Bo-Yi Wu
關於我 • Blog: https://blog.wu-boy.com/ • Github: https://github.com/appleboy
PHP 這麼多套 Framework 為什麼要選 Laravel
http://www.sitepoint.com/best-‐php-‐framework-‐2015-‐sitepoint-‐survey-‐results/ The Most Popular Framework of 2015
選框架就要看作者是誰
Laravel Framework • 目前由 Taylor Otwell 負責開發及維護 – 5.1 開始支援 LTS
Release • bug fixes are provided for 2 years • security fixes are provided for 3 years
Open Source 最怕的就是後續無人維護
對於 Laravel Framework 開發者不用擔心後續維護問題
None
PHP有無套件管理系統
所有第三方套件都用 composer 來管理 https://getcomposer.org
http://packalyst.com/
團隊Coding Style制定
2014/02/22 Apple iOS bugs goto fail; 低級 bugs https://www.imperialviolet.org/2014/02/22/applebug.html
專案遵守 PHP-FIG 規範 http://www.php-fig.org
PHP-FIG • 建議開發前請先閱讀底下規範 – Basic Coding Standard (PSR-1) – Coding Style Guide
(PSR-2) – Autoloading Standard (PSR-4)
良好的 Coding Style 可以讓同事減少 Review 時間
開發環境流程 每次開發新專案前,都要浪費很多時間在建置環境 MySQL, Nginx, Redis, PHP, Node … 前端,後端都有
還有 OS 環境要解決 Linux, Windows, MacOSX 還沒處理完一天時間就過了
Laravel Homestead 不用在個人電腦架設任何環境
Laravel Homestead • Ubuntu 14.04 • Git • PHP 7.0
• HHVM • Nginx • MySQL • Sqlite3 • Postgres • Composer • Node (With PM2, Bower, Grunt, and Gulp) • Redis • Memcached • Beanstalkd https://laravel.com/docs/5.2/homestead
Laravel Routing • 所有 Routing Path 寫到同一檔案 (方便偵錯) – CSRF Protection
– Route Groups – Route Model Binding
None
Laravel Service Laravel 提供完整的第三方服務
Laravel Service • Authentication (帳號登入) • Authorization (權限管理) • Artisan
Console (專案 command line tool) • Cache (Memcached and Redis) • Localization (多國語言) • Mail (SMTP, Mailgun, Mandrill, Amazon SES) • Pagination (分頁管理)
Laravel Service • Queues (database, Beanstalkd, Amazon SQS, Redis, and
synchronous (for local use) driver) • Task Scheduling (排程管理) • Testing (後端邏輯測試) • Validation (資料驗證)
Laravel Elixir 前端與後端互相合作的好工具
Laravel Elixir • Less, Sass, PostCSS, Plain CSS • Coffee
Script, Browserify, Babel, Scripts • Versioning / Cache Busting • BrowserSync
Database Migration $ php artisan make:migration create_users_table $ php artisan
migrate $ php artisan migrate:rollback
Database Migration • 不用寫任何 SQL 語法 • 用日期記錄 SQL 操作
• 不用管 DataBase 為 MySQL, Postgres, MSSQL …
None
Laravel ORM simple ActiveRecord implementation for working with your database
Eloquent ORM • 好用的 ORM 減少開發者寫 SQL 時間 – One to
One – One to Many – Many to Many
學習資源 • 線上影音教學網站: https://laracasts.com • 台灣線上文件: https://laravel.tw/ • 台灣
FB 討論區: https://goo.gl/UwRLGu • 社群整理文件: http://bit.ly/laraveltw-resource