awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
php-fig avatar

php-fig/container

0
View on GitHub↗
10,012 星标·53 分支·PHP·MIT·4 次浏览

Container

This project is a shared technical specification and standard interface for dependency injection containers in PHP. It defines a common set of interfaces for retrieving services and dependencies, ensuring that different container implementations remain interoperable across the PHP ecosystem.

By establishing a standardized API for dependency retrieval, the project allows developers to create libraries that function with any compliant container. This prevents vendor lock-in and enables different container implementations to be swapped without requiring changes to the application code.

The specification covers the standardization of container interfaces and the definition of a uniform method for service resolution. This provides a consistent foundation for building custom service containers and developing interoperable packages.

Features

  • Dependency Injection Containers - Defines the common interface specification for dependency injection containers to ensure ecosystem interoperability.
  • Interface Contract Implementations - Defines a strict set of interface contracts that all compliant service containers must implement for consistency.
  • PHP Standard Interface Implementations - Defines the standard PSR interface that custom service containers must implement for compatibility.
  • Dependency Injection - Standardizes the creation and management of objects across the PHP ecosystem via a common DI interface.
  • Dependency Injection - Establishes a standardized API for dependency injection to prevent vendor lock-in across different libraries.
  • Interoperability Specifications - Serves as a shared technical specification for interchangeable dependency injection containers.
  • Contract and Abstraction Patterns - Provides an abstraction layer that decouples dependency retrieval logic from specific container implementations.
  • Container Interface Standards - Implements the standard PSR interface for retrieving services and dependencies from a container.
  • Interface Standardization - Provides a common set of interfaces that allow different service containers to be swapped seamlessly.
  • Type-Safe Dependency Resolution - Uses PHP interface definitions to ensure type-safe resolution and consistent return types for services.
  • Dependency Injection Interoperability - Enables the creation of PHP libraries that work with any PSR-compliant container.

Star 历史

php-fig/container 的 Star 历史图表php-fig/container 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Container 的开源替代方案

相似的开源项目,按与 Container 的功能重合度排序。
  • symfony/contractssymfony 的头像

    symfony/contracts

    3,941在 GitHub 上查看↗

    This project is a PHP interface library that provides a component interoperability layer. It consists of a set of framework-agnostic contracts and standardized definitions that enable different libraries to work together via a consistent contract. The library focuses on providing minimal shared interfaces and API definitions, allowing software components to be used across different PHP projects regardless of the underlying framework. This approach decouples application logic from concrete framework implementations. The project specifically covers service container abstraction and dependency

    PHPabstractionscomponentcontracts
    在 GitHub 上查看↗3,941
  • jeffijoe/awilixjeffijoe 的头像

    jeffijoe/awilix

    4,088在 GitHub 上查看↗

    Awilix is a JavaScript dependency injection framework and inversion of control container. It provides a centralized system for registering and resolving services, decoupling application components by automating how dependencies are created and passed to the functions or classes that require them. The framework features an automatic module loader that scans the filesystem using glob patterns to register dependencies based on filenames and exports. It supports parameter-name-based injection and proxy-based resolution to manage how dependencies are delivered to constructors and functions. The s

    TypeScriptawilixdependency-injectionioc
    在 GitHub 上查看↗4,088
  • jonataslaw/getxjonataslaw 的头像

    jonataslaw/getx

    11,181在 GitHub 上查看↗

    GetX is a comprehensive state management framework for Flutter that provides a toolkit for managing application state, dependency injection, and routing without requiring build context. It serves as a core architectural system for reactive state management, navigation, service location, and multi-language theme support. The project is distinguished by its ability to handle context-free navigation and the use of observable variables that automatically trigger user interface updates. It features a dependency injection container with lazy loading and automated memory management, alongside a rout

    Dart
    在 GitHub 上查看↗11,181
  • uber-go/fxuber-go 的头像

    uber-go/fx

    7,354在 GitHub 上查看↗

    Fx is a dependency injection framework and application lifecycle manager for Go. It functions as a component model container that automates the instantiation and connection of components by analyzing constructor parameters and return values to resolve complex dependency graphs. The framework distinguishes itself through module-based component bundling, which encapsulates related constructors into reusable units to manage visibility and logic. It provides advanced resolution capabilities, including mapping concrete types to interfaces for decoupling, resolving dependency ambiguities via unique

    Goapp-frameworkdependency-injectionframework
    在 GitHub 上查看↗7,354
查看 Container 的所有 30 个替代方案→

常见问题解答

php-fig/container 是做什么的?

This project is a shared technical specification and standard interface for dependency injection containers in PHP. It defines a common set of interfaces for retrieving services and dependencies, ensuring that different container implementations remain interoperable across the PHP ecosystem.

php-fig/container 的主要功能有哪些?

php-fig/container 的主要功能包括:Dependency Injection Containers, Interface Contract Implementations, PHP Standard Interface Implementations, Dependency Injection, Interoperability Specifications, Contract and Abstraction Patterns, Container Interface Standards, Interface Standardization。

php-fig/container 有哪些开源替代品?

php-fig/container 的开源替代品包括: symfony/contracts — This project is a PHP interface library that provides a component interoperability layer. It consists of a set of… jeffijoe/awilix — Awilix is a JavaScript dependency injection framework and inversion of control container. It provides a centralized… uber-go/fx — Fx is a dependency injection framework and application lifecycle manager for Go. It functions as a component model… jonataslaw/getx — GetX is a comprehensive state management framework for Flutter that provides a toolkit for managing application state,… dotnet/aspnetcore.docs — ASP.NET Core is a unified, cross-platform framework designed for building scalable web applications and services. It… loopbackio/loopback-next — LoopBack Next is a Node.js API framework used for building REST and multi-protocol APIs. It functions as an OpenAPI…