Paragonik/paragonik-backend/vendor/dnoegel/php-xdg-base-dir
2019-12-07 16:47:41 +01:00
..
src Vendor 2019-12-07 16:47:41 +01:00
tests Vendor 2019-12-07 16:47:41 +01:00
.gitignore Vendor 2019-12-07 16:47:41 +01:00
composer.json Vendor 2019-12-07 16:47:41 +01:00
LICENSE Vendor 2019-12-07 16:47:41 +01:00
phpunit.xml.dist Vendor 2019-12-07 16:47:41 +01:00
README.md Vendor 2019-12-07 16:47:41 +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.