Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tobytwigger/laravel-settings

Strongly typed, feature rich settings for Laravel and Vue.
https://github.com/tobytwigger/laravel-settings

config configuration database laravel open-source persistence php settings settings-repository settings-storage vue vuejs

Last synced: 3 days ago
JSON representation

Strongly typed, feature rich settings for Laravel and Vue.

Awesome Lists containing this project

README

        

# Laravel Settings
> Powerful and feature rich settings for Laravel.

[![Latest Version](https://img.shields.io/github/v/release/tobytwigger/laravel-settings?label=Latest%20Version&sort=semver&style=plastic)](https://github.com/tobytwigger/laravel-settings/releases)
[![Build](https://github.com/tobytwigger/laravel-settings/actions/workflows/build-status.yml/badge.svg?branch=develop)](https://github.com/tobytwigger/laravel-settings/actions/workflows/build-status.yml)

## Contents

* [About the Project](#about)
* [Documentation](#documentation)
* [Contributing](#contributing)
* [Copyright and Licence](#copyright-and-licence)
* [Contact](#contact)

## About

Laravel Settings lets you persist strongly typed settings within your app, with support for
- Validation, encryption and authorization controls provided.
- Global settings and user-set settings.
- Native integration with Vue JS.

## Example

```php
\Settings\Setting::setValue('dark_mode', true);
echo \Settings\Setting::getValue('dark_mode'); // true
```

```vue


Toggle

export default {
methods: {
toggleDarkMode() {
this.$setting.dark_mode = !this.$setting.dark_mode;
}
}
}

```

## Documentation

We've taken care over documenting everything you'll need to get started and use Laravel settings fully.

[Check out the docs](https://tobytwigger.github.io/laravel-settings) on our documentation site.

[comment]: <> (To build them locally, you'll need to have ruby (we'd recommend using rbenv) and the gem bundler (https://bundler.io/) installed. Run `bundle install && bundle exec jekyll serve` in the docs folder.)

## Contributing

Contributions are welcome! Before contributing to this project, familiarize
yourself with [CONTRIBUTING.md](CONTRIBUTING.md).

## Copyright and Licence

This package is copyright © [Toby Twigger](https://github.com/tobytwigger)
and licensed for use under the terms of the MIT License (MIT). Please see
[LICENCE.md](LICENCE.md) for more information.

## Contact

For any questions, suggestions, security vulnerabilities or help, open an issue or email me directly at [[email protected]](mailto:[email protected])