aeruz/app-registry

A PHP library for managing an application registry with lifecycle management (draft/published), locking, and user access control.

Installs: 68

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

pkg:composer/aeruz/app-registry

0.0.1 2026-01-09 09:11 UTC

This package is auto-updated.

Last update: 2026-01-09 08:14:35 UTC


README

A PHP library to manage an application registry with support for draft/published states, lifecycle management, and user access control.

Installation

composer require aeruz/app-registry

Basic Usage

use Aeruz\AppRegistry\ApplicationsRegistry;
use Aeruz\AppRegistry\RegistrationMode;

// Initialize with your repository implementations
$registry = new ApplicationsRegistry(
    $publishedRepo,
    $draftRepo,
    $accessRepo
);

// Register a new application as a draft
$registry->register($application, RegistrationMode::PESSIMISTIC);

// Publish it
$registry->publish($application->identifier);

// Grant access to a user
$registry->grantUserAccessTo('user_123', $application->identifier);

Advanced Documentation

For more detailed information, please refer to the following guides in the doc/ directory:

License

This library is licensed under the MIT License.