Drupal investigation

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

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.