Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 967 Bytes

README.md

File metadata and controls

38 lines (24 loc) · 967 Bytes

clue/basedir Build Status

Common user base directory specification (home, data, cache directories) for desktop / CLI applications, compatible with the XDG Base Directory Specification.

Quickstart examples

Once installed, let's initialize some directory paths:

$basedir = new Clue\Basedir\Basedir();

$myapp->setCacheDirectory($basedir->getCacheHome());
$myapp->loadConfig($basedir->getConfigHome() . 'my/app/config.json');

Usage

Basedir

Project

Install

The recommended way to install this library is through composer. New to composer?

{
    "require": {
        "clue/basedir": "dev-master"
    }
}

License

MIT license.