PHPackages                             mheads/yii-table-export-queue - 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. mheads/yii-table-export-queue

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

mheads/yii-table-export-queue
=============================

Asynchronous table export queue integration for mheads/yii-table.

1.0.0(yesterday)11↑2900%BSD-3-ClausePHPPHP 8.3 - 8.5

Since Jun 19Pushed yesterdayCompare

[ Source](https://github.com/mheads-dev/yii-table-export-queue)[ Packagist](https://packagist.org/packages/mheads/yii-table-export-queue)[ RSS](/packages/mheads-yii-table-export-queue/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (19)Versions (2)Used By (0)

Table Export Queue
==================

[](#table-export-queue)

Asynchronous table export module for Yii3/yiisoft projects. It extends [mheads/yii-table](https://packagist.org/packages/mheads/yii-table): when a synchronous HTTP export cannot finish within the timeout, the export is queued, processed by a worker, and made available for later download.

Requirements
------------

[](#requirements)

- PHP 8.3-8.5.
- `mheads/yii-table`.
- `yiisoft/db` and the export table from the package migration.
- An application queue connected via `QueueAdapterInterface`.
- A file registry connected via `FileRegistryInterface`. The ready-to-use `YiiFilestorageFileRegistry` adapter is optional: it stores files with `mheads/yii-filestorage`, which must be installed separately if you choose this adapter.

Installation
------------

[](#installation)

Install the package with Composer:

```
composer require mheads/yii-table-export-queue
```

Apply the export table migration. See [Migrations](docs/guide/migrations.md).

Quick Start
-----------

[](#quick-start)

### 1. Configure Dependencies

[](#1-configure-dependencies)

Register the main interfaces:

- `RepositoryInterface` for storing export records;
- `TableRegistryInterface` for restoring a table by `tableId`;
- `QueueAdapterInterface` for pushing jobs to the queue;
- `FileRegistryInterface` for storing the result file (`YiiFilestorageFileRegistry` is a ready-to-use adapter for a separately installed `mheads/yii-filestorage`);
- `UserIdResolverInterface` for resolving the current user.

Configuration example: [Configuration](docs/guide/configuration.md).

### 2. Add HTTP Timeout Fallback

[](#2-add-http-timeout-fallback)

Use a timeout fallback orchestrator around the table HTTP orchestrator:

- `TableHttpOrchestratorWithTimeoutFallback` for the common table endpoint;
- `TableExportHttpOrchestratorWithTimeoutFallback` for a dedicated export endpoint.

On `ExportTimeoutException`, the module creates a record with the `queued` status, pushes a job to the queue, and returns:

```
{
  "status": "queued",
  "exportId": "..."
}
```

See [HTTP timeout fallback](docs/guide/http-timeout-fallback.md).

### 3. Register User Actions

[](#3-register-user-actions)

Register HTTP actions for exports owned by the current user:

- export table;
- export table configuration;
- export table rows;
- finished export download;
- export deletion or cancellation.

See [User actions](docs/guide/user-actions.md).

### 4. Run a Worker

[](#4-run-a-worker)

The queue worker must receive the raw payload from your queue transport and pass it to `JobPayloadConsumer::consume()`. `JobHandler` will restore the table, apply the filter/sort snapshot, run the export, and store the file.

See [Worker consumer](docs/guide/worker-consumer.md).

### 5. Schedule Cleanup

[](#5-schedule-cleanup)

Add `table-export:cleanup` to cron/scheduler to delete `canceled` and `expired` exports and mark stale `running` exports as `failed`.

See [Cleanup command](docs/guide/cleanup-command.md).

Documentation
-------------

[](#documentation)

- [Guide](docs/guide/README.md)

License
-------

[](#license)

BSD-3-Clause. See [`LICENSE`](LICENSE).

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance100

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8805360bd6ba1a19f70a9a23819afe7109a80ea0a4c387201f4fa986a50c75f8?d=identicon)[alse0017](/maintainers/alse0017)

---

Top Contributors

[![sa-machineheads](https://avatars.githubusercontent.com/u/22737984?v=4)](https://github.com/sa-machineheads "sa-machineheads (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mheads-yii-table-export-queue/health.svg)

```
[![Health](https://phpackages.com/badges/mheads-yii-table-export-queue/health.svg)](https://phpackages.com/packages/mheads-yii-table-export-queue)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[bref/bref

Bref is a framework to write and deploy serverless PHP applications on AWS Lambda.

3.4k10.2M61](/packages/bref-bref)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.9k496.1k33](/packages/neuron-core-neuron-ai)[yiisoft/app

Yii3 web application template

36913.9k](/packages/yiisoft-app)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)

PHPackages © 2026

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