PHPackages                             aurorawebsoftware/asetting - 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. aurorawebsoftware/asetting

ActiveLibrary

aurorawebsoftware/asetting
==========================

ASetting is a Laravel package that allows you to dynamically define your config definitions.

11.0.0(1y ago)148451MITPHPPHP ^8.2|^8.3

Since Jan 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AuroraWebSoftware/ASetting)[ Packagist](https://packagist.org/packages/aurorawebsoftware/asetting)[ Docs](https://github.com/aurorawebsoftware/asetting)[ GitHub Sponsors](https://github.com/AuroraWebSoftware)[ RSS](/packages/aurorawebsoftware-asetting/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (12)Versions (7)Used By (0)

ASetting Laravel Package
========================

[](#asetting-laravel-package)

[![A2AD6A93-7ED8-4793-BB24-F9CEDDDD45F4-21632-000042AB3BFCB4B4.png](assets%2FA2AD6A93-7ED8-4793-BB24-F9CEDDDD45F4-21632-000042AB3BFCB4B4.png)](assets%2FA2AD6A93-7ED8-4793-BB24-F9CEDDDD45F4-21632-000042AB3BFCB4B4.png)

Introduction
------------

[](#introduction)

ASetting is a Laravel package that allows you to manage settings dynamically in your Laravel applications. With this package, you can organize settings in groups stored in the database, supporting various types of settings for easy management.

Features
--------

[](#features)

- Introducing an interactive blade page where users can view and modify application settings. With this feature, users will be able to customize the behavior and preferences of the application according to their needs.

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

[](#installation)

You can add the ASetting package to your Laravel project by following the steps below.

### Installation via Composer

[](#installation-via-composer)

Add the package to your project using Composer.

```
composer require aurorawebsoftware/asetting
```

### Publish Configuration

[](#publish-configuration)

To publish the configuration file, run the following command:

```
php artisan vendor:publish --tag=asetting-config
```

This will add the `config/asetting.php` file to your project, which contains the configuration settings for the ASetting package.

### Migration

[](#migration)

Run the migration to create the database table used to store settings:

```
php artisan migrate
```

Usage
-----

[](#usage)

### ASetting Facade

[](#asetting-facade)

The ASetting Facade allows you to easily manage settings. Below are some basic functions and features provided by the Facade.

#### `group(string $group): self`

[](#groupstring-group-self)

Used to work with settings in a specific group.

```
ASetting::group('site')->getValue('title');
```

#### `groups(array $groups): self`

[](#groupsarray-groups-self)

Used to work with settings in multiple groups.

```
ASetting::groups(['site', 'mail'])->all();
```

#### `getValue(string $key): int|array|bool|string|null|SettingNotFoundException`

[](#getvaluestring-key-intarrayboolstringnullsettingnotfoundexception)

Used to get the value of a specific setting.

```
ASetting::group('site')->getValue('title');
```

#### `getTitle(string $key): string`

[](#gettitlestring-key-string)

Used to get the title of a specific setting.

```
ASetting::group('site')->getTitle('title');
```

#### `isVisible(string $key): bool`

[](#isvisiblestring-key-bool)

Used to check the visibility status of a specific setting.

```
ASetting::group('site')->isVisible('title');
```

#### `get(string $key): array`

[](#getstring-key-array)

Used to get all information about a specific setting.

```
ASetting::group('site')->get('title');
```

#### `getValues(array $keys): SettingNotFoundException|array`

[](#getvaluesarray-keys-settingnotfoundexceptionarray)

Used to get the values of a specific setting.

```
ASetting::group('site')->getValues(['title','name']);
```

#### `getValues(array $keys): SettingNotFoundException|array`

[](#getvaluesarray-keys-settingnotfoundexceptionarray-1)

Used to get the values of a specific settings.

```
ASetting::groups(['site','general'])->getValues(['title','name']);
```

#### `set(string $key, string|int|bool|array $value, string|null $title = null, bool|null $isVisible = null): bool|array`

[](#setstring-key-stringintboolarray-value-stringnull-title--null-boolnull-isvisible--null-boolarray)

Used to update or create the value of a specific setting.

```
ASetting::group('site')->set('title', 'New Title', 'Site Title', true);
```

#### `delete(string $key): bool|SettingNotFoundException`

[](#deletestring-key-boolsettingnotfoundexception)

Used to delete a specific setting.

```
ASetting::group('site')->delete('title');
```

#### `all(?string $group = null): array`

[](#allstring-group--null-array)

Used to get all settings grouped by groups or under a specific group.

```
ASetting::all(); // Get all settings
ASetting::group('site')->all(); // Get all settings under a specific group
```

#### `destroy(string $group): bool|SettingNotFoundException`

[](#destroystring-group-boolsettingnotfoundexception)

Used to delete all settings under a specific group.

```
ASetting::group('site')->destroy();
ASetting::groups(['site','general'])->destroy();
```

#### `add(string $group, string $key, string|int|bool|array $value, string $title = null, string $type = 'string', bool $isVisible = null): ASettingModel|SettingNotFoundException`

[](#addstring-group-string-key-stringintboolarray-value-string-title--null-string-type--string-bool-isvisible--null-asettingmodelsettingnotfoundexception)

Used to add a new setting.

```
ASetting::add('site', 'new_setting', 'Value', 'Setting Title', 'string', true);
```

API Usage
---------

[](#api-usage)

### Config

[](#config)

You can define tokens for APIs. You can also configure it by adding your own middleware.

```
return [
'api_token' => ['YOUR_BEARER_TOKEN_HERE'],
'api_middleware' => [
// YourMiddlewareClass::class
]
];
```

### Endpoint Details

[](#endpoint-details)

### getValue

[](#getvalue)

- **Endpoint:** `/api/asetting/getValue/{group}/{key}`
- **Method:** GET
- **Parameters:** `group` (string), `key` (string)

### getTitle

[](#gettitle)

- **Endpoint:** `/api/asetting/getTitle/{group}/{key}`
- **Method:** GET
- **Parameters:** `group` (string), `key` (string)

### isVisible

[](#isvisible)

- **Endpoint:** `/api/asetting/isVisible/{group}/{key}`
- **Method:** GET
- **Parameters:** `group` (string), `key` (string)

### get

[](#get)

- **Endpoint:** `/api/asetting/get/{group}/{key}`
- **Method:** GET
- **Parameters:** `group` (string), `key` (string)

### getValues

[](#getvalues)

- **Endpoint:** `/api/asetting/getValues`
- **Method:** POST
- **Parameters:** `group` (string|array), `keys` (array)

### set

[](#set)

- **Endpoint:** `/api/asetting/set`
- **Method:** PUT
- **Parameters:** `group` (string), `key` (string), `value` (string|array), `title` (string, optional), `is_visible` (bool, optional)

### add

[](#add)

- **Endpoint:** `/api/asetting/add`
- **Method:** POST
- **Parameters:** `group` (string), `key` (string), `value` (string|array|bool|int), `type` (string), `title` (string), `is_visible` (bool, optional)

### all

[](#all)

- **Endpoint:** `/api/asetting/all/{group?}`
- **Method:** GET
- **Parameters:** `group` (string, optional)

### delete

[](#delete)

- **Endpoint:** `/api/asetting/delete/{group}/{key}`
- **Method:** DELETE
- **Parameters:** `group` (string), `key` (string)

### destroy

[](#destroy)

- **Endpoint:** `/api/asetting/destroy/{group}`
- **Method:** DELETE
- **Parameters:** `group` (string)

### Error Handling

[](#error-handling)

In case of invalid requests or errors, the API will return a JSON response with a corresponding message and, if applicable, validation errors.

Feel free to copy and paste this documentation into your README file. Adjust the formatting as needed.

ASetting Command
----------------

[](#asetting-command)

This command allows you to interact with the ASetting package.

### Usage

[](#usage-1)

php artisan asetting {group=null} {key=null}

This command allows you to interact with the ASetting package.

1. Fetch a specific setting value:

```
php artisan asetting myGroup myKey

```

2. Fetch all settings in a specific group:

```
php artisan asetting myGroup

```

3. Fetch all settings:

```
php artisan asetting

```

### Note

[](#note)

- If the specified group or key is not found, an exception message will be displayed.
- The command returns the setting value, which can be a string, array, or other types, based on the configuration.

License
-------

[](#license)

The ASetting package is licensed under the MIT License.

---

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 77.8% 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 ~79 days

Total

5

Last Release

522d ago

Major Versions

1.0.3 → 11.0.02024-12-11

PHP version history (2 changes)1.0.0PHP ^8.1

11.0.0PHP ^8.2|^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/e79935c219efe1a3132a4c9f2b87da38268fccacfcb43c453275ceafdd1ed23f?d=identicon)[emreakay](/maintainers/emreakay)

---

Top Contributors

[![akiftezcan38](https://avatars.githubusercontent.com/u/77398471?v=4)](https://github.com/akiftezcan38 "akiftezcan38 (7 commits)")[![emreakay](https://avatars.githubusercontent.com/u/794216?v=4)](https://github.com/emreakay "emreakay (2 commits)")

---

Tags

laravelAuroraWebSoftwareasetting

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/aurorawebsoftware-asetting/health.svg)

```
[![Health](https://phpackages.com/badges/aurorawebsoftware-asetting/health.svg)](https://phpackages.com/packages/aurorawebsoftware-asetting)
```

###  Alternatives

[mozex/laravel-scout-bulk-actions

A Laravel Scout extension for bulk importing and flushing of all models.

1033.4k](/packages/mozex-laravel-scout-bulk-actions)[aurorawebsoftware/arflow

ArFlow is a Laravel package that allows you to implement workflow management for your Laravel Eloquent models.

233.0k2](/packages/aurorawebsoftware-arflow)[aurorawebsoftware/acalendar

This is my package acalendar

241.0k2](/packages/aurorawebsoftware-acalendar)[aurorawebsoftware/connective

This is my package connective

101.3k1](/packages/aurorawebsoftware-connective)

PHPackages © 2026

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