Download the PHP package phpnomad/loader without Composer

On this page you can find all versions of the php package phpnomad/loader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package loader

phpnomad/loader

Latest Version Total Downloads PHP Version License

phpnomad/loader defines what an initializer is and provides the Bootstrapper that composes them. Every PHPNomad 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 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

Most applications pull in 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

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

Here's what an initializer looks like. This one registers a class binding and an event listener, which covers the two most common cases.

The Bootstrapper inspects each initializer for opt-in interfaces and wires it up based on what it implements. An initializer can implement one of these interfaces or a dozen. Most are small and focused on a single slice of your application.

Key Concepts

Initializers

An initializer is a class that declares a chunk of your application's setup. Rather than putting every binding, listener, and route in one file, you break setup into small pieces and compose them in the Bootstrapper. Each PHPNomad package that needs to hook into the framework ships its own initializer, and your application code does the same.

This is how the framework stays platform-agnostic. Swap WordPressInitializer for a Symfony initializer and your application initializers keep working because they don't know anything about the platform they run on.

What the Bootstrapper does

When you call load(), the Bootstrapper walks each initializer and checks which opt-in interfaces it implements. The ones you'll reach for most often are HasClassDefinitions, HasListeners, HasControllers, HasLoadCondition, and Loadable.

Additional opt-in interfaces cover mutations, event bindings, task handlers, GraphQL type definitions, console commands, facades, and update routines. The bootstrapping guide at phpnomad.com walks through each one with examples.

Documentation

Full documentation lives at phpnomad.com, including the bootstrapping guide, the initializer interface reference, and how phpnomad/loader composes with phpnomad/di, phpnomad/event, phpnomad/rest, and the rest of the framework.

Contributing

PHPNomad is built and maintained by Alex Standiford, who's been using it for years to ship real software. Because phpnomad/loader is the foundation every application sits on, changes here are conservative and get exercised in production before they land.

Contributions are welcome. Good places to start include filing an issue for a bug you hit, proposing a new opt-in interface with a concrete use case, or improving the bootstrapping docs. Each PHPNomad package lives in its own repo, so issues and pull requests for loader go on this repo. If you want orientation before picking something up, opening a discussion issue on phpnomad/core is a fine place to start.

License

MIT, see LICENSE.txt for the full text.


All versions of loader with dependencies

PHP Build Version
Package Version
Requires phpnomad/facade Version ^1.0
phpnomad/utils Version ^1.0
phpnomad/mutator Version ^1.0
phpnomad/update Version ^1.0
phpnomad/di Version ^2.0
phpnomad/graphql Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phpnomad/loader contains the following files

Loading the files please wait ...