Download the PHP package blackbonjour/service-manager without Composer

On this page you can find all versions of the php package blackbonjour/service-manager. 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 service-manager

Service Manager

Small, lightweight and factory-biased service manager based on the PSR-11 standard.

Latest Stable Version License

Table of Contents

Installation

You can install the package via composer:

Basic Usage

Configuration

The ServiceManager constructor accepts several configuration arrays:

Services

Services are pre-created instances that are stored in the container:

Factories

Factories are responsible for creating service instances. They can be:

  1. Classes implementing FactoryInterface
  2. Callable objects
  3. Class strings that resolve to one of the above

Abstract Factories

Abstract factories are used when a service is not explicitly defined. They determine if they can create a requested service:

Invokables

Invokables are classes that can be instantiated directly without a factory:

Aliases

Aliases provide alternative names for services:

Advanced Usage

Creating Services with Options

You can create services with additional options:

Using Array Access

The ServiceManager implements ArrayAccess, allowing you to use array syntax:

Removing Services

You can remove services from the container:

Abstract Factories

DynamicFactory

The DynamicFactory looks for a factory class with the same name as the requested service plus "Factory":

ReflectionFactory

The ReflectionFactory uses PHP's Reflection API to automatically instantiate classes and resolve their dependencies:

API Reference

ServiceManager

The main container class implementing PSR-11's ContainerInterface.

Methods:

FactoryInterface

Interface for factories that create services.

Methods:

AbstractFactoryInterface

Interface for abstract factories that can dynamically determine if they can create a service.

Methods:

InvokableFactory

A factory for creating instances of classes without dependencies.

Methods:


All versions of service-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
psr/container Version ^2.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 blackbonjour/service-manager contains the following files

Loading the files please wait ....