[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8291":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":14,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":14,"compositeScore":16,"rankGlobal":8,"rankLanguage":8,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":8,"pushedAt":8,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":14,"starSnapshotCount":14,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},8291,"php-xdg-base-dir","dnoegel\u002Fphp-xdg-base-dir","dnoegel",null,"PHP",6296,11,4,3,0,1,56.34,"MIT License",false,"master",true,[],"2026-06-12 04:00:38","# XDG Base Directory\n\n[![Latest Stable Version](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fv\u002Fdnoegel\u002Fphp-xdg-base-dir.svg?style=flat-square)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fdnoegel\u002Fphp-xdg-base-dir)\n[![Total Downloads](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fdt\u002Fdnoegel\u002Fphp-xdg-base-dir.svg?style=flat-square)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fdnoegel\u002Fphp-xdg-base-dir)\n[![Software License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Build Status](https:\u002F\u002Fimg.shields.io\u002Ftravis\u002Fdnoegel\u002Fphp-xdg-base-dir\u002Fmaster.svg?style=flat-square)](https:\u002F\u002Ftravis-ci.org\u002Fdnoegel\u002Fphp-xdg-base-dir)\n\nImplementation of XDG Base Directory  specification for php\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require dnoegel\u002Fphp-xdg-base-dir\n```\n\n## Usage\n\n``` php\n$xdg = new \\XdgBaseDir\\Xdg();\n\necho $xdg->getHomeDir();\necho $xdg->getHomeConfigDir();\necho $xdg->getHomeDataDir();\necho $xdg->getHomeCacheDir();\necho $xdg->getRuntimeDir();\n\nprint_r($xdg->getDataDirs()); \u002F\u002F returns array\nprint_r($xdg->getConfigDirs()); \u002F\u002F returns array\n```\n\n## Testing\n\n``` bash\n$ phpunit\n```\n\n## License\n\nThe MIT License (MIT). Please see [License File](https:\u002F\u002Fgithub.com\u002Fdnoegel\u002Fphp-xdg-base-dir\u002Fblob\u002Fmaster\u002FLICENSE) for more information.\n","dnoegel\u002Fphp-xdg-base-dir 是一个 PHP 库，实现了 XDG Base Directory 规范。它提供了获取用户家目录、配置文件目录、数据目录和缓存目录等路径的功能，使得开发者可以轻松地遵循 XDG 标准来管理应用程序的文件存储位置。该库支持通过 Composer 安装，并且使用简单直观的方法调用来访问各种目录。适用于需要跨平台一致地处理文件存储路径的 PHP 项目中，特别是那些注重用户体验和遵守 Linux 文件系统标准的应用程序。",2,"2026-06-11 03:17:13","top_language"]