PHP Classes

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

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra  >  PHP Inventory Management System with Scanner  >  vendor/dnoegel/php-xdg-base-dir/  >  Download  
File: vendor/dnoegel/php-xdg-base-dir/
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Inventory Management System with Scanner
Manage inventory stock using scanner application
Author: By
Last change: Update of vendor/dnoegel/php-xdg-base-dir/
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.