Download the PHP package oi-lab/oi-laravel-settings without Composer

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

OI Laravel Settings

Latest Version on Packagist Total Downloads Tests

Scoped, typed application settings for Laravel. Key/value pairs live in a settings table, are cached per scope, and are cast to real PHP types — including spatie/laravel-data value objects — through a configurable type registry.

Features

How It Works

A setting is a row keyed by [scope, key]. scope is any string|int identifier (a shop id, a team id, a locale…) or null for the global layer. Reads resolve in order — the current scope, then global, then the caller's default — so a single global default can be overridden per scope.

The value column is stored as a string and cast to its runtime type from the type column via the type registry, so booleans come back as bool, JSON as arrays, and registered Data classes as fully-typed value objects.

Requirements

Installation

Publish & Migrate

Publish the configuration or migration if you need to customise them:

Configuration

config/oi-laravel-settings.php controls the table, model, scope resolver, cache and the type registry:

See the configuration reference.

Usage

Reading & writing

Scopes

Every setting belongs to an optional scope (null = global). Reads resolve current scope → global → default.

Typed value objects

Register a Spatie\LaravelData\Data class under a type key and it is cast automatically to/from JSON:

Seeding

Customizing the Model

The model is resolved through OiLaravelSettings::settingModel(), so you can point config('oi-laravel-settings.models.setting') at a subclass to add relations or behaviour. See Custom model.

AI Assistant Skills

The package ships an oilab-laravel-settings skill. Install it into a host app:

Testing

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

When contributing:

  1. Write tests for new features
  2. Ensure all tests pass: vendor/bin/pest
  3. Follow existing code style
  4. Update documentation as needed

License

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

Credits

Olivier Lacombe - Creator and maintainer

Olivier is a Product & Technology Director based in Montpellier, France, with over 20 years of experience innovating in UX/UI and emerging technologies. He specializes in guiding enterprises toward cutting-edge digital solutions, combining user-centered design with continuous optimization and artificial intelligence integration.

Projects & Resources:

Support

For support, please open an issue on the GitHub repository.


All versions of oi-laravel-settings with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0|^13.0
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/cache Version ^11.0|^12.0|^13.0
illuminate/notifications Version ^11.0|^12.0|^13.0
spatie/laravel-data Version ^4.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 oi-lab/oi-laravel-settings contains the following files

Loading the files please wait ...