Key Features
- Fast: Optimized for performance in production environments.
- Framework Agnostic: Integrates seamlessly with any project using the PSR-11 container interface.
- Explicit Over Implicit: Prioritizes explicit, readable configuration over hidden “magic”, making your code easier
to maintain.
- Lightweight: A minimal footprint keeps your project lean and efficient.
- Compilation Support: Optimizes performance further with built-in compilation, including anonymous functions.
- Autowiring: Simplify your code with automatic dependency resolution, available even after compilation.
- Zero-Config Option: Get started quickly with sensible defaults, no configuration required.
- Circular Dependency Guard: Automatically detects and helps you resolve circular dependencies.
Create and configure service objects directly within your configuration
Or using configurator
Utilize Factories for Instantiation
Easily manage object creation through factory classes
Use Environment Variables
Seamlessly integrate environment variables into your service definitions
Define Aliases
Simplify referencing by creating aliases for your services, or associating implementations with interfaces
Leverage Closures for Advanced Composition
Use closures to dynamically create values or service instances