Proven Package Patterns
summary
Spatie argues packages still win for hard, external or opinionated problems and shows concrete patterns: the URL AI Transformer reads pages, uses an AI prompt to generate JSON‑LD and stores results; instead of dozens of tiny config flags the package fires events so consumers hook in, lets users register custom models and jobs to change DB or queue behavior, and exposes action classes to swap low‑level HTTP headers or logic. These keep config small and tests simple.
AI-written summary · about
chapters (11)
- 0:00Introduction and Spatie overview
- 3:10Why Spatie packages succeed
- 7:02Package categories explained
- 8:25Demo of URL AI Transformer
- 12:35Avoiding config overload
- 14:40Using events for extensibility
- 15:23Custom models in packages
- 16:48Custom job queues
- 17:31Action classes for flexibility
- 20:42AI and package design importance
- 22:49Recap and closing
