《From Apprentice To Artisan》這本書是 Laravel 作者 Taylor Otwell 寫的,裡面詳細介紹了 Laravel 框架涉及的各種軟體理念和工具,如DI、IoC、SOLID等。
最近才發現這本書,本想著手翻譯,才發現有大神在三年前就翻譯好了,所以只貼個目錄在這兒吧~
英文正版連結:https://leanpub.com/laravel
zgldh 大神翻譯的中文版連結:https://my.oschina.net/zgldh/blog/389246
huanghua581 大神製作的 Gitbook 版:https://huanghua581.github.io/FATA/
目錄
- Dependency Injection 依賴注入
- The Problem 遇到的問題
- Build A Contract 建立約定
- Take It further 更進一步
- Too Much Java? 太像Java了?
- The IoC Container 控制反轉容器
- Basic Binding 基礎繫結
- Reflective Resolution 反射解決方案
- Interface As Contract 介面約定
- Strong Typing & Water Fowl 強型別和小鴨子
- A Contract Example 約定的範例
- Interface & Team Development 介面與團隊開發
- Service Provider 服務提供者
- As Bootstrapper 他是載入程式
- As Organizer 作為管理工具
- Booting Providers 服務提供者的啟動過程
- Providing The Core 核心也是服務提供者的模式
- Application Structure 應用結構
- Introduction 介紹
- MVC Is Killing You MVC是慢性謀殺
- Bye, Bye Models 再見,模型
- It's All About The Layers 核心思想就是分層
- Where To Put "Stuff" 東西都放哪兒?
- Applied Architecture: Decoupling Handles 實用做法:解耦處理函式
- Introduction 介紹
- Decoupling Handlers 解耦處理函式
- Other Handlers 其他處理函式
- Extending The Framework 擴充套件框架
- Introduction 介紹
- Managers & Factories 管理者和工廠
- Cache 快取
- Session 會話
- Authentication 身份認證
- IoC Based Extension 使用容器進行擴充套件
- Request Extension 請求的擴充套件
以下是 SOLID 的講解。
- Single Responsibility Principle 單一職責原則
- Introduction 介紹
- In Action 實踐
- Open Closed Principle 開放封閉原則
- Introduction 介紹
- In Action 實踐
- Liskov Substitution Principle 里氏替換原則
- Introduction 介紹
- In Action 實踐
- Interface Segregation Principle 介面隔離原則
- Introduction 介紹
- In Action 實踐
- Dependency Inversion Principle 依賴反轉原則
- Introduction 介紹
- In Action 實踐
本作品採用《CC 協議》,轉載必須註明作者和本文連結
原創。 所有 Laravel 文章均已收錄至 Github laravel-tips 專案。