A guide to bootstrapping a PHP application without a full-stack framework like Laravel or Symfony. Using a single bootstrap.php file, Composer autoloading, vlucas/phpdotenv for configuration, and a PSR-11 compliant league/container with autowiring, the approach wires services together cleanly. The same bootstrap is shared across four entry points: web (Slim), CLI (Symfony Console), standalone scripts, and PHPUnit tests. The author argues this gives developers full ownership of dependencies, easier upgrades, and no coupling to a framework's release cycle.
Table of contents
Anatomy of bootstrap.php #Four Ways to Invoke the Application #Longevity and Responsibility #1 Comment
Sort: