Bootstrap

The bootstrap concept generally means starting something using minimal initial resources and building it up by using the results of earlier steps. It’s the idea of pulling yourself up by your own bootstraps.

Use a small, simple starting point to create a more complex or capable system.

Bootstrapping include the following steps

  • Load composer autoload

  • Define base path

  • Load environment variables

  • Load configuration

  • Create the application object

  • Set up dependency injection container

  • Set up service providers

  • Establish connections to database, logging system, cache

  • Register routes

  • Attach listeners

  • Build the request object

  • Run the controller

These list is a general panorama. The steps may not be in order, not exhaustive not applicable to specific frameworks.

See also Bootstrapping a Frameworkless PHP Application.

Related : Lifecycle, Global Code