✈️ Hangar: The Dart Service Container

Hangar is an easy-to-use service container and dependency injection tool for Dart, inspired by the robustness and clarity of the PHP PSR-11 standard. It provides a simple, centralized way to manage and resolve dependencies in your Dart and Flutter applications.

✨ Features

  • PSR-11 Inspired Interface: Simple get and has methods for clear container interaction.
  • Easy Dependency Registration: Register services with factories, singletons, or direct instances.
  • Lazy Loading: Services are instantiated only when they are requested, improving startup performance.
  • Zero Boilerplate: Designed for minimal setup and maximum clarity.

🚀 Getting Started

Libraries

hangar
Support for doing something awesome.