You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
KodeStar c3b571724b Add vendor and .env to make usable 7 years ago
..
src Add vendor and .env to make usable 7 years ago
tests Add vendor and .env to make usable 7 years ago
.gitignore Add vendor and .env to make usable 7 years ago
LICENSE Add vendor and .env to make usable 7 years ago
README.md Add vendor and .env to make usable 7 years ago
composer.json Add vendor and .env to make usable 7 years ago
phpunit.xml.dist Add vendor and .env to make usable 7 years ago

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.