Passbolt's Bread and Butter
summary
Passbolt uses CakePHP for its API and shows concrete wins: dependency injection to swap filesystem adapters lets the Cloud and Community builds share controllers while injecting Google Cloud or local storage for fast tests; pagination changes that avoid a second COUNT plus disabling Entity hydration cut large queries by ~20–30%; switching to a vanilla DateTime type cuts ~40% on big responses; test setup uses fixture factories with a selectQuery mock and a “test s light” trait to speed and inspect DB-backed tests.
AI-written summary · about
chapters (7)
- 0:00Introduction and overview
- 1:23Dependency injection at Passbolt
- 9:16Using events in CakePHP
- 12:48Performance optimizations
- 20:38Test fixture factories
- 27:03Database testing improvements
- 30:58Conclusion and resources








