aeruz/app-registry

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

Maintainers

👁 aeruz

Package info

gitlab.com/aeruz/application-registry/app-registry

Issues

pkg:composer/aeruz/app-registry

Statistics

Installs: 112

Dependents: 1

Suggesters: 0

Stars: 0

1.0.0 2026-04-03 16:03 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 55d2d54b94191867c0c7c63f4760d25dd065d32b

This package is auto-updated.

Last update: 2026-06-03 14:34:33 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.