tippspiel/pfosten/vendor/dnoegel/php-xdg-base-dir
2017-07-18 14:58:32 +02:00
..
src ... 2017-07-18 14:58:32 +02:00
tests ... 2017-07-18 14:58:32 +02:00
.gitignore ... 2017-07-18 14:58:32 +02:00
composer.json ... 2017-07-18 14:58:32 +02:00
LICENSE ... 2017-07-18 14:58:32 +02:00
phpunit.xml.dist ... 2017-07-18 14:58:32 +02:00
README.md ... 2017-07-18 14:58:32 +02: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.