Registry manager for Laravel 5. An alternative for managing application configurations and settings.

Overview

Registry Manager for Laravel

Latest Stable Version Total Downloads

Registry manager for Laravel 5. An alternative for managing application configurations and settings. Now with the magic of caching, so no more database calls to simply get site setting.


Installation

To get the latest version of Registry simply require it in your composer.json file.

"torann/registry": "0.2.*@dev"

You'll then need to run composer install to download it and have the autoloader updated.

Once Registry is installed you need to register the service provider with the application. Open up app/app.php and find the providers key.

'providers' => array(
    'Torann\Registry\RegistryServiceProvider',
)

Registry also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases key of your app/app.php file.

'aliases' => array(
    'Registry' => 'Torann\Registry\Facades\Registry',
)

Publish the configurations and migration

Run this on the command line from the root of your project:

$ php artisan vendor:publish

A configuration file will be publish to config/registry.php and a migration file to database/migrations/

Documentation

View the official documentation.

Change Log

v0.2.0

  • Update to Laravel 5

v0.1.3

  • Added timestamp managers for multi-instance websites
  • Added custom caching

v0.1.2

  • Added config for custom table name
  • Added forced variable types
  • Code cleanup

v0.1.1

  • Bug fixes

v0.1.0

  • First release
Comments
  • Laravel 5

    Laravel 5

    Just wanted to let you know that we simply updated composer.json to support Laravel 5, and this package works out of the box!

    https://github.com/adamgoose/laravel-4-registry

    opened by adamgoose 1
  • PHP 5.3 Using $this when not in object context

    PHP 5.3 Using $this when not in object context

    opened by kwolniak 1
  • is Laravel 5.4 compatible?

    is Laravel 5.4 compatible?

    after installation we could see this error:

    [Symfony\Component\Debug\Exception\FatalThrowableError] Call to undefined method Illuminate\Foundation\Application::share()

    opened by AsyncLegs 1
  • Registry::store() doesn't work with SQLite

    Registry::store() doesn't work with SQLite

    The Registry::store() method uses a prepared statement with a hardcoded table name (see #14), but also it uses ON DUPLICATE KEY... which doesn't exist on SQLite:

    $this->database->statement("INSERT INTO system_registries ( `key`, `value` ) VALUES ( ?, ? ) ON  DUPLICATE KEY UPDATE `key` = ?, `value` = ?",
        array($key, $jsonValue, $key, $jsonValue));
    

    This causes the method to not work if you use SQLite as database. It should use some other methods like these ones.

    opened by pacoorozco 1
  • Registry::store() hardcodes table name

    Registry::store() hardcodes table name

    The Registry::store() method uses a prepared statement with a hardcoded table name

    $this->database->statement("INSERT INTO system_registries ( `key`, `value` ) VALUES ( ?, ? ) ON DUPLICATE KEY UPDATE `key` = ?, `value` = ?",
            array($key, $jsonValue, $key, $jsonValue));
    

    This causes the method to not work if the table name is changed. It should have $this->config['table'] concatenated into the statement.

    opened by frasmage 0
  • Allow manual cache refresh or direct database retrieval

    Allow manual cache refresh or direct database retrieval

    Since Registry::setCache() is only called on Registry::__construct(), any non-reloading instance of the app (i.e. php artisan tinker or php artisan queue:work --daemon) will not see changes made to the registry by another app instance (i.e. a web interface) after they are loaded. Tinker is not that big of a deal, but for production sites the queue daemon is. It would be nice to allow for a way to either refresh the cache or bypass it and retrieve directly from the database.

    a) A simple solution would be to either make Registry::setCache() public or to provide another public method that calls it. b) A perhaps prettier solution would be to have an optional boolean third parameter to Registry::get() to allow for non-cached calls.

    What do you think? If you pick one of the above, I could probably submit a PR, but I didn't want to proceed my own way without your thoughts.

    opened by wunc 0
Fluent Interface for Laravel Backpack - Define resources once and get all CRUD configurations ready!

CRUD Resource for Laravel Backpack This package allows creating CRUD panels for Backpack for Laravel administration panel using fluent field definitio

FigLab 8 Nov 20, 2022
App & Models Settings for Laravel

App & Models Settings for Laravel This package allows you to store application wide and model specific Laravel settings. Settings values are type-cast

Mohammed Isa 42 Aug 12, 2022
A very simple admin panel for managing users, roles & permissions.

Laravel Admin Starter A very simple admin panel for managing users, roles & permissions. The premise for this package is to eradicate the duplicate wo

