Download the PHP package justustheis/registry without Composer

On this page you can find all versions of the php package justustheis/registry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package registry

Laravel Registry

Laravel Registry is a powerful and flexible key–value store designed for managing application settings in Laravel. It offers a unified API with support for per-model scoping, optional encryption, caching, and a modern web interface. The package also supports overriding Laravel configuration values at runtime using registry entries — enabling dynamic, environment-specific configuration.

Laravel Registry

✨ Features

📋 Requirements

📦 Installation

1. Install via Composer

2. Publish Configuration

3. Run Migrations

4. Configure Authorization (Required)

Add the authorization gate to your AppServiceProvider:

🔐 Frontend Access Control

Important: Before accessing the registry frontend, you must configure authorization using Laravel Gates. By default, the registry requires users to pass the access-registry gate to access the web interface.

Setting Up Authorization

Add this to your AppServiceProvider boot method:

You can customize the gate name in the configuration:

To disable authorization entirely (not recommended for production):

⚙️ Configuration

The configuration file config/registry.php provides extensive customization options:

Cache Configuration

User Model Configuration

Model Mappings for Route Binding

Type Casting Rules

Runtime Config Overrides

🚀 Basic Usage

Using the Facade

Using Helper Functions

Working with Different Data Types

🎯 Model Scoping

Use the HasRegistry trait to scope registry entries to specific models:

Adding the Trait

Scoped Operations

Relationship Access

🎨 Frontend Web Interface

The package includes a complete Vue 3 + Inertia.js frontend that provides a Windows Registry Editor-like interface.

Features

Setup

1. Install Frontend Dependencies

2. Publish Assets (Optional)

3. Configure Inertia.js

Ensure you have an Inertia.js app template. The package includes one you can copy:

4. Build Assets

Accessing the Interface

Visit /registry in your browser (after setting up the authorization gate).

🔐 Encryption

Encrypt sensitive data automatically:

🌳 Hierarchical Keys

Organize settings in tree structures:

⚡ Advanced Features

Caching

Registry entries are automatically cached for performance:

Runtime Configuration Overrides

Override Laravel config values dynamically:

Cascade Deletion

Automatically delete registry entries when parent models are deleted:

Type Validation and Casting

📚 API Reference

Core Methods

Registry::key(string $key): self

Set the registry key for the operation.

Registry::value(mixed $value): self

Set the value to be stored.

Registry::default(mixed $default): self

Set the default value if key doesn't exist.

Registry::for(Model $model): self

Scope the registry to a specific model.

Registry::encrypt(): self

Mark the value for encryption.

Registry::type(string $type): self

Explicitly set the value type.

CRUD Operations

get(?string $key = null, mixed $default = null): mixed

Retrieve a value from the registry.

set(?string $key = null, mixed $value = null): mixed

Store a value in the registry.

delete(?string $key = null): bool

Delete a key from the registry.

exists(?string $key = null): bool

Check if a key exists in the registry.

rename(string $newKey, bool $renameChildren = true): self

Rename a registry key and optionally its children.

Relationship Methods

parent(): ?self

Get the parent registry instance.

children(): Collection

Get all direct child registry instances.

💡 Usage Examples

User Preferences System

Application Configuration

Feature Flags

🧪 Testing

Run the test suite:

🔧 Artisan Commands

The package doesn't include specific Artisan commands, but you can interact with it using Tinker:

📄 License

This package is open-sourced software licensed under the MIT license.

🤝 Contributing

Please see CONTRIBUTING.md for details.

🐛 Issues

If you discover any security vulnerabilities or bugs, please report them via GitHub Issues.

📞 Support

For support, please create an issue on GitHub or contact the maintainer at [email protected].


All versions of registry with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^12|^13
illuminate/database Version ^12|^13
inertiajs/inertia-laravel Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package justustheis/registry contains the following files

Loading the files please wait ...