drupal-civicrm/vendor/dnoegel/php-xdg-base-dir
Theodotos Andreou c6e2478c40 First commit 2018-01-14 13:10:16 +00:00
..
src First commit 2018-01-14 13:10:16 +00:00
tests First commit 2018-01-14 13:10:16 +00:00
.gitignore First commit 2018-01-14 13:10:16 +00:00
LICENSE First commit 2018-01-14 13:10:16 +00:00
README.md First commit 2018-01-14 13:10:16 +00:00
composer.json First commit 2018-01-14 13:10:16 +00:00
phpunit.xml.dist First commit 2018-01-14 13:10:16 +00:00

README.md

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.