Download the PHP package hankz/laravel-system-settings without Composer

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

English Document | 繁體中文文件

Laravel System Settings

A Laravel package designed for managing system configuration values in database.

Installation

1. Composer install

Run the Composer require command from the Terminal:

2. Setup

This package supports Laravel's auto-discovery feature and it's ready to use once installed.

3. Publishing the config file

You need publish the config file.

4. Configuration

You can configure this package in config\system-settings.php

5. Migration

You should also run the migrate command.

Usage

This package is very simple and provides the following methods for your use.

new(string $key, string $value, string $group = null, string $description = null): bool

Create a new system setting.

Parameters:

Example:

Returns:


has(string $key, string $group = null): bool

The has() method checks if a system setting exists with the given key and optional group.

Parameters:

Example:

Returns:


all(): array

Return all system settings with key and value in the format of key-value pairs.

Example:

Returns:


get(string $key, string $group = null, string $default = null): null|string

The get() method allows you to retrieve the value using both the key name and group name, and it also accepts a default value.

Parameters:

Example:

Returns:


set(string $key, string $value, string $group = null, string $description = null, bool $createWhenNotExist = false): void

The set() method allows you to update the value and description of an existing system setting or create a new one if it does not exist.

Parameters:

Example:

Returns:


getByGroup(string $group): array

Retrieve all system settings within a specified group.

Parameters:

Example:

Returns:


setByGroup(array $settings, string $group = null, bool $createWhenNotExist = false): void

Update or create multiple system settings within a specified group.

Parameters:

Example:

Returns:


delete(string $key, string $group = null): bool|null

Delete a system setting with the specified key and optional group.

Parameters:

Example:

Returns:


To-do list

License

MIT License © 2023 Hankz


All versions of laravel-system-settings with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
laravel/framework Version >=7.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 hankz/laravel-system-settings contains the following files

Loading the files please wait ....