GGican cac8b25593 change left-sidebar há 8 anos atrás
..
src cac8b25593 change left-sidebar há 8 anos atrás
tests cac8b25593 change left-sidebar há 8 anos atrás
.gitignore cac8b25593 change left-sidebar há 8 anos atrás
LICENSE cac8b25593 change left-sidebar há 8 anos atrás
README.md cac8b25593 change left-sidebar há 8 anos atrás
composer.json cac8b25593 change left-sidebar há 8 anos atrás
phpunit.xml.dist cac8b25593 change left-sidebar há 8 anos atrás

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.