PHP Classes

File: Env.example.md

Recommend this page to a friend!
  Packages of Ramesh Narayan Jangid (Sharma)   Open Swoole Microservices   Env.example.md   Download  
File: Env.example.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Open Swoole Microservices
Implement microservices using Open Swoole
Author: By
Last change: refactor
Date: 11 days ago
Size: 2,099 bytes
 

Contents

Class file image Download

Globally Required configs

ENVIRONMENT=0                           ; Environment PRODUCTION = 1 / DEVELOPMENT = 0
OUTPUT_PERFORMANCE_STATS=1              ; Add Performance Stats in JSON output: 1 = true / 0 = false
DISABLE_REQUESTS_VIA_PROXIES=1          ; 1 = true / 0 = false

Auth

sessionMode='File'          ; For Cookie based Session - 'File', 'MySql', 'PostgreSql', 'MongoDb', 'Redis', 'Memcached', 'Cookie'
maxConcurrentLogin=2       ; simultaneous login limit
concurrentAccessInterval=60 ; Concurrent Access Interval in Seconds

API Data Input/Output Representation

; Data Representation: JSON/XML/XSLT/HTML/PHP
iRepresentation='JSON'                  ; JSON/XML - Input Data Representation
oRepresentation='JSON'                  ; JSON/XML/XSLT/HTML/PHP - Output Data Representation
payloadKeyInResponse='Payload'

Other database configs

; Default perPage (records per page)
defaultPerPage=10
maxResultsPerPage=1000

Global counter

As the heading describes below are the settings for global counter for the primary Key column of respective table. The setting when enable will generate a global auto-increment counter<br />

This enables identify Customer Data easily while moving him from a common database for all to a dedicated customer X database.

Set below config.

; Global Auto-Increment counter detail
gCounter='global_counter'           ; Key or Table
gCounterMode='Cache'                ; Globally configured Cache / Database

Idempotent

This helps managing cache for idempotent request.

; Settings to avoid Idempotent request
idempotentSecret='changeme'         ; hash_hmac secret

Contributing

Issues and feature request are welcome.<br /> Feel free to share them on issues page

Author

  • Ramesh N. Jangid (Sharma)

Github: @polygoncoin

License

Copyright © 2026 Ramesh N. Jangid (Sharma).<br /> This project is MIT licensed.