Download the PHP package linuxstreet/laravel-registry without Composer
On this page you can find all versions of the php package linuxstreet/laravel-registry. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download linuxstreet/laravel-registry
More information about linuxstreet/laravel-registry
Files in linuxstreet/laravel-registry
Package laravel-registry
Short Description Registry package provides a convenient way to manage and use simple key/value pairs (with pre-defined types) by using Laravel's under-laying config() functionality.
License MIT
Homepage https://github.com/linuxstreet/laravel-registry
Informations about the package laravel-registry
Registry for Laravel
Registry package provides a convenient way to manage and use simple key/value pairs (with pre-defined types) by using Laravel's under-laying config() functionality.
When application boots, registry entries are saved into Laravel's config so no registry calls will hit the database beyond that point.
The main difference is that keys/values are saved in database and there is no need to manually edit config files.
Take a look at contributing.md to see a to do list.
Installation
Requires:
Via Composer:
Migrate your database:
If you're using Laravel 5.5 you'll need to add the service provider to your config/app.php
Configuration
You can publish config and view files using the artisan command:
Usage
Check the 'config/registry.php' config file and make necessary changes if needed.
You can add/edit registry entries by using web provided web forms.
Start your web server:
Go to: http://127.0.0.1:8000/admin/registry
Note: You can customize admin path by changing 'route_prefix' and/or 'path' options in 'config/registry.php'
Console helpers
-
List registry key/values as stored in database:
-
List registry config keys with their real php values:
- Flush all registry items (will permanently delete registry entries from database):
Using registry items in your code
You can access registry entries by using provided registry() helper:
or using Registry facade:
or using Laravel config() helper:
Change log
Please see the changelog for more information on what has changed recently.
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
- Igor Jovanovic
License
Please see the license file for more information.