Skip to content

Releases: commonphp/service-management

Release 0.2.2 (Alpha)

04 Aug 20:44
da838a0

Choose a tag to compare

  • Added parameters argument to resolveLiteral

Release 0.2.1 (Alpha)

04 Aug 20:27
a620ed6

Choose a tag to compare

  • Allow a service to be unregistered

Release 0.2 (Alpha)

17 Feb 02:22

Choose a tag to compare

We are excited to announce the release of version 0.2 of the Service Management library. This release brings significant improvements to our documentation, error handling, and library dependencies, ensuring better usability, clarity, and compatibility with the latest PHP technologies. Here's what's new:

Key Features and Improvements:

  • Standardized Docblocks and Error Codes: We've undertaken a comprehensive overhaul of our docblocks across the library, standardizing documentation to improve clarity and developer experience. Additionally, we've assigned unique error codes in the 14xx range to all exceptions within the library, making error handling more intuitive and detailed.

  • Library-Level Base Exception: Introducing a new base exception class starting at error code 1400. This foundational improvement allows for more structured error handling and provides a clear hierarchy for all service management-related exceptions.

  • Streamlined Documentation: Our documentation has received two major updates in this release cycle, making it easier than ever to navigate and understand the library's capabilities and how to leverage them in your projects.

  • Updated PHP and Dependency Requirements: In keeping with our commitment to stay current with the latest developments in the PHP ecosystem, we've updated our minimum PHP requirement to version 8.3. Additionally, we've updated our dependency on comphp/di to version 0.2, ensuring compatibility and leveraging the latest features and improvements of this dependency injection library.

Version 0.1.1 - Alpha Change: Bootstrapping

02 Jul 18:04

Choose a tag to compare

This update brings minor documentation revisions and, more significantly, introduces the concept of 'Bootstrapping' in service management.

Details:

  • Two-pronged Service Management Approach: The ServiceManager and ServiceContainer serve distinct purposes and exist in different stages of the application lifecycle. The ServiceManager is active during the bootstrapping phase, setting up and maintaining services, while the ServiceContainer is available during execution. Notably, the ServiceContainer is read-only, meaning it cannot register services, providers, aliases, or namespaces.

  • Flexible Bootstrapping with Services: Certain services may require additional bootstrapping upon instantiation of the service or service provider. This is now possible using the BootstrappingContract.

With this update, we aim to make service management more flexible and robust, catering to the needs of different application lifecycle stages.

Version 0.1 - Alpha Release

02 Jul 13:57

Choose a tag to compare

We're pleased to announce the initial release of the CommonPHP Service Management Library.

This release includes core functionality such as:

  • Automatic Dependency Injection: Simplify your code by automatically managing service dependencies.
  • Singleton and Transient Service Lifetimes: Control your service instantiation with singleton and transient lifetimes.
  • Aliasing and Interface Binding: Define aliases for your services and bind interfaces for improved code flexibility.
  • Namespace-based Service Registration: Manage your services based on their namespace to organize and find them efficiently.
  • Custom Service Providers: Write your own service providers to define custom service creation logic.

This version also introduces two primary classes, ServiceManager and ServiceContainer. The ServiceManager is the core of the library, responsible for registering and managing services. The ServiceContainer, on the other hand, acts as a read-only access point for the services during execution. This distinction helps in achieving a clean separation of concerns between the configuration phase and the execution phase of your application.

As this is an initial release, we appreciate any feedback and contributions to further improve the library.

Thank you for using CommonPHP Service Management Library! We look forward to growing and improving this project with the PHP community.