Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Simple Config Laravel Package

bitscout/simple-config

View on GitHub
Deep Wiki
Context7

SimpleConfig

A simple way to configure a few global variables in SonataAdmin. Define them in YAML, let users edit them in the admin interface.

Status: Work in progress, not yet implemented

Installation

Simply composer require bitscout/simple-config and then add this line to your bundles.php:

Bitscout\SimpleConfig\BitscoutSimpleConfigBundle::class => ['all' => true],

Configuration

Create the file config/packages/bitscout_simple_config.yaml:

bitscout_simple_config:
  fields:
    foo:
      label: Fubar
      type: int
      default: bar
      show: true   # optional, default true

This immediately will provide you with the environment variable SIMPLE_CONFIG_FOO with the value "bar".

In your sonata_admin.yaml, add a menu entry to the route admin_app_bitscout_simple_config_list.

Administration

TODO

Add Sonata admin (list/edit) to set a value in the database, load that value to replace the default.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel