PHPackages                             alexusmai/easy-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. alexusmai/easy-settings

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

alexusmai/easy-settings
=======================

Laravel + Vue - easy settings for your application

v1.2.3(7y ago)9401MITPHPPHP &gt;=5.6.4

Since Jan 31Pushed 7y ago2 watchersCompare

[ Source](https://github.com/alexusmai/easy-settings)[ Packagist](https://packagist.org/packages/alexusmai/easy-settings)[ Docs](https://github.com/alexusami/easy-settings)[ RSS](/packages/alexusmai-easy-settings/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (9)Used By (0)

Easy settings - Laravel + Vue package
=====================================

[](#easy-settings---laravel--vue-package)

[![Latest Stable Version](https://camo.githubusercontent.com/c2a57cf9756841658929d9d4fd1a75b316ff2069ebf06f8dfa9a13204ff60bec/68747470733a2f2f706f7365722e707567782e6f72672f616c657875736d61692f656173792d73657474696e67732f762f737461626c65)](https://packagist.org/packages/alexusmai/easy-settings)[![Total Downloads](https://camo.githubusercontent.com/5314373ddc4c28bf20145e64bf26376f258e97682b48994627e5ff71e0cd98b8/68747470733a2f2f706f7365722e707567782e6f72672f616c657875736d61692f656173792d73657474696e67732f646f776e6c6f616473)](https://packagist.org/packages/alexusmai/easy-settings)[![Latest Unstable Version](https://camo.githubusercontent.com/5f92feb9d86b22a641883d84862384135c41745edfbfb1caeda04d9343a2f043/68747470733a2f2f706f7365722e707567782e6f72672f616c657875736d61692f656173792d73657474696e67732f762f756e737461626c65)](https://packagist.org/packages/alexusmai/easy-settings)[![License](https://camo.githubusercontent.com/03c337f8ab66750876ce1cf9d6f2826bd07826fee062e6a02a38923387928d94/68747470733a2f2f706f7365722e707567782e6f72672f616c657875736d61692f656173792d73657474696e67732f6c6963656e7365)](https://packagist.org/packages/alexusmai/easy-settings)

[![Easy Settings Vue App](https://camo.githubusercontent.com/2be762189159e30db836e2cb3ccfb4841eca42abdec6ef1ae233d5d5949c8960/68747470733a2f2f7261772e6769746875622e636f6d2f616c657875736d61692f6c61726176656c2d7675652d656173792d73657474696e67732f6d61737465722f7372632f6173736574732f6573657474696e67732e6769663f7261773d74727565)](https://camo.githubusercontent.com/2be762189159e30db836e2cb3ccfb4841eca42abdec6ef1ae233d5d5949c8960/68747470733a2f2f7261772e6769746875622e636f6d2f616c657875736d61692f6c61726176656c2d7675652d656173792d73657474696e67732f6d61737465722f7372632f6173736574732f6573657474696e67732e6769663f7261773d74727565)

The application is designed for convenient and fast work with simple data of your application.

For example, you need to place a phone number in the footer of your site. You can enter it directly into the HTML code, but if you need to change it, you'll have to dig into the code. And if you make a website to a client, then he will not even know how to change this number. Of course you can write your own CRUD's for all items ... or you can just use this package.

This package is suitable for storing such data as:

- strings
- numbers, phone numbers,
- small blocks of text
- Boolean types (true, false) ON / OFF

Also, if you have a multilingual site, then you will also be able to make your work easier, and save the required data in several languages.

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

[](#installation)

Composer

```
composer require alexusmai/easy-settings
```

If you have Laravel 5.4 or earlier version, then add service provider to config/app.php and

```
Alexusmai\EasySettings\EasySettingsServiceProvider::class,
```

add alias.

```
'ESettings' => Alexusmai\EasySettings\Facades\EasySettingsFacade::class,
```

Publish config file (easy-settings.php)

```
php artisan vendor:publish --tag=easy-settings-config
```

You can install npm package directly and use it in your vue application - more information about it - [laravel-vue-easy-settings](https://github.com/alexusmai/laravel-vue-easy-settings)

OR

Publish js and css files - laravel-vue-easy-settings package (compiled, minimised)

```
php artisan vendor:publish --tag=easy-settings-assets
```

Run migration -&gt; this command create "easy-settings" table

```
php artisan migrate
```

Settings
--------

[](#settings)

Open configuration file - config/easy-settings.php

```
/**
     * List of languages
     * add the necessary ones to create additional fields(field type "Lang")
     */
    'languages'     => ['en', 'ru'],

    /**
     * Development mode
     * Show - edit/add settings group
     */
    'dev'           => true,

    /**
     * Save data to laravel cache
     * set null, 0 - if you don't need cache (default)
     * if you want use cache - set the number of minutes for which the value should be cached
     */
    'cache'         => null,

    /**
     * Middleware
     * Add your middleware name to array -> ['web', 'auth', 'admin']
     * !!!! RESTRICT ACCESS FOR NON ADMIN USERS !!!!
     */
    'middleware'    => ['web', 'auth']
```

In '`languages`' array you can add the necessary languages

To create and edit groups of settings, you must use the `developer mode`. After you have added the necessary groups of settings, disable the developer mode if you do not want users to be able to change the structure, validation rules, delete, etc.

`Use caching, this will avoid unnecessary queries to the database`

**Be sure to add your middleware to restrict access to the application**

### Open the view file where you want to place the application block, and add:

[](#open-the-view-file-where-you-want-to-place-the-application-block-and-add)

- add a csrf token to head block if you did not do it before

```

```

- the package uses some styles of Bootstrap 4, if you already use it, then you do not need to connect any styles. Otherwise add -

```

```

- add js (laravel-vue-easy-settings)

```

```

- add div for application

```

```

Usage
-----

[](#usage)

Now it remains to add the necessary settings groups, add fields, validation rules and can be used in your code.

```
ESettings::get('groupName.settingsName');
ESettings::get('groupName.settingsName', $defaultValue);
```

- If you have chosen 'radios' type, the result will be a boolean type (true or false).
- If "Lang" type is selected, the result will depend on the settings of the language of your application, at the time of the call.
- If the desired language is not found - will be use fallback locale (see config/app.php) or default value.

```
'fallback_locale' => 'en',
```

### Seeder

[](#seeder)

Sometimes you need to roll back the database while developing the project, and the package data will be lost. In order to avoid this, you can run the command

```
php artisan esettings:seed
```

That will generate a seeder (EasySettingsSeeder) that will contain your data, and you will need to add it to your seeders list (database/seeds/DatabaseSeeder.php)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~56 days

Recently: every ~96 days

Total

8

Last Release

2625d ago

Major Versions

0.1.0 → 1.0.02018-02-03

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7473505?v=4)[Aleksandr Manekin](/maintainers/alexusmai)[@alexusmai](https://github.com/alexusmai)

---

Top Contributors

[![alexusmai](https://avatars.githubusercontent.com/u/7473505?v=4)](https://github.com/alexusmai "alexusmai (11 commits)")

---

Tags

Settingslaravel 5vue

### Embed Badge

![Health badge](/badges/alexusmai-easy-settings/health.svg)

```
[![Health](https://phpackages.com/badges/alexusmai-easy-settings/health.svg)](https://phpackages.com/packages/alexusmai-easy-settings)
```

###  Alternatives

[akaunting/laravel-setting

Persistent settings package for Laravel

495805.1k7](/packages/akaunting-laravel-setting)[cretueusebiu/laravel-vue-spa

A Laravel-Vue SPA starter project template.

3.0k18.8k](/packages/cretueusebiu-laravel-vue-spa)[aliyuncs/aliyun-oss-php-sdk-laravel

A simple Laravel 5 and lumen service provider for including the Oss PHP SDK for PHP.

7935.4k2](/packages/aliyuncs-aliyun-oss-php-sdk-laravel)[overtrue/laravel-options

Global options module for Laravel application.

5218.5k3](/packages/overtrue-laravel-options)

PHPackages © 2026

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