PHPackages                             josefo727/filament-general-settings - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. josefo727/filament-general-settings

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

josefo727/filament-general-settings
===================================

A Filament plugin for managing general settings in a Laravel application

2.0.5(7mo ago)010MITPHPPHP ^8.2

Since Oct 1Pushed 7mo agoCompare

[ Source](https://github.com/josefo727/filament-general-settings)[ Packagist](https://packagist.org/packages/josefo727/filament-general-settings)[ RSS](/packages/josefo727-filament-general-settings/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (6)Used By (0)

Filament General Settings
=========================

[](#filament-general-settings)

[![English](https://camo.githubusercontent.com/7f4faafd6717d4c7f6028612accbf0cea51d686697e485f6d46031690679a657/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e672d456e676c6973682d626c75652e737667)](README.md)[![Español](https://camo.githubusercontent.com/2646c96b4c79583c4afe373edee529eec3abdc68219bdbfb87784b51fd52d572/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e672d457370612543332542316f6c2d7265642e737667)](README.es.md)

A Filament plugin for managing general settings in a Laravel application.

Features
--------

[](#features)

- Manage general settings through a Filament interface
- Support for various data types (string, integer, float, boolean, array, json, date, time, datetime, url, email, emails, password)
- Dynamic form inputs based on data type
- Encryption support for password values
- Multilingual support (English and Spanish)
- Table prefix configuration

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Laravel 11.28 or higher
- Filament 4.0 or higher

Installation
------------

[](#installation)

1. Install the package via Composer:

    ```
    composer require josefo727/filament-general-settings
    ```
2. Run the installation command:

    ```
    php artisan filament-general-settings:install
    ```
3. Run the migrations:

    ```
    php artisan migrate
    ```

Configuration
-------------

[](#configuration)

After installation, you can publish the configuration file:

```
php artisan vendor:publish --tag=filament-general-settings-config
```

This will create a `filament-general-settings.php` file in your config directory. You can customize the following options:

```
return [
    // Table configuration
    'table' => [
        'name' => 'general_settings',
        'prefix' => env('FILAMENT_GENERAL_SETTINGS_TABLE_PREFIX', ''),
    ],

    // Encryption configuration
    'encryption' => [
        'enabled' => true,
        'key' => env('FILAMENT_GENERAL_SETTINGS_ENCRYPTION_KEY', 'some_default_key'),
    ],

    // Password display configuration
    'show_passwords' => env('FILAMENT_GENERAL_SETTINGS_SHOW_PASSWORDS', false),

    // Navigation configuration
    'navigation' => [
        'group' => 'Settings',
        'icon' => 'heroicon-o-cog',
        'sort' => 1,
    ],
];
```

Integration with Filament Admin Panel
-------------------------------------

[](#integration-with-filament-admin-panel)

### Register the Plugin

[](#register-the-plugin)

To add the General Settings to your Filament Admin Panel, you need to register the plugin in your `App\Providers\Filament\AdminPanelProvider`:

```
use Josefo727\FilamentGeneralSettings\FilamentGeneralSettingsPlugin;

// ...

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugins([
            FilamentGeneralSettingsPlugin::make(),
            // Other plugins...
        ]);
}
```

### Add Alias (Optional)

[](#add-alias-optional)

#### Laravel 10 and 11

[](#laravel-10-and-11)

For easier access to the GeneralSetting model without having to import it, you can add an alias in your `config/app.php` file:

```
'aliases' => [
    // ...
    'GeneralSetting' => Josefo727\FilamentGeneralSettings\Models\GeneralSetting::class,
],
```

#### Laravel 12

[](#laravel-12)

For Laravel 12, you can register the alias in your `App\Providers\AppServiceProvider`:

```
use Illuminate\Foundation\AliasLoader;
use Josefo727\FilamentGeneralSettings\Models\GeneralSetting;

public function register(): void
{
    $loader = AliasLoader::getInstance();
    $loader->alias('GeneralSetting', GeneralSetting::class);
}
```

Usage
-----

[](#usage)

### Accessing Settings

[](#accessing-settings)

You can access settings in your application using the provided facade:

```
// Get a setting value
$value = GeneralSetting::getValue('setting_name');

// Get a setting value with a default
$value = GeneralSetting::getValue('setting_name', 'default_value');

// Using the helper function to get a setting value
$value = getSetting('setting_name');

// Using the helper function to get a setting value with a default
$value = getSetting('setting_name', 'default_value');

// Check if a setting exists
if (GeneralSetting::has('setting_name')) {
    // Do something
}

// Set a setting value
GeneralSetting::create([
    'name' => 'setting_name',
    'value' => 'value',
    'type' => 'string',
    'description' => 'Description'
]);

// Remove a setting
GeneralSetting::remove('setting_name');
```

### Data Types

[](#data-types)

The package supports the following data types:

- `string`: Text values
- `integer`: Integer values
- `float`: Floating point values
- `boolean`: Boolean values (true/false)
- `array`: Array values (stored as comma-separated strings)
- `json`: JSON values
- `date`: Date values
- `time`: Time values
- `datetime`: Date and time values
- `url`: URL values
- `email`: Email values
- `emails`: Multiple email values (stored as comma-separated strings)
- `password`: Password values (can be encrypted)

### Translations

[](#translations)

The package comes with English and Spanish translations. You can publish the translation files to customize them:

```
php artisan vendor:publish --tag=filament-general-settings-translations
```

Testing
-------

[](#testing)

```
./vendor/bin/phpunit
```

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance64

Regular maintenance activity

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

221d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/043c43379c101d455e78c1e52ea439610eaf5104ba448cb9099695391882ad0a?d=identicon)[josefo727](/maintainers/josefo727)

---

Top Contributors

[![josefo727](https://avatars.githubusercontent.com/u/39111029?v=4)](https://github.com/josefo727 "josefo727 (30 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/josefo727-filament-general-settings/health.svg)

```
[![Health](https://phpackages.com/badges/josefo727-filament-general-settings/health.svg)](https://phpackages.com/packages/josefo727-filament-general-settings)
```

###  Alternatives

[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)[jibaymcs/filament-tour

Bring the power of DriverJs to your Filament panels and start a tour !

12247.8k](/packages/jibaymcs-filament-tour)[marcelweidum/filament-expiration-notice

Customize the livewire expiration notice

9169.0k4](/packages/marcelweidum-filament-expiration-notice)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
