Download the PHP package jobmetric/laravel-setting without Composer

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

Contributors Forks Stargazers MIT License LinkedIn

Setting for laravel

This is a package for a dynamic setting across different Laravel projects.

Install via composer

Run the following command to pull in the latest version:

Documentation

To use the services of this package, please follow the instructions below.

Migrate the database

Run the following command to migrate the database:

Usage

Dispatch setting into the database

The dispatch method will create a new setting if it does not exist, otherwise it will update the existing setting.

The first parameter is the setting key, and the second parameter is an array of key-value pairs.

Since event is an extraneous task, it is not useful in this method, this value is optionally placed in the third parameter, so that if your program needs it, it can be set.

The data array keys must start with config_ which is the same code, otherwise the storage will not be done.

Key-value pairs are stored in the settings table on a record-by-record basis.

The value of the keys can be an array or string or boolean or integer or float.

When the settings are updated, the settings caches are cleared, and if each user executes a new request on the server, the system cache is rebuilt.

Get setting

The get method will return the value of the setting key.

The first parameter is the setting key.

The second parameter is the default value of the setting key. If the setting key does not exist, the default value will be returned.

The get method will return the value of the setting key.

Get all settings

The all method will return all settings.

Forget setting

The forget method will delete the setting code.

The first parameter is the setting code.

Has setting

The has method will return true if the setting code exists, otherwise it will return false.

The first parameter is the setting key.

The has method will return true if the setting code exists, otherwise it will return false.

Helper functions

Dispatch setting

The setting helper function will create a new setting if it does not exist, otherwise it will update the existing setting.

Forget setting

The forgetSetting helper function will delete the setting code.

Get setting

The getSetting helper function will return the value of the setting key.

Code settings

All the values set in the code form are returned.

Has setting

The hasSetting helper function will return true if the setting code exists, otherwise it will return false.

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-setting with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.1
laravel/framework Version >=9.19
jobmetric/laravel-package-core Version ^1.0
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 jobmetric/laravel-setting contains the following files

Loading the files please wait ....