Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grape-fluid/configuration
https://github.com/grape-fluid/configuration
fluid-cms nette
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/grape-fluid/configuration
- Owner: grape-fluid
- License: bsd-3-clause
- Created: 2017-11-15T23:12:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-13T06:12:33.000Z (4 months ago)
- Last Synced: 2024-09-29T23:01:28.491Z (3 months ago)
- Topics: fluid-cms, nette
- Language: PHP
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GrapeFluid/Configuration
[![PHP from Packagist](https://img.shields.io/packagist/php-v/grape-fluid/configuration.svg?style=flat-square)](https://packagist.org/packages/grape-fluid/configuration)
[![Build Status](https://img.shields.io/travis/grape-fluid/configuration.svg?style=flat-square)](https://travis-ci.org/grape-fluid/configuration)
[![Code coverage](https://img.shields.io/coveralls/grape-fluid/configuration.svg?style=flat-square)](https://coveralls.io/r/grape-fluid/configuration)
[![Licence](https://img.shields.io/packagist/l/grape-fluid/configuration.svg?style=flat-square)](https://packagist.org/packages/grape-fluid/configuration)
[![Downloads this Month](https://img.shields.io/packagist/dm/grape-fluid/configuration.svg?style=flat-square)](https://packagist.org/packages/grape-fluid/configuration)
[![Downloads total](https://img.shields.io/packagist/dt/grape-fluid/configuration.svg?style=flat-square)](https://packagist.org/packages/grape-fluid/configuration)
[![Latest stable](https://img.shields.io/packagist/v/grape-fluid/configuration.svg?style=flat-square)](https://packagist.org/packages/grape-fluid/configuration)## Install
```
composer require grape-fluid/configuration
```## Version
## Registration
```yaml
extensions:
configuration: Grapesc\GrapeFluid\Configuration\Bridges\ConfigurationDI\ConfigurationExtension
```## Advanced settings
```yaml
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
```yaml
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]
```