dnoegel/php-xdg-base-dir
implementation of xdg base directory specification for php
Maintainers
v0.1.1
2019-12-04 15:06 UTC
Requires
- php: >=5.3.2
Requires (Dev)
- phpunit/phpunit: ~7.0|~6.0|~5.0|~4.8.35
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 8f8a6e48c5ecb0f991c2fdcf5f154a47d85f9ffd
This package is auto-updated.
Last update: 2026-06-16 19:05:26 UTC
README
👁 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.
