Download the PHP package spaaleks/laragistry without Composer

On this page you can find all versions of the php package spaaleks/laragistry. 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 laragistry

Laragistry - a minimal Laravel key/value registry

This Package contains a minimal registry logic for your Laravel 7+/8+ application. The aim was to create a simple key/value provider for configuration purpose. For e.g. multi-domain applications, a scope can be used to separate entries.

This package does also work with the Laravel MongoDB driver from Jens Segers (jenssegers/laravel-mongodb)

Installation

Install the package via composer.

Run the artisan migration command to create the laragistry table.

Usage

After installing, you can use the Spaaleks\Laragistry\Laragistry class or it's alias (\Laragistry) in your project. The scope argument is optional for every command.

Method Examples Returns Description
Create/update entry

\Laragistry::set(array \$data, string \$scope = null)
\Laragistry::set(['key', 'value']);

\Laragistry::set(['key', 'value'], 'default');
entry object This command will create a new entry or update a existing by key and scope.
Create/update multiple entries

\Laragistry::set(array \$data, string \$scope = null)
\Laragistry::set([
    ['key1', 'value1'],
    ['key2', 'value2']
]);
entry object or collection of entries The same set command can be used to create/update multiple entries by providing a multidimensional array.
Get a single entry or multiple entries

\Laragistry::get(\$data, string \$scope = null)
\Laragistry::get('key');

\Laragistry::get(['key1', 'key2']);

\Laragistry::get('key_*');

\Laragistry::get(['key1_*', 'key2_*']);
entry object or collection of entries Get a single entry or multiple entries by providden key(s).
Check

\Laragistry::check(string \$key, string \$scope = null)
\Laragistry::check('key1'); boolean This command checks whether a key exists.
Get all in scope

\Laragistry::getByScope(string \$scope)
\Laragistry::getByScope('my_scope'); collection of entries Return all key's in a scope.
Remove a single entry or multiple entries

\Laragistry::remove(\$data, string \$scope = null)
\Laragistry::remove('key');

\Laragistry::remove(['key1', 'key2']);
boolean Remove a single entry or multiple entries by providden key(s).

All versions of laragistry with dependencies

PHP Build Version
Package Version
No informations.
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 spaaleks/laragistry contains the following files

Loading the files please wait ....