A Drupal-CiviCRM setup
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Theodotos Andreou c6e2478c40 First commit 6 years ago
..
src First commit 6 years ago
tests First commit 6 years ago
.gitignore First commit 6 years ago
LICENSE First commit 6 years ago
README.md First commit 6 years ago
composer.json First commit 6 years ago
phpunit.xml.dist First commit 6 years ago

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.