菜谱项目

sunlight 9321b15c94 first commit 6 lat temu
..
src 9321b15c94 first commit 6 lat temu
tests 9321b15c94 first commit 6 lat temu
.gitignore 9321b15c94 first commit 6 lat temu
LICENSE 9321b15c94 first commit 6 lat temu
README.md 9321b15c94 first commit 6 lat temu
composer.json 9321b15c94 first commit 6 lat temu
phpunit.xml.dist 9321b15c94 first commit 6 lat temu

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.