Download the PHP package agroezinger/filament-app-settings without Composer

On this page you can find all versions of the php package agroezinger/filament-app-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 filament-app-settings

agroezinger/filament-app-settings

Flexible, polymorphic key-value settings for Laravel with multi-tenancy and cascading fallback support.

Features

Requirements

Installation

1. Require the package

2. Publish and run the migration

This creates the app_settings table. The package registers itself automatically via Laravel's package auto-discovery — no manual provider registration needed.

3. Done

Database schema

Basic usage

Global helper

Model-scoped settings

Bulk write

Explicit tenant ID

Useful in seeders or console commands where no Filament tenant is active:

Model-scoped bulk read

Retrieve all settings for a given key across every model of a type:

Fallback chain

get() resolves settings in this order, returning the first non-null match:

  1. Model-specific in current tenant (if $model is provided)
  2. Tenant-wide (model_id = 0, model_type = 'system', current tenant)
  3. System-wide (tenant_id = 0) — only checked when inside a tenant context

This lets you define global defaults at system level and override them per tenant or per model.

Multi-tenancy

The tenant ID is resolved automatically:

No configuration required if you use Filament. For custom tenant resolution, extend AppSettings and override getTenantId().

Extending

Stored value types

value is a native JSON column. Eloquent's json cast handles encoding and decoding automatically:

PHP value stored MySQL JSON PHP value retrieved
'true' (string) "true" 'true' (string)
true (bool) true true (bool)
42 (int) 42 42 (int)
['a', 'b'] (array) ["a","b"] ['a', 'b'] (array)
null null null

Note: Avoid querying the app_settings table with raw DB::table() and ->where('value', 'some-string') — MySQL's JSON column comparison does not match SQL strings against JSON-encoded strings directly. Use the AppSettings service instead, or apply JSON_UNQUOTE(value) = ? in raw queries.

Changelog

See CHANGELOG.md.

License

MIT — see LICENSE.md.


All versions of filament-app-settings with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
illuminate/database Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
spatie/laravel-package-tools Version ^1.16
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 agroezinger/filament-app-settings contains the following files

Loading the files please wait ...