Skip to content

Common user base directories (home, data, cache) for PHP desktop / CLI or GUI applications

Notifications You must be signed in to change notification settings

clue-labs/php-basedir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Common user base directories (home, data, cache) for PHP desktop / CLI or GUI applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages