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-shield]: https://img.shields.io/github/contributors/jobmetric/laravel-setting.svg?style=for-the-badge

![Contributors][contributors-shield] Forks Stargazers MIT License LinkedIn

Laravel Setting

Build Dynamic Settings. Manage Them Safely.

Laravel Setting lets you define application settings as form-driven classes and store/retrieve them from a database-backed cache. Stop scattering config values across controllers and configs. Use a unified settings layer with validation, caching, discovery, and clear storage keys.

Why Laravel Setting?

Form-Driven Settings

Define each setting form by extending JobMetric\Setting\Contracts\AbstractSetting and returning a JobMetric\Form\FormBuilder that describes fields.

Application-Key Storage

Each setting form produces a stable formName() (application_key). Values are stored per field under that form.

Fast Reads with Cache

Reads are cached under config('setting.cache_key') (default: SETTING). Cache is invalidated whenever settings are stored or forgotten.

Events and Lifecycle Control

Optionally fire StoreSettingEvent and ForgetSettingEvent when storing or deleting settings.

Namespaced Discovery

Register one or more namespaces in SettingNamespaceRegistry. SettingRegistry can discover and validate all AbstractSetting subclasses inside them.

What is a Setting Form?

A setting form is a class that extends AbstractSetting and implements:

From these, formName() is built as application() . '_' . key() and used as the main storage identifier (form column in the settings table).

What Awaits You?

By adopting Laravel Setting, you can:

Quick Start

Install Laravel Setting via Composer:

Run migrations:

Create a setting form class:

The command also creates English and Persian translation files and a ready-to-edit FormBuilder example. Consumers should call resolvedForm() when rendering; it dispatches BuildingSettingForm so listeners can add validated fields before the same builder is used for persistence.

Edit the generated class and implement form() by adding the desired fields using FormBuilder.

Settings drivers may also override domiStyles() and domiScripts() to describe page-only assets. The package returns these declarations as metadata and does not depend on Domi itself; a CMS adapter can register them with its document renderer.

Usage

Store settings by form name (raw)

Use dispatchByForm() (or the dispatchSetting() helper). Keys in the object must start with the form prefix ({application_key}_...).

Or via helper:

Store settings by setting class (validated)

Use dispatch() (or dispatchSettingFromClass()) for class-based dispatch with DTO validation via FormBuilderRequest.

Password fields (and fields marked with sensitive()) are encrypted at rest and preserve their stored value when submitted blank. Managed file fields store uploads on the public disk and replace the previous file only after database persistence succeeds.

Read settings

Read from a setting class

Forget settings (delete + cache invalidation)

Clear cache

Documentation

Ready to transform your Laravel applications? Our comprehensive documentation is your gateway to mastering Laravel Setting:

📚 Read Full Documentation ->

The documentation includes:

Contributing

Thank you for participating in laravel-setting. A contribution guide can be found here.

License

The laravel-setting is open-sourced software licensed under the MIT license. 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.34
jobmetric/laravel-form Version ^1.6
jobmetric/laravel-custom-field Version ^2.3
jobmetric/laravel-event-system Version ^2.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 jobmetric/laravel-setting contains the following files

Loading the files please wait ...