https://github.com/bitfertig/laravel-options
https://github.com/bitfertig/laravel-options
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bitfertig/laravel-options
- Owner: Bitfertig
- License: mit
- Created: 2021-02-13T18:22:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-13T21:44:29.000Z (over 5 years ago)
- Last Synced: 2025-03-18T13:57:08.527Z (over 1 year ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bitfertig/laravel-options
A package for Laravel that offers a key-value-store.
## Install
### Install via Packagist
...Todo...
### Install via Git-Repo
Add the following to ```composer.json```:
```json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/Bitfertig/laravel-options.git"
}
],
"require": {
"bitfertig/laravel-options": "dev-main"
}
}
```
Add the migration file to your project:
```bash
php artisan vendor:publish --provider="Bitfertig\Options\OptionsServiceProvider"
```
Run the migration file:
```bash
php artisan migrate
```
## Usage
```php
$val = option($key)->get($default); // Getter
option($key)->set($val); // Setter
option($key)->remove(); // Remove
```
## Author
Aurelian "dipser" Hermand