James Mills 26 Sep 24, 2022
LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel with features like Advanced CRUD Generation, Module Manager, Backups and many more.

LaraAdmin 1.0 LaraAdmin is a Open source CRM for quick-start Admin based applications with features like Advanced CRUD Generation, Schema Manager and

Dwij IT Solutions 1.5k Dec 29, 2022
Laravel SES complaints and bounces manager

Laravel SES complaints and bounces manager This package listens to AWS SNS notifications and stops sending mail to email addresses that have received

Aboubacar Ouattara 16 Dec 16, 2022
Gestor de Contraseñas basado en Laravel 8 + PHP 8 + MySQL 8. Self-hosted Password Manager based on Laravel 8 + PHP 8 + MySQL 8.

English Gestor de Contraseñas Esta aplicación permite una gestión completa de contraseñas para múltiples tipos de servicios (web, ssh, teléfonos, wifi

Lito 134 Jan 2, 2023
A seamless django like admin panel setup for Laravel. Simple, non-cms table manager for admins.

Seamless Admin Panel A seamless Django-like admin panel setup for Laravel. Simple, non-cms table manager for admins. Installation steps Require the Pa

Advaith A J 15 Jan 2, 2023
Use this skeleton application to quickly setup and start working on a new Slim Framework 4 application

Slim Framework 4 Skeleton Application Use this skeleton application to quickly setup and start working on a new Slim Framework 4 application. This app

Slim Framework 1.5k Dec 25, 2022
project with laravel 9 and php 8 and vuejs 3(modular) in both multi page and single page application

About Project Since Laravel 9 was recently released, it supports PHP 8 and above. So I decided to implement a prototype project using Laravel 9 + PHP

ali ahmadi 10 Sep 7, 2022
Laravel and AngularJS Starter Application Boilerplate featuring Laravel 5.3 and AngularJS 1.5.8

?? Zemke/starter-laravel-angular has been upgraded to AngularJS 1.5.8. ?? Zemke/starter-laravel-angular has been upgraded to Laravel 5.3. You can pull

Florian Zemke 372 Nov 21, 2022
Demo and practice application with Laravel 8 and InertiaJS. (From laracasts course)

InertiaJS playground ⚽️ Started with the Laracasts: Build Modern Laravel Apps Using Inertia.js course and decided to share all my code here, I'll be a

Kasper Ligthart 1 Dec 2, 2021
Laravel Quick-Start - a boilerplate for Laravel Application with typical packages preinstalled and configured

Laravel Quickstart is a boilerplate for Laravel Application with typical packages preinstalled and configured to extend a full-fledged application. We tried to make it as minimal as possible.

Vijay Goswami 18 Sep 8, 2022
Quick new application creation with Laravel and Valet

Super-powered laravel new for Laravel and Valet Lambo is a command-line tool that replaces the Laravel installer and wraps up the most common tasks yo

Tighten 593 Dec 30, 2022
Laravel CRUD Generator, Make a Web Application Just In Minutes, Even With Less Code and fewer Steps !

?? CRUDBOOSTER - Laravel CRUD Generator Laravel CRUD Generator, Make a Web Application Just In Minutes, Even With Less Code and fewer Steps ! About CR

Crocodic Studio 1.7k Jan 8, 2023
Laravel Framework 5 Bootstrap 3 Starter Site is a basic application with news, photo and video galeries.

Laravel Framework 5.1 Bootstrap 3 Starter Site Starter Site based on on Laravel 5.1 and Boostrap 3 Features Requirements How to install Application St

null 900 Dec 22, 2022
Webird was created to merge the latest PHP and Node.js innovations into a single application stack.

Webird full application stack Webird was created to merge the latest PHP and Node.js innovations into a single application stack. The PHP foundation i

Perch Labs 101 Oct 7, 2022
A PHP notebook application build with PHP Symfony as back-end API and VueJS/Vuetify front-end.

PHPersonal Notes ?? - BETA RELEASE PHPersonal notes is an application to store your personal notes! PHPersonalnotes is build with Symfony/VueJS/Vuetif

Robert van Lienden 3 Feb 22, 2022
⬆️ ⬇️ User vote system for Laravel Application.

Laravel Vote ⬆️ ⬇️ User vote system for Laravel Application. Installing $ composer require overtrue/laravel-vote -vvv Configuration This step is optio

安正超 79 Dec 21, 2022
Syntax-aware proofreading for your Laravel application.

Laravel Prose Linter Syntax-aware proofreading for your Laravel application. The Laravel Prose Linter helps you to polish the texts of your Laravel ap

Beyond Code 97 Dec 18, 2022