october_1x0/vendor/dnoegel/php-xdg-base-dir
Kerim f037dd7b2d first commit 2022-06-24 19:32:37 +05:00
..
src first commit 2022-06-24 19:32:37 +05:00
LICENSE first commit 2022-06-24 19:32:37 +05:00
README.md first commit 2022-06-24 19:32:37 +05:00
composer.json first commit 2022-06-24 19:32:37 +05:00

README.md

XDG Base Directory

Latest Stable Version Total Downloads Software License Build Status

Implementation of XDG Base Directory specification for php

Install

Via Composer

$ composer require dnoegel/php-xdg-base-dir

Usage

$xdg = new \XdgBaseDir\Xdg();

echo $xdg->getHomeDir();
echo $xdg->getHomeConfigDir();
echo $xdg->getHomeDataDir();
echo $xdg->getHomeCacheDir();
echo $xdg->getRuntimeDir();

print_r($xdg->getDataDirs()); // returns array
print_r($xdg->getConfigDirs()); // returns array

Testing

$ phpunit

License

The MIT License (MIT). Please see License File for more information.