2017 © Pedro Peláez
 

library configuration

image

grape-fluid/configuration

  • Thursday, November 23, 2017
  • by sparkcz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 166 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 19 % Grown

The README.md

GrapeFluid/Configuration

PHP from Packagist Build Status Code coverage Licence Downloads this Month Downloads total Latest stable, (*1)

Install

composer require grape-fluid/configuration

Version

Registration

extensions:
    configuration: Grapesc\GrapeFluid\Configuration\Bridges\ConfigurationDI\ConfigurationExtension

Advanced settings

services:
    # Service that implements Grapesc\GrapeFluid\Configuration\IStorage
    - Grapesc\GrapeFluid\Configuration\Storage\NetteDatabase('your_configuration_table_name')
    # Optional - Service that implements Grapesc\GrapeFluid\Configuration\Crypt\ICrypt
    - Grapesc\GrapeFluid\Configuration\Crypt\OpenSSLCrypt('your_secret_token')

Example

parameters:
    testapi:
        url: @c::val(test.api.url)
        port: @c::val(test.api.port)
        username: @c::val(test.api.username)
        password: @c::val(test.api.password)
        debug: @c::val(test.api.debug)
        endpoints:
            test: @c::con(%testapi.url%, /getTest)    

configuration:
    test.api.url: [default: "http://localhost/api", description: "API base path"]
    test.api.port: [default: 80, description: "API port", type: integer, nullable: false]
    test.api.username: [default: "admin", description: "API username"]
    test.api.password: [description: "API password", secured: true]
    test.api.debug: [default: false, description: "Enable debug", type: boolean, nullable: false]

The Versions

23/11 2017

dev-master

9999999-dev https://github.com/grape-fluid/configuration

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

config nette grape-fluid fluid-cms