Weave Code
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

Darvin Config Bundle Laravel Package

darvinstudio/darvin-config-bundle

View on GitHub
Deep Wiki
Context7

DarvinConfigBundle

This bundle provides configuration layer for Symfony-based applications.

Usage

Create class which implements Darvin\ConfigBundle\Configuration\ConfigurationInterface or extends Darvin\ConfigBundle\Configuration\AbstractConfiguration:

// AppBundle\Config\AppConfig.php

use Darvin\ConfigBundle\Configuration\AbstractConfiguration;
use Darvin\ConfigBundle\Parameter\ParameterModel;

class AppConfig extends AbstractConfiguration
{
    public function getModel(): iterable
    {
        yield new ParameterModel('array_var', ParameterModel::TYPE_ARRAY, array(1, 2, 3));
        yield new ParameterModel('boolean_var', ParameterModel::TYPE_BOOL, false);
        yield new ParameterModel('integer_var', ParameterModel::TYPE_INTEGER, 777);
        yield new ParameterModel('string_var', ParameterModel::TYPE_STRING, 'test123');
    }
}

Define created class as a service tagged with "darvin_config.configuration" tag:

services:
    app.config:
        class: AppBundle\Config\AppConfig
        tags:
            - { name: darvin_config.configuration }
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.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle