Giter VIP home page Giter VIP logo

Package Installation

composer require one/system --dev

Options.php

Intelligent options system

Example Usage

<?php
require_once __DIR__ ."/vendor/autoload.php";

use System\Essence\Options;

$defaults = [
    'value-1' => 1,
    'value-2' => [
        'sub-value-1' => 3,
        'sub-value-2' => [
            'sub-sub-value-1' => 33,
            'sub-sub-value-2' => 2
        ],
        'sub-value-3' => [
                'val-1' => 'super',
                'val-2' =>'duper',
                'val-3' => 'puper'
        ],
        'sub-value-4' => 1
    ],
];

$options = [
    'value-1' => 1,
    'value-2' => [
        'sub-value-1' => 3,
        'sub-value-2' => ['sub-sub-value-1'=> 33],
        'sub-value-3' => [
            'val-1' => 'super',
        ],
    ]
];

$opts = Options::init($defaults, $options, ['value-2.sub-value-2', 'value-2.sub-value-3']);

Evgeny Kalashnikov's Projects

ivue icon ivue

ivue – Infinite Vue. Advanced Class Architecture for Vue 3+.

octopus icon octopus

Octopus - Laravel Eloquent Infinite Polymorphic Relationship Interface

quasar-ui-x icon quasar-ui-x

Advanced UX Components for Quasar Framework written in Vue 3

shopify icon shopify

Shopify Products API Integration with Laravel 10.10

vue-dd icon vue-dd

Vue component for live display of Vue Refs, Reactive objects, primitives and JavaScript objects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.