Registry Manager for Laravel

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
Laravel Manager provides some manager functionality for Laravel

Laravel Manager Laravel Manager was created by, and is maintained by Graham Campbell, and provides some manager functionality for Laravel. Feel free t

Graham Campbell 371 Jul 11, 2022
laravel - Potion is a pure PHP asset manager for Laravel 5 based off of Assetic.

laravel-potion Potion is a pure PHP asset manager for Laravel based off of Assetic. Description Laravel 5 comes with a great asset manager called Elix

Matthew R. Miller 61 Mar 1, 2022
Laravel-tagmanager - An easier way to add Google Tag Manager to your Laravel application.

Laravel TagManager An easier way to add Google Tag Manager to your Laravel application. Including recommended GTM events support. Requirements Laravel

Label84 16 Nov 23, 2022
Migrator is a GUI migration manager for Laravel which you can create, manage and delete your migration.

Migrator Migrator is a GUI migration manager for Laravel which you can create, manage and delete your migration. Installation: To install Migrator you

Reza Amini 457 Jan 8, 2023
Seo Manager Package for Laravel ( with Localization )

Seo Manager Package for Laravel ( with Localization ) lionix/seo-manager package will provide you an interface from where you can manage all your page

Lionix 205 Dec 23, 2022
Bring multi themes support to your Laravel application with a full-featured Themes Manager

Introduction hexadog/laravel-themes-manager is a Laravel package which was created to let you developing multi-themes Laravel application. Installatio

hexadog 86 Dec 15, 2022
File manager for Laravel

Laravel File Manager DEMO: Laravel File Manager Vue.js Frontend: alexusmai/vue-laravel-file-manager Documentation Laravel File Manager Docs Installati

Aleksandr Manekin 937 Jan 1, 2023
Webhook Manager for Laravel Nova

Webhook Manager for Laravel Nova A Laravel Nova tool that allows users to create and manage webhooks based on Eloquent Model events. A tool for Larave

Doug Niccum 9 Dec 27, 2022
Service manager for Slim compatible with Laravel packages

SlimServices SlimServices is a service manager for the Slim PHP microframework based on Laravel 4 service providers and DI container, allowing you to

its 76 Jul 23, 2022
A Laravel package to retrieve key management from AWS Secrets Manager

A Laravel package to retrieve key management from AWS Secrets Manager Communication via AWS Secrets Manager may incur unnecessary charges. So we devel

null 2 Oct 10, 2022
Menu ordering/management application demo, like Wordpress menu manager

Menu manager like Wordpress using Laravel and Nestable See demo at: http://laravel-menu-builder.gopagoda.com/admin/menu Tutorial coming up at: http://

Maksim Surguy 336 Nov 25, 2022
🧩 Generator Manager for 🙃 Phony Framework

?? Generator Manager This repository contains the Generator Manager for ?? Phony Framework. ?? Start generating fake data with ?? Phony Framework, vis

Phonyland 2 Jan 7, 2022
A PocketMine plugin to create custom ranks and permissions manager!

Ranks A PocketMine plugin to create custom ranks and permissions manager! ##Commands Command Usage Example /rank add - adds ranks! /rank add <rank_nam

DevilDev 4 Apr 6, 2022
File manager module for the Lumen PHP framework.

Lumen File Manager File manager module for the Lumen PHP framework. Please note that this module is still under active development. NOTE: Branch 5.1 i

Digia 40 Aug 20, 2022
List of 77 languages for Laravel Framework 4, 5, 6, 7 and 8, Laravel Jetstream , Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova and Laravel Spark.

Laravel Lang In this repository, you can find the lang files for the Laravel Framework 4/5/6/7/8, Laravel Jetstream , Laravel Fortify, Laravel Cashier

Laravel Lang 6.9k Jan 2, 2023
⚡ Laravel Charts — Build charts using laravel. The laravel adapter for Chartisan.

What is laravel charts? Charts is a Laravel library used to create Charts using Chartisan. Chartisan does already have a PHP adapter. However, this li

Erik C. Forés 31 Dec 18, 2022
Laravel Kickstart is a Laravel starter configuration that helps you build Laravel websites faster.

Laravel Kickstart What is Laravel Kickstart? Laravel Kickstart is a Laravel starter configuration that helps you build Laravel websites faster. It com

Sam Rapaport 46 Oct 1, 2022
Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

Laravel User Activity Log - a package for Laravel 8.x that provides easy to use features to log the activities of the users of your Laravel app

null 9 Dec 14, 2022
Laravel Segment is an opinionated, approach to integrating Segment into your Laravel application.

Laravel Segment Laravel Segment is an opinionated, approach to integrating Segment into your Laravel application. Installation You can install the pac

Octohook 13 May 16, 2022