mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2024-11-24 19:33:07 +01:00
728 B
728 B
XDG Base Directory
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.