Bez popisu

sunlight 897b10eb13 mzb %!s(int64=6) %!d(string=před) roky
..
src 897b10eb13 mzb %!s(int64=6) %!d(string=před) roky
tests 897b10eb13 mzb %!s(int64=6) %!d(string=před) roky
.gitignore 897b10eb13 mzb %!s(int64=6) %!d(string=před) roky
LICENSE 897b10eb13 mzb %!s(int64=6) %!d(string=před) roky
README.md 897b10eb13 mzb %!s(int64=6) %!d(string=před) roky
composer.json 897b10eb13 mzb %!s(int64=6) %!d(string=před) roky
phpunit.xml.dist 897b10eb13 mzb %!s(int64=6) %!d(string=před) roky

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.