search hotlink icon profile hotlink icon
Bo public|1.0.0

Package Info

Box is a PHP dependency injection container that abstracts project logic relations to make the code more flexible, testable, and maintainable.

Repository

gitlab.com

Activity

  • Created on Aug 17, 2025
  • Updated on Aug 31, 2025

Statistics

  • 10 requests
  • 1 versions

Build Methods

Nested Dependency

To build this package as a nested dependency of your package, add its default registry source valvoid.com/valvoid/box/1.0.0 to one of your metadata files:

"/dependencies": [
    "valvoid.com/valvoid/box/1.0.0"
]

Standalone

To build this package as an independent root package, extend the build command with the default registry source valvoid.com/valvoid/box/1.0.0 as follows:

fusion build build.source=valvoid.com/valvoid/box/1.0.0

Optional Repository Source

In addition, to build an offset reference version, replace the default registry source in installation methods mentioned above with the VCS source prefix gitlab.com/valvoid/box/'code/, and refer to the linked source code repository for possible branches, commits, and tags to use as the suffix.

Metadata

The synchronized package's metadata file, fusion.json, contains the following content:

{
    "name": "Box",
    "description": "A PHP DI Container.",
    "id": "valvoid/box",
    "version": "1.0.0",
    "structure":  {
        "/cache": "cache"
    },
    "environment": {
        "php": {
            "version": "8.1.0"
        }
    }
}

Readme: About Box

Box is a PHP dependency injection container that abstracts project logic relations to make the code more flexible, testable, and maintainable.

Documentation

The separated documentation repository also has the user-friendly output and contains information about the following key features:

Default Arguments

Predefine constructor values for specific parameters of a class. Whenever the container creates an instance, these defaults are automatically applied, reducing boilerplate and ensuring consistent object initialization.

On-Demand Arguments

Provide temporary arguments to override default constructor values. This feature allows you to customize dependencies on the fly without changing the predefined defaults.

Recyclable Instances

Mark classes as shareable so the container instantiates them only once and returns the same object reference for subsequent requests and injections.

Contribution

Each merge request serves as confirmation to transfer ownership to the project and must meet the following criteria:

See the contributing file if these criteria apply to you.

License

Box - PHP Dependency Injection Container
Copyright © Valvoid

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see licenses.