Drupal investigation

HSA Test User c16dcac362 User import 7 lat temu
..
src c16dcac362 User import 7 lat temu
tests c16dcac362 User import 7 lat temu
.gitignore c16dcac362 User import 7 lat temu
LICENSE c16dcac362 User import 7 lat temu
README.md c16dcac362 User import 7 lat temu
composer.json c16dcac362 User import 7 lat temu
phpunit.xml.dist c16dcac362 User import 7 lat temu

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.