PHP Classes

File: vendor/dnoegel/php-xdg-base-dir/README.md

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra  >  PHP Inventory Management System with Scanner  >  vendor/dnoegel/php-xdg-base-dir/README.md  >  Download  
File: vendor/dnoegel/php-xdg-base-dir/README.md
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/README.md
Date: 6 months ago
Size: 728 bytes
 

Contents

Class file image Download

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.


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