Download the PHP package e2d2-dev/filament-fqn-settings without Composer

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

Filament FQN Settings

Latest Version on Packagist

Create, manage and keep track of your settings with ease.

FQN-Settings Concept

Features

Table of Contents

File Structure

Installation

The Package is available for Filament v3 and v4.

Install Using Composer

Register to Panel

Add FqnSettingsPlugin::make() into your Filament PanelProvider class panel() method to register the ValueResource:

Auto Discovery

Pages Auto Discovery

Pages in App\Filament\Settings\Pages will be discovered automatically. The SettingPage is a regular Filament Page and can be added to the pages() method.

Settings Auto Discovery

More directories can be added to the config file:

Package Auto Discovery

Directories can also be added in the register() method inside Service Providers:

Commands

Create Setting Command

Creates a new setting in App\Settings. The name can contain backslashes (\), which will create nested folders and namespaces.

Create Schema Command

Creates a new setting schema in App\Filament\Settings\Schemas.

Create Page Command

Creates a new setting page in App\Filament\Settings\Pages.

Working with Settings

Adding Values to Schema

One schema can hold many setting values. Register them in the $fqnSettings array:

Adding Fields to Schemas

Add components to the schema() method like in regular resource pages. Pass the class name calling statically getStatePath().
This will set the state path of the component accordingly:

Using $get() and $set()

Both methods need a state path to work properly. This can be achieved by using getStatePath():

Modifying Schema Return Type

A Schema can be returned as plain array, Section, Group, Fieldset, Tab, or Tabs by changing the $returnAs property. An Enum is provided:

Schema - Common Methods

Methods like Heading, Description, Icon, etc., which are common across layout components, can be used in the schema class like on resource pages. This allows switching layouts with minimal effort:

Schema - Tabs

Methods ending with "Tab" will be called automatically. The function name will be converted to title using str($name)->title():

Adding Schemas to Pages

One page can hold many setting schemas. Register them in the $settingComponents array:

Mutating Data Before Save

You can mutate the data before it's saved, just like on regular resource pages:

Fill Additional Data

Add more data to the page:

Add Components Before/After Schema

You can add additional components before or after the schema:

Setting Value Resource

The package includes a Filament resource for managing setting values directly.

Sync Action

The Sync action calls the artisan settings:sync command to synchronize settings between the database and the code.

Create Page

When your app is running in the "local" environment, settings can be created both in the database and as a file.

Cache Action

The Cache action allows you to purge a specific value from the cache, which can be useful during development or when troubleshooting.

Special Features

Lost Settings

When a setting class is moved or is no longer available, the setting will persist in the database. These entries will be marked as "lost" in the UI, allowing you to identify and manage orphaned settings.

Encrypted Settings

Settings that use encryption are marked with a green fingerprint icon in the UI, making it easy to identify which values are stored securely.

Contributing

Ideas, bug reports, and pull requests are welcome! Feel free to contribute to the development of this package.

Credits


All versions of filament-fqn-settings with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
filament/filament Version ^3.3
e2d2-dev/laravel-fqn-settings Version ^1.0.12
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 e2d2-dev/filament-fqn-settings contains the following files

Loading the files please wait ....