Heimdall/vendor/dnoegel/php-xdg-base-dir
2018-02-01 20:01:12 +00:00
..
src Add vendor and .env to make usable 2018-02-01 20:01:12 +00:00
tests Add vendor and .env to make usable 2018-02-01 20:01:12 +00:00
.gitignore Add vendor and .env to make usable 2018-02-01 20:01:12 +00:00
composer.json Add vendor and .env to make usable 2018-02-01 20:01:12 +00:00
LICENSE Add vendor and .env to make usable 2018-02-01 20:01:12 +00:00
phpunit.xml.dist Add vendor and .env to make usable 2018-02-01 20:01:12 +00:00
README.md Add vendor and .env to make usable 2018-02-01 20:01:12 +00:00

XDG Base Directory

Software License

Implementation of XDG Base Directory specification for php

Install

Via Composer

$ composer require dnoegel/php-xdg-base-dir

Usage

$xdg = \XdgBaseDir\Xdg();

echo $xdg->getHomeDir();
echo $xdg->getHomeConfigDir()
echo $xdg->getHomeDataDir()
echo $xdg->getHomeCacheDir()
echo $xdg->getRuntimeDir()

$xdg->getDataDirs() // returns array
$xdg->getConfigDirs() // returns array

Testing

$ phpunit

License

The MIT License (MIT). Please see License File for more information.