暫無描述

sunlight 897b10eb13 mzb 6 年之前
..
src 897b10eb13 mzb 6 年之前
tests 897b10eb13 mzb 6 年之前
.gitignore 897b10eb13 mzb 6 年之前
LICENSE 897b10eb13 mzb 6 年之前
README.md 897b10eb13 mzb 6 年之前
composer.json 897b10eb13 mzb 6 年之前
phpunit.xml.dist 897b10eb13 mzb 6 年之前

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.