Download the PHP package el7cosmos/dirs without Composer
On this page you can find all versions of the php package el7cosmos/dirs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package dirs
PHP Wrapper for dirs-rs
A PHP extension that provides access to platform-specific directory paths by wrapping the Rust dirs-rs crate.
Installation
You can install this extension using Pie:
Building from Source
Requirements
- PHP 8.0 or higher
- Rust toolchain
Build
Install
Functions
This extension provides the following functions to retrieve platform-specific directory paths:
Base Directories
home_dir(): Returns the path to the user's home directorycache_dir(): Returns the path to the user's cache directoryconfig_dir(): Returns the path to the user's config directoryconfig_local_dir(): Returns the path to the user's local config directorydata_dir(): Returns the path to the user's data directorydata_local_dir(): Returns the path to the user's local data directoryexecutable_dir(): Returns the path to the user's executable directorypreference_dir(): Returns the path to the user's preference directoryruntime_dir(): Returns the path to the user's runtime directorystate_dir(): Returns the path to the user's state directory
User Directories
audio_dir(): Returns the path to the user's audio directorydesktop_dir(): Returns the path to the user's desktop directorydocument_dir(): Returns the path to the user's document directorydownload_dir(): Returns the path to the user's download directoryfont_dir(): Returns the path to the user's font directorypicture_dir(): Returns the path to the user's picture directorypublic_dir(): Returns the path to the user's public directorytemplate_dir(): Returns the path to the user's template directoryvideo_dir(): Returns the path to the user's video directory
All functions return either a string containing the path or null if the directory could not be determined.
Example Usage
Platform Support
This extension supports the following platforms:
- Linux
- macOS
The behavior on each platform follows the dirs-rs implementation.
All versions of dirs with dependencies
PHP Build Version
Package Version
No informations.
The package el7cosmos/dirs contains the following files
Loading the files please wait ...