Drupal investigation

HSA Test User c16dcac362 User import лет назад: 7
..
src c16dcac362 User import лет назад: 7
tests c16dcac362 User import лет назад: 7
.gitignore c16dcac362 User import лет назад: 7
LICENSE c16dcac362 User import лет назад: 7
README.md c16dcac362 User import лет назад: 7
composer.json c16dcac362 User import лет назад: 7
phpunit.xml.dist c16dcac362 User import лет назад: 7

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.