PHPackages                             365taofang/airflow-php-dagrun - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. 365taofang/airflow-php-dagrun

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

365taofang/airflow-php-dagrun
=============================

AIRFLOW DAGRUN PHP SDK

1.0.0(3y ago)01.5kApache-2.0PHPPHP &gt;=5.6.0

Since Sep 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/365taofang/airflow-php-dagrun)[ Packagist](https://packagist.org/packages/365taofang/airflow-php-dagrun)[ RSS](/packages/365taofang-airflow-php-dagrun/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

airflow-php-dagrun
==================

[](#airflow-php-dagrun)

用于投放后台的批量请求处理。 对于某一个网络资源，用不同的请求方法和参数多次访问

使用方式
====

[](#使用方式)

创建请求client
----------

[](#创建请求client)

```
use Airflow\AirflowClient;

//实例化客户端，注意配置env变量
$client = new AirflowClient();

```

组织需要批量运行的参数，触发dag
-----------------

[](#组织需要批量运行的参数触发dag)

```

//设置公共参数
$client->setCommonQueryParams(array('access_token' => 'abcedfg')); # 可省略，公共url参数，会覆盖相同key的params批量请求参数
$client->setHeaders(array("Accept" => "*/*")); # 可省略
$client->setCookies(array("csrf_token" => '123456')); # 可省略

/**
 * 设置批量请求参数，一个数组元素表示一次请求的所有参数
 * 不同请求数据类型使用key如下：
 *      params：设置get请求携带参数，或者url参数，如果commonQueryParams有相同的key，将会被commonQueryParams设置的值覆盖
 *      data：设置post请求参数，如form-data等，不可和json参数同时设置
 *      json：设置json请求体内容，不可和data参数同时设置
        $requestParam = array(
            array('params' => array("p" => "01")),
            array('json' => array('{"j":"02"}')),
            array('data' => array("d" => "03")),
            //组合使用
            array('params' => array("p" => "01"), 'data' => array("d" => "03")),
            array('params' => array("p" => "01"), 'json' => array('{"j":"02"}')),
        );
 */
$params = array(
    array('params' => array("p" => "01", "c" => "03")),
    array('params' => array("p" => "02")),
);

//设置批量请求地址
$url = "https://www.baidu.com";
$method = "GET";
$timeout = 30; # 可省略，默认30秒

//发送批量请求。成功返回true，有异常则throw
$ret = $client->batchRequest($method, $url, $params, $timeout);

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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

1385d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8af4ad0561769ee6f6577579d43d3230f69c045c71219efcea8a0231a9b2d1dc?d=identicon)[365taofang](/maintainers/365taofang)

---

Top Contributors

[![liangjian1234](https://avatars.githubusercontent.com/u/25069479?v=4)](https://github.com/liangjian1234 "liangjian1234 (4 commits)")[![365taofang](https://avatars.githubusercontent.com/u/107677315?v=4)](https://github.com/365taofang "365taofang (1 commits)")

---

Tags

phpairflow

### Embed Badge

![Health badge](/badges/365taofang-airflow-php-dagrun/health.svg)

```
[![Health](https://phpackages.com/badges/365taofang-airflow-php-dagrun/health.svg)](https://phpackages.com/packages/365taofang-airflow-php-dagrun)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k39](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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