Files
faveo/vendor/dnoegel/php-xdg-base-dir
Bhanu Slathia b1f62846ab Update v1.0.6
2016-02-16 23:24:52 +05:30
..
2016-02-16 23:24:52 +05:30
2016-02-16 23:24:52 +05:30
2016-02-16 23:24:52 +05:30
2016-02-16 23:24:52 +05:30
2016-02-16 23:24:52 +05:30
2016-02-16 23:24:52 +05:30
2016-02-16 23:24:52 +05:30

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.