Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via composer

dnoegel/php-xdg-base-dir v0.1.1

implementation of xdg base directory specification for php
Package summary
Share
0
issues
1
license
1
MIT
Package created
30 Jun 2014
Version published
4 Dec 2019
Maintainers
2
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
dnoegel/php-xdg-base-dir@v0.1.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of dnoegel/php-xdg-base-dir 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does dnoegel/php-xdg-base-dir do?

The "dnoegel/php-xdg-base-dir" is a Composer package that provides a PHP implementation of the XDG Base Directory specification. It's used primarily in Linux environments to define standard directories for various types of files, such as configuration files, cache files, and data files. This enables easier interoperability and file location consistency across different applications and scripts.

How do you use dnoegel/php-xdg-base-dir?

To use "dnoegel/php-xdg-base-dir", you need to have Composer installed on your system. Once you have Composer, you can add the package to your project using the following command in your terminal:

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

After it's installed, you can use the package in your PHP scripts. Here is a code usage example:

$xdg = new \XdgBaseDir\Xdg();

echo $xdg->getHomeDir();
echo $xdg->getHomeConfigDir();
echo $xdg->getHomeDataDir();
echo $xdg->getHomeCacheDir();
echo $xdg->getRuntimeDir();

print_r($xdg->getDataDirs());      // returns array
print_r($xdg->getConfigDirs());    // returns array

In this example, we first instantiate the XdgBaseDir\Xdg class. Then, we use various methods provided by the class to get information about different system directories according to the XDG specification.

Where are the dnoegel/php-xdg-base-dir docs?

The "dnoegel/php-xdg-base-dir" docs can be found on the project's GitHub page. The README file on the main page of the repository provides basic information about the package, including how to install and use it. For more comprehensive details, users are advised to examine the actual source code, given that it's an open-source project. The MIT License governing the use of the software can also be viewed directly from the repository.

All Versions