Here is my php config file I use (config.php)
<?php
class DbConfig{
const NAME = 'myDB';
const USER = 'myUser';
const PASS = 'myPass';
const HOST = 'localhost';
}
class Servers {
const NODE = 'http://127.0.0.1';
const RTMP = 'http://127.0.0.1:1935/';
}
?>
I would like to use this DBConfig inside my nodejs (I use npm mysql package).
What is the best way/strategy to have 1 single config file for both PHP and NODEJS ?
Regards