library php-xdg-base-dir
implementation of xdg base directory specification for php
dnoegel/php-xdg-base-dir
implementation of xdg base directory specification for php
- Tuesday, November 14, 2017
- by dnoegel
- Repository
- 2 Watchers
- 2743 Stars
- 37,764,393 Installations
- PHP
- 10 Dependents
- 0 Suggesters
- 8 Forks
- 6 Open issues
- 2 Versions
- 10 % Grown
XDG Base Directory
, (*1)
Implementation of XDG Base Directory specification for php, (*2)
Install
Via Composer, (*3)
``` bash
$ composer require dnoegel/php-xdg-base-dir, (*4)
## Usage
``` php
$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
bash
$ phpunit
, (*5)
License
The MIT License (MIT). Please see License File for more information., (*6)
dev-master
9999999-dev
implementation of xdg base directory specification for php
Sources
Download
MIT
The Requires
The Development Requires
0.1
0.1.0.0
implementation of xdg base directory specification for php
Sources
Download
MIT
The Requires
The Development Requires