awesome-repositories.com
Blog
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
dnoegel avatar

dnoegel/php-xdg-base-dir

0
View on GitHub↗
6,295 stars·11 forks·PHP·MIT·2 views

Php Xdg Base Dir

php-xdg-base-dir is a PHP library and system path resolver designed to identify standard filesystem locations for application configuration, cache, and runtime files. It provides an implementation of the XDG Base Directory specification to organize user-specific data and configuration across different platforms.

The library resolves directory paths by mapping standard categories to filesystem locations based on Freedesktop.org standards. It manages cross-platform file organization by detecting the operating system and applying corresponding default paths.

The resolution process utilizes a prioritized hierarchy that checks system environment variables before falling back to operating system defaults. This ensures that PHP scripts respect system standards and avoid cluttering user home directories.

Features

  • XDG Specification Compliance - Implements the XDG Base Directory Specification to map configuration, data, and cache categories to filesystem locations.
  • Fallback Hierarchies - Implements a prioritized hierarchy of potential paths to ensure a valid system directory is identified.
  • Cross-Platform Path Abstractions - Organizes application files across different operating systems using standardized paths for data and runtime storage.
  • Environment Variable Resolution - Resolves system directory paths by retrieving and expanding environment variables before applying defaults.
  • PHP System Path Utilities - Provides a mechanism for PHP scripts to discover system paths that respect environment variables and OS standards.
  • Configuration Path Resolution - Identifies the correct directory paths for application configuration, data, cache, and runtime files.
  • Runtime Path Resolvers - Determines the correct directory locations for application configuration, cache, and runtime files across platforms.
  • OS-Specific Default Paths - Provides hardcoded default paths based on the detected operating system when environment overrides are absent.
  • Application Data Path Resolvers - Identifies specific directory paths where Linux applications should store internal data and configuration files.
  • Unix Standard Path Libraries - Implements Freedesktop.org standards for organizing user-specific configuration and data directories.

Star history

Star history chart for dnoegel/php-xdg-base-dirStar history chart for dnoegel/php-xdg-base-dir

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Php Xdg Base Dir

Similar open-source projects, ranked by how many features they share with Php Xdg Base Dir.
  • andreafrancia/trash-cliandreafrancia avatar

    andreafrancia/trash-cli

    4,414View on GitHub↗

    trash-cli is a command-line interface for managing files and directories within the FreeDesktop.org trashcan specification. It provides a utility to move files to a system trash folder instead of permanently deleting them, preventing accidental data loss when working in a terminal. The tool implements the XDG trash directory layout and metadata standards, ensuring interoperability with other desktop environment tools. It uses metadata sidecar files to track original absolute file paths and deletion timestamps, allowing for precise file recovery. The project covers file lifecycle management t

    Pythonlinuxpythontrashcan
    View on GitHub↗4,414
  • b3nj5m1n/xdg-ninjab3nj5m1n avatar

    b3nj5m1n/xdg-ninja

    3,121View on GitHub↗

    xdg-ninja is a home directory sanitizer and XDG base directory auditor designed to identify files that violate XDG directory specifications. It functions as a Linux configuration migrator that scans home directories for misplaced application data and generates JSON-based relocation rules to organize dotfiles into standard locations. The project utilizes a JSON-based configuration manager to define program-specific file rules. This system allows for the creation of custom file tracking and relocation rules, specifying exactly which files a program stores and the instructions required to move t

    Haskelllinuxshellterminal
    View on GitHub↗3,121
  • cheat/cheatcheat avatar

    cheat/cheat

    13,361View on GitHub↗

    Cheat is a command-line cheatsheet manager and terminal reference tool used for creating and viewing searchable, interactive guides. It functions as a plain-text knowledge base that organizes technical notes and command snippets through a hierarchical directory structure and metadata tags. The tool provides context-aware note management by discovering and displaying project-specific documentation based on the current working directory. It allows for the creation of a personalized collection of reference files that can be retrieved directly within a shell environment to assist with command opt

    Go
    View on GitHub↗13,361
  • microsoft/power-fxmicrosoft avatar

    microsoft/Power-Fx

    3,338View on GitHub↗

    Power-Fx is a declarative logic framework and low-code formula language based on Excel formulas. It functions as an expression parser and evaluator that transforms formula strings into an abstract syntax tree to execute logical operations and resolve values. The project provides a standardized integration layer to connect formula-based logic to external data sources for querying and pushing records. This allows for the definition of business rules and calculations that can be shared as consistent logic across different applications and platforms.

    C#power-fxpowerfx
    View on GitHub↗3,338
See all 21 alternatives to Php Xdg Base Dir→

Frequently asked questions

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

php-xdg-base-dir is a PHP library and system path resolver designed to identify standard filesystem locations for application configuration, cache, and runtime files. It provides an implementation of the XDG Base Directory specification to organize user-specific data and configuration across different platforms.

What are the main features of dnoegel/php-xdg-base-dir?

The main features of dnoegel/php-xdg-base-dir are: XDG Specification Compliance, Fallback Hierarchies, Cross-Platform Path Abstractions, Environment Variable Resolution, PHP System Path Utilities, Configuration Path Resolution, Runtime Path Resolvers, OS-Specific Default Paths.

What are some open-source alternatives to dnoegel/php-xdg-base-dir?

Open-source alternatives to dnoegel/php-xdg-base-dir include: andreafrancia/trash-cli — trash-cli is a command-line interface for managing files and directories within the FreeDesktop.org trashcan… b3nj5m1n/xdg-ninja — xdg-ninja is a home directory sanitizer and XDG base directory auditor designed to identify files that violate XDG… microsoft/rushstack — Rushstack is a comprehensive toolset for managing large-scale TypeScript monorepos, providing a framework for build… microsoft/power-fx — Power-Fx is a declarative logic framework and low-code formula language based on Excel formulas. It functions as an… cheat/cheat — Cheat is a command-line cheatsheet manager and terminal reference tool used for creating and viewing searchable,… standard-things/esm — esm is an ECMAScript module loader and JavaScript module path resolver. It functions as a runtime system that executes…