Paragonik/paragonik-backend/vendor/dnoegel/php-xdg-base-dir
2019-12-08 20:39:40 +01:00
..
src vc 2019-12-08 20:39:40 +01:00
tests vc 2019-12-08 20:39:40 +01:00
.gitignore vc 2019-12-08 20:39:40 +01:00
composer.json vc 2019-12-08 20:39:40 +01:00
LICENSE vc 2019-12-08 20:39:40 +01:00
phpunit.xml.dist vc 2019-12-08 20:39:40 +01:00
README.md vc 2019-12-08 20:39:40 +01: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.