Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Xdg Base Dir Laravel Package

dnoegel/php-xdg-base-dir

Lightweight PHP library to locate XDG Base Directory paths (config, data, cache, state, runtime) on Linux and other Unix-like systems. Provides a simple API to read environment variables and return the correct user/system directories per the XDG spec.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables consistent, standards-compliant directory handling for CLI tools and frameworks across Linux/Unix, eliminating hardcoded paths and reducing path-related bugs.
  • Strong build vs buy case: MIT-licensed, dependency-free, and proven (6k+ stars) makes it superior to in-house implementation for XDG compliance.
  • Critical for roadmap items requiring user-specific storage (config, cache, data) with cross-platform portability, especially in multi-user or server environments.
  • Use cases: CLI utilities, server-side applications, and frameworks
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport