dnoegel/php-xdg-base-dir
None observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4447
- days_rel: n/a
- days_push: 2192
- n_releases_24m: 0
Adoption not part of the score
6290 stars · 11 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A small PHP library implementing the XDG Base Directory specification, exposing home, config, data, cache, and runtime directories via a simple Xdg class. It is installed via Composer and used by other PHP tools to locate per-user files in a standards-compliant way.
Use cases
- find the user's XDG config directory in PHP
- get XDG cache and data directories from a PHP CLI app
- resolve XDG runtime directory path in PHP
- store app config in the standard XDG location
- implement XDG Base Directory spec in a PHP project
When to choose
- you need spec-compliant XDG paths in a PHP application or CLI tool
- you want a tiny, dependency-light Composer package for config/data directory resolution
When to avoid
- you are not targeting Linux/macOS-style XDG environments
- your framework already provides its own config-path resolution
- you need actively developed features or Windows-specific path handling
Facets
library · maturity maintenance
file-system configuration-management developer-tools operating-systems php xdg-base-directory composer-package config-paths linux macos
1 source
- readme: https://github.com/dnoegel/php-xdg-base-dir · fetched 2026-08-28 · dcc356491135
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dnoegel/php-xdg-base-dir | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="dnoegel/php-xdg-base-dir")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem