PHPackages                             fugikzl/container - 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. [Framework](/categories/framework)
4. /
5. fugikzl/container

ActiveLibrary[Framework](/categories/framework)

fugikzl/container
=================

Simple DI container

1.0.1(7mo ago)013MITPHP

Since Oct 18Pushed 7mo agoCompare

[ Source](https://github.com/fugikzl/container)[ Packagist](https://packagist.org/packages/fugikzl/container)[ RSS](/packages/fugikzl-container/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Container
=========

[](#container)

[![License](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE)

🚀 Overview
----------

[](#-overview)

A lightweight and simple PHP Dependency Injection (DI) container designed to help you manage your application's dependencies efficiently. This project is ideal for developers looking for a straightforward and easy-to-use DI container without the overhead of more complex solutions.

✨ Features
----------

[](#-features)

- 🌐 **Flexible**: Supports various types of definitions, including concrete, alias, and factory definitions.
- 🔄 **Reflection Autowiring**: Automatically resolves dependencies using reflection.
- 📦 **Lightweight**: Minimalistic design with a small footprint.

📦 Installation
--------------

[](#-installation)

### Prerequisites

[](#prerequisites)

- PHP 8.0 or later
- Composer

### Quick Start

[](#quick-start)

```
# Clone the repository
git clone https://github.com/fugikzl/container.git

# Navigate to the project directory
cd container

# Install dependencies
composer install

# Run PSalm for static analysis
./vendor/bin/psalm --threads=4 --no-cache src
```

### Alternative Installation Methods

[](#alternative-installation-methods)

- **Composer**: You can add this container to your project using Composer. ```
    composer require fugikzl/container
    ```

🎯 Usage
-------

[](#-usage)

### Basic Usage

[](#basic-usage)

```
