PHPackages                             phpnomad/loader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. phpnomad/loader

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

phpnomad/loader
===============

2.0.1(3w ago)15.6k—0%[1 issues](https://github.com/phpnomad/loader/issues)[2 PRs](https://github.com/phpnomad/loader/pulls)14MITPHPCI passing

Since Apr 26Pushed 2w ago2 watchersCompare

[ Source](https://github.com/phpnomad/loader)[ Packagist](https://packagist.org/packages/phpnomad/loader)[ Docs](https://github.com/phpnomad/core)[ RSS](/packages/phpnomad-loader/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (7)Dependencies (27)Versions (15)Used By (14)

phpnomad/loader
===============

[](#phpnomadloader)

[![Latest Version](https://camo.githubusercontent.com/91058be7b28732d79cc1bfae3374a151eb054adc6997180a1921a1bb6dee5d50/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068706e6f6d61642f6c6f616465722e737667)](https://packagist.org/packages/phpnomad/loader) [![Total Downloads](https://camo.githubusercontent.com/6f1a1ffc4d8056bfa0dd46782b254d2b0a7252fb0d638ebc94988d7ad0d6426d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068706e6f6d61642f6c6f616465722e737667)](https://packagist.org/packages/phpnomad/loader) [![PHP Version](https://camo.githubusercontent.com/2af24d585ffe3825a967a851031b6dfdbe968e7ee5f289e52602a1b922b7b643/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7068706e6f6d61642f6c6f616465722e737667)](https://packagist.org/packages/phpnomad/loader) [![License](https://camo.githubusercontent.com/aa599c2e3b47be222a8023a304c057c78776eadb387f2f8d2effd56f4539e30d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7068706e6f6d61642f6c6f616465722e737667)](https://packagist.org/packages/phpnomad/loader)

`phpnomad/loader` defines what an initializer is and provides the `Bootstrapper` that composes them. Every [PHPNomad](https://phpnomad.com) application starts by constructing a `Bootstrapper` with a DI container and a list of initializers, then calling `load()`. That's the moment bindings get registered, event listeners get attached, REST routes get wired up, and platform integrations take hold.

The pattern is the spine of the framework. `phpnomad/core` depends on it, [Siren](https://sirenaffiliates.com) uses it directly as the top of its `Application` class, and it's been running in production for years across Siren, several MCP servers, and other client systems.

Installation
------------

[](#installation)

```
composer require phpnomad/loader
```

Most applications pull in [`phpnomad/core`](https://packagist.org/packages/phpnomad/core) instead, which depends on `phpnomad/loader` and bundles the rest of the framework foundation. Install loader directly if you're building from the bottom up or writing your own core.

Quick Start
-----------

[](#quick-start)

Construct a `Bootstrapper` with your container and one or more initializers, then call `load()`.

```
