1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 11:22:42 +01:00
freescout/vendor/dnoegel/php-xdg-base-dir
2018-07-23 03:08:32 -07:00
..
src Vendor 2018-07-23 03:08:32 -07:00
tests Vendor 2018-07-23 03:08:32 -07:00
.gitignore Vendor 2018-07-23 03:08:32 -07:00
composer.json Vendor 2018-07-23 03:08:32 -07:00
LICENSE Vendor 2018-07-23 03:08:32 -07:00
phpunit.xml.dist Vendor 2018-07-23 03:08:32 -07:00
README.md Vendor 2018-07-23 03:08:32 -07:00

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.