APPLE afd7600c87 wesmiler 点什么广告 hace 3 años
..
src afd7600c87 wesmiler 点什么广告 hace 3 años
tests afd7600c87 wesmiler 点什么广告 hace 3 años
.gitignore afd7600c87 wesmiler 点什么广告 hace 3 años
LICENSE afd7600c87 wesmiler 点什么广告 hace 3 años
README.md afd7600c87 wesmiler 点什么广告 hace 3 años
composer.json afd7600c87 wesmiler 点什么广告 hace 3 años
phpunit.xml.dist afd7600c87 wesmiler 点什么广告 hace 3 años

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.