aeruz/app-registry-common

Common components for the Aeruz application registry (interfaces, models, and exceptions).

Installs: 133

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

pkg:composer/aeruz/app-registry-common

0.0.1 2026-01-08 16:45 UTC

This package is auto-updated.

Last update: 2026-01-09 08:10:28 UTC


README

This library provides a set of common elements (interfaces, traits, exceptions) shared by the server and client components of the Applications Registry application.

Installation

You can install this library via Composer:

composer require aeruz/app-registry-common

Content

The library is structured around two main axes:

Models (Interfaces & Traits)

It defines the base contracts for the applications managed in the registry:

  • ApplicationInterface: Base contract defining the properties of an application (identifier, type, label, description, etc.).
  • DraftApplicationInterface: Interface for applications currently being drafted.
  • PublishedApplicationInterface: Interface for published applications.
  • ApplicationTrait: Default implementation of ApplicationInterface properties using PHP 8.4 property hooks.

Exceptions

  • AppRegistryExceptionInterface: Base interface for all registry exceptions, also defining standard error codes ( unknown application, locked, disabled, etc.).

Prerequisites

  • PHP 8.4 or higher.

License

This project is licensed under the MIT License. See the LICENSE file for details.