Feuerwehr-eppingen/vendor/dnoegel/php-xdg-base-dir
2022-08-17 21:48:37 +02:00
..
src Anpassung für Lauffähigkeit auf MacBook 2022-08-17 21:48:37 +02:00
tests Anpassung für Lauffähigkeit auf MacBook 2022-08-17 21:48:37 +02:00
composer.json Anpassung für Lauffähigkeit auf MacBook 2022-08-17 21:48:37 +02:00
LICENSE Anpassung für Lauffähigkeit auf MacBook 2022-08-17 21:48:37 +02:00
phpunit.xml.dist Anpassung für Lauffähigkeit auf MacBook 2022-08-17 21:48:37 +02:00
README.md Anpassung für Lauffähigkeit auf MacBook 2022-08-17 21:48:37 +02:00

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.