hassankhan / config

Config is a lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files
MIT License
971 stars 136 forks source link

About Cannot get the json #162

Closed mazecate closed 7 months ago

mazecate commented 7 months ago

Hello,

When I successfully install the package, but cannot get the value, has any problem ?

    $localJson = new Config(join('/', [DIR_PATH,'default.json']), new Json);
    print_r($localJson);
    $rs = $localJson->get('test');
    echo $rs;
{
    "email": {
        "account": "configuration",
        "password": "s3cr3t"
    },
    "test":"2"
}