cline/globby 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cline/globby

Composer 安装命令:

composer require cline/globby

包简介

User-friendly glob matching for PHP with negation patterns, directory expansion, and gitignore support

README 文档

README

GitHub Workflow Status Latest Version on Packagist Software License Total Downloads

Globby

A user-friendly glob matching library for PHP, inspired by sindresorhus/globby. Features multiple pattern support, negation patterns, gitignore integration, and a fluent configuration API.

Requirements

Requires PHP 8.4+

Installation

composer require cline/globby

Documentation

  • Basic Usage - Pattern matching fundamentals, multiple patterns, negation, and streaming
  • Filtering Options - Files vs directories, dotfiles, depth limiting, and path formatting
  • Gitignore Integration - Respecting .gitignore rules and custom ignore files
  • Advanced Patterns - Brace expansion, character classes, globstar, and escaping

Supported Options

Option Type Default Description
cwd string getcwd() Current working directory
expandDirectories bool|array true Auto-expand directories to glob contents
gitignore bool false Respect .gitignore rules
ignoreFiles string|array null Custom ignore file patterns
ignore array [] Additional patterns to ignore
onlyFiles bool true Match only files
onlyDirectories bool false Match only directories
dot bool false Include dotfiles
deep int null Maximum traversal depth
followSymbolicLinks bool true Follow symbolic links
suppressErrors bool false Suppress file system errors
absolute bool false Return absolute paths
unique bool true Deduplicate results
markDirectories bool false Add trailing slash to directories
caseSensitiveMatch bool true Case-sensitive pattern matching
baseNameMatch bool false Match patterns against basename only
throwErrorOnBrokenSymbolicLink bool false Throw error on broken symlinks
objectMode bool false Return GlobEntry objects instead of strings
stats bool false Include file statistics (implies objectMode)
fs FileSystemAdapter null Custom file system adapter

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.

Credits

License

The MIT License. Please see License File for more information.

cline/globby 适用场景与选型建议

cline/globby 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 02 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「pattern」 「files」 「laravel」 「matching」 「directories」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 cline/globby 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 cline/globby 我们能提供哪些服务?
定制开发 / 二次开发

基于 cline/globby 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 21
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-02