Download the PHP package hiddencorporation/laravel-db-config without Composer

On this page you can find all versions of the php package hiddencorporation/laravel-db-config. 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 laravel-db-config

laravel-db-config

A package to manage configuration items and their properties in Laravel. php laravel configuration cache db

What it is

Another library to handle configuration data in laravel, much more an exercice to handle gitHub/Packagist sync. This library.

In addition to allowing you to simply save variables in database, this package allows you to:

Installation

Using GitHub

git clone https://github.com/hiddenCorporation/laravel-db-config.git

Using Laravel Packager

Using Laravel Packager https://github.com/Jeroen-G/laravel-packager. You can use artisan to integrate it in your laravel app.

https://github.com/Jeroen-G/laravel-packager

Using Composer

Configuration

After having install the package, you need to :

Publish configuration var for the package

Migrate database layout

Configuration file & env

(optional) change behaviour of package

To set in your .env :

If cache enabled, you can add cache_management option when setting a config. cache_management can be fix or auto. (fix is the default value).

Auto mode is still in evaluation.

If cache_duration is filled, system will register in cache your config with this time. If not this field will take value of cache_duration_default.

cache_ssg_floor and cache_tsg_floor are used to decrease cache_duration of a var.

with the ssm of 0.8 the score calculus of a modification has to be between 0.078 and 0.082 to be considered good same for the get Operation

Methods

  1. $name the name of the var will be slugify to forge a technical_name.
  2. $value can be all kind of var
  3. $additionalAttribute description (string) cache_duration (int), Seconds use for fix cache or to set a duration to begin when in auto. _ cache_management fix or auto by default fixed. _ crypted (bool)

return An array with operation status and the element if created, if not list of errors.

  1. $entity the config id, the technical Name of a config element or a mixed array of both.
  2. $defaultReturnValue (defaut = Null) The default return value you want.
  3. $full if true will return all info about the configuration var

It can return null if data not found, an array of var if entity is an array,a single value or the value with all info if full = true.

  1. $entity $entity_id or technical_name
  2. $value (default Null), the new value or nothing if you just want to manage additional attributes.
  3. $additionalAttribute see dbConfig::set

Return An array with the detail of the operation and the configuration element if found.

  1. $entity entity id or technical_name
  2. $infoSup (default false) To get more intel about where the config has been found.

Return cache, db or true/false depends if $infoSup is true

Return Null, true or false

Commands

The clear cache specifically target elements used by dbConfig leaving other cached things intacts

The test has been done for basic use, auto cache management has not been tested at the moment.

Unit test

The testUnits replicate test of dbConfig:test

Roadmap

  1. test auto mode
  2. create unit test for benchmarking the package for the auto Cache Management

All versions of laravel-db-config with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ~7|~8
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 hiddencorporation/laravel-db-config contains the following files

Loading the files please wait ....