PHPackages                             pengyu/file-catcher - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. pengyu/file-catcher

ActiveProject[File &amp; Storage](/categories/file-storage)

pengyu/file-catcher
===================

a file catcher,download files with the given pattern url

v1.0.0(6y ago)09MITPHPPHP &gt;=5.6.0

Since Jan 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/herepy/file-catcher)[ Packagist](https://packagist.org/packages/pengyu/file-catcher)[ RSS](/packages/pengyu-file-catcher/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

简介
--

[](#简介)

一个可以抓取固定url模式的下载器，可根据自身需求自定义使用的下载器

使用条件
----

[](#使用条件)

- php &gt;= 5.6.0
- unix操作系统
- php开启curl拓展

安装说明
----

[](#安装说明)

##### git方式安装:

[](#git方式安装)

```
    git clone https://github.com/herepy/file-catcher.git
    cd file-catcher && composer install

```

##### composer方式安装

[](#composer方式安装)

```
    composer require pengyu/file-catcher

```

使用
--

[](#使用)

```
$client=new Pengyu\FileCatcher\Master();
//url前缀
$urlPrefix="http://abc.com/path/";
//文件保存目录
$savePath="/var/img";
$client->init($urlPrefix,$savePath);

//url模式参数
$option=[
    "x" =>  [
        "type"  =>  "exact", //固定值类型
        "value" =>  3
    ],
    "y" =>  [
        "type"  =>  "range", //区间值类型,0,1,2,3,4,5
        "value" =>  [0,5]
    ],
    "z" =>  [
        "type"  =>  "in", //范围值类型，0,2,5
        "value" =>  [0,2,5]
    ],
];

//url命名变量使用{{variable}}格式表示
$client->setNameModel("{{x}}_{{y}}_{{z}}.jpg",$option);
$client->run();

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2314d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/49536efeca3900abb521efdeaa71377ce297b55a2fc8f91277ab87dbb0d72ec1?d=identicon)[Pengyu](/maintainers/Pengyu)

---

Top Contributors

[![herepy](https://avatars.githubusercontent.com/u/16030800?v=4)](https://github.com/herepy "herepy (11 commits)")

### Embed Badge

![Health badge](/badges/pengyu-file-catcher/health.svg)

```
[![Health](https://phpackages.com/badges/pengyu-file-catcher/health.svg)](https://phpackages.com/packages/pengyu-file-catcher)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M123](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M61](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
