Download the PHP package postare/db-config without Composer

On this page you can find all versions of the php package postare/db-config. 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 db-config

DB Config

Latest Version on Packagist Total Downloads

DB Config is a Filament plugin that provides a simple, database-backed key/value store for application settings, along with a streamlined way to build settings pages using Filament. It exposes a clean API for reading and writing values and uses transparent caching under the hood.

It is framework-friendly, requires no custom Eloquent models in your app, and persists values as JSON in a dedicated table.

Requirements

Installation

Install the package via Composer (choose the version matching your Laravel version):

Publish and run the migration:

This creates a db_config table used to store your settings.

Compatibility

Usage of the make:db_config command

The package provides an Artisan generator that quickly creates a Filament settings page (Page class + Blade view).

Command:

Parameters:

Examples:

What is generated:

Behavior:

Note: the generated class extends Postare\DbConfig\AbstractPageSettings and the view is placed under resources/views/filament/config-pages/.

How it works

Settings are organized by a two-part key: group.setting, with optional nested sub-keys (e.g. group.setting.nested.key).

Under the hood:

Filament integration

This package ships with an Artisan generator and an abstract Page class to quickly scaffold Filament settings pages.

Generate a settings page (and its Blade view):

What gets generated:

Page lifecycle and saving:

Defining the page content:

Example page content (Filament schema):

Database schema

The db_config table contains:

There is a unique index on (group, key). Timestamps are present but not used by the package logic and may remain null depending on your database defaults.

API

The package exposes a minimal API for interacting with settings.

Read a value (helper):

Read a value (class):

Write a value:

Read an entire group as associative array:

Facade (optional):

The db_config() helper is auto-registered by the package and is the recommended way to read values in application code.

Keys and nested data

Examples:

Caching behavior

Return values and defaults

Database engines

This package stores settings as JSON. Ensure your chosen database supports JSON columns. For SQLite (common in tests), JSON is stored as text and works transparently for typical use cases.

Security considerations

Versioning

This package follows semantic versioning. Use a version constraint compatible with your Laravel version as shown in the installation section.

License

The MIT License (MIT). See the LICENSE file for more details.


All versions of db-config with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^4.0
illuminate/contracts Version *
spatie/laravel-package-tools Version ^1.15.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 postare/db-config contains the following files

Loading the files please wait ....