sikessem/ignorant
最新稳定版本:0.0.0
Composer 安装命令:
composer require sikessem/ignorant
包简介
🙈 Ignore files by names or paths
README 文档
README
🙈 Ignore files by names or paths
The Ignorant library allows you to check if a path or name is ignored in a pattern list or in a pattern dot (.) file.
Installation
Using composer, you can install Ignorant with the following command:
composer require sikessem/ignorant
Usage
Explore our .gitignore file:
<?php use Sikessem\Ignorant\Ignorefile; require_once "$VENDOR_DIR/autoload.php"; $gitignore = new Ignorefile(__DIR__.'/.gitignore'); $gitignore->contains('/vendor/'); // Returns true $gitignore->contains('/.phpunit*'); // Returns true $gitignore->includes('/vendor/autoload.php'); // Returns true $gitignore->includes('/.phpunit.result.cache'); // Returns true $gitignore->excludes('src'); // Return true $gitignore->excludes('/tests/Unit'); // Return true
License
This library is distributed under the
Security Reports
Please send any sensitive issue to ske@sikessem.com. Thanks!
统计信息
- 总下载量: 1.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-07