File: vendor/dnoegel/php-xdg-base-dir/

Recommend this page to a friend!
  Classes of Renato De Oliveira Lucena  >  PHP Pokemon Script  >  vendor/dnoegel/php-xdg-base-dir/  >  Download  
File: vendor/dnoegel/php-xdg-base-dir/
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Pokemon Script
Provides an API to manage a database of Pokemons
Author: By
Last change:
Date: 2 years ago
Size: 728 bytes


Class file image Download

XDG Base Directory

Software License

Implementation of XDG Base Directory specification for php


Via Composer

$ composer require dnoegel/php-xdg-base-dir


$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


$ phpunit


The MIT License (MIT). Please see License File for more information.

For more information send a message to info at phpclasses dot org.