Proven Package Patterns
summary
Spatie is a 12‑person team with nearly 3 billion downloads across ~300 packages; a holidays package got ~100 PRs in its first week. The built example is Laravel URL AI transformer: it fetches page HTML, pipes content to Laravel AI transformers, stores LD+JSON results in a database, and runs transformations on queues (demo pre-run to avoid flaky AI). Recommended patterns: fire events, allow configurable model/job/action classes, and avoid lots of tiny config flags.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:09About Spatie and packages
- 5:13Do we still need packages?
- 10:07Laravel URL AI transformer demo
- 14:57Handling package flexibility
- 24:44Patterns for AI-friendly code
- 26:52Summary and Q&A








