PHPackages                             helloimdeadcat/module-export-for-magmi - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. helloimdeadcat/module-export-for-magmi

ActiveMagento2-module[PDF &amp; Document Generation](/categories/documents)

helloimdeadcat/module-export-for-magmi
======================================

Magento 2 module for exporting product catalog data to Magmi-compatible CSV files with multi-store support, cron scheduling, and REST API

v1.0.1(1mo ago)00MITPHPPHP &gt;=8.1

Since Jul 11Pushed 1mo agoCompare

[ Source](https://github.com/helloimdeadcat/ExportForMagmi)[ Packagist](https://packagist.org/packages/helloimdeadcat/module-export-for-magmi)[ Docs](https://github.com/helloimdeadcat/ExportForMagmi)[ RSS](/packages/helloimdeadcat-module-export-for-magmi/feed)WikiDiscussions main Synced 1w ago

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

Stagem ExportForMagmi
=====================

[](#stagem-exportformagmi)

[![Latest Stable Version](https://camo.githubusercontent.com/d7648870d833bf1a08c4c314549d9dcd96430dc55ad652e94c4514bbfde52939/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68656c6c6f696d646561646361742f6d6f64756c652d6578706f72742d666f722d6d61676d69)](https://packagist.org/packages/helloimdeadcat/module-export-for-magmi)[![License](https://camo.githubusercontent.com/1d948a581c3299edd5d5bc4c1930eb030344784211159b3c83945c1e42c39b79/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f68656c6c6f696d646561646361742f6d6f64756c652d6578706f72742d666f722d6d61676d69)](LICENSE)[![PHP Version](https://camo.githubusercontent.com/ef1805b8f8b7cfef5f280abab07847becc9c8e4fb8f58c4c946b311b5dc2de8d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f68656c6c6f696d646561646361742f6d6f64756c652d6578706f72742d666f722d6d61676d69)](https://packagist.org/packages/helloimdeadcat/module-export-for-magmi)

Magento 2 module for exporting product catalog data to CSV files compatible with [Magmi](https://github.com/dweeves/magmi-git).

Features
--------

[](#features)

- Admin UI for creating and managing export profiles
- Product filtering via catalog rule conditions
- Configurable attribute selection per export
- Multi-store export (comma-separated store view IDs, one CSV row per store)
- Manual, queued, and per-profile cron scheduled export execution
- Parallel run protection via file lock (`var/export_for_magmi/locks/`)
- Empty collection warning when no products match conditions
- CSV files stored in `pub/media/stagem/export-for-magmi/`
- UI Component files grid (download / delete)
- REST API for external export trigger

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

[](#requirements)

- Magento 2.4+
- PHP 8.1+
- Module `Stagem_CronGroup` (cron group `stagem`) or an equivalent custom cron group

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

[](#installation)

### Composer (recommended)

[](#composer-recommended)

```
composer require helloimdeadcat/module-export-for-magmi
bin/magento module:enable Stagem_ExportForMagmi
bin/magento setup:upgrade
bin/magento cache:flush
```

### Manual

[](#manual)

1. Copy the module to `app/code/Stagem/ExportForMagmi`
2. Run:

```
bin/magento module:enable Stagem_ExportForMagmi
bin/magento setup:upgrade
bin/magento cache:flush
```

Usage
-----

[](#usage)

1. Open **Stagem → Export for Magmi** in the Magento admin panel
2. Create an export profile: title, store views (multiselect), attributes, and product conditions
3. Optionally enable **Scheduled Export** and set a cron expression (e.g. `0 2 * * *`)
4. Click **Run Export** or wait for the cron job
5. Download or delete CSV files from the **Export Files** grid on the edit page

REST API
--------

[](#rest-api)

Requires an integration or admin token with ACL `Stagem_ExportForMagmi::export_execute`.

```
POST /rest/V1/export-for-magmi/:exportId/execute
POST /rest/V1/export-for-magmi/:exportId/queue
```

Example:

```
curl -X POST "https://your-store.test/rest/V1/export-for-magmi/1/execute" \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json"
```

Architecture
------------

[](#architecture)

ClassResponsibility`Model/Config`Constants, store ID parsing, path helpers`Api/ExportRunnerInterface`Queue and execute export`Api/ExportProcessorInterface`Collection preparation and CSV writing`Model/ExportRunner`Orchestration, lock, warnings, state flags`Model/Export/LockManager`File-based parallel run protection`Model/ExportScheduler`Per-profile cron expression evaluation`Model/ExportManagement`REST API facade`Model/Files/Scanner`Filesystem scan for UI files listing`Cron/Export`Queued and scheduled export processingCron
----

[](#cron)

SettingValueJob code`stagem_export_for_magmi`Cron group`stagem`Global schedule`* * * * *` (every minute)Per-profile schedule`cron_expression` field on export profileTesting
-------

[](#testing)

```
composer install
composer test
```

Unit tests cover `ExportRunner`, `ExportRepository`, scheduler, and config/helper logic.

Packagist
---------

[](#packagist)

This package is published on Packagist as [`helloimdeadcat/module-export-for-magmi`](https://packagist.org/packages/helloimdeadcat/module-export-for-magmi).

> **Note:** The Composer package vendor is `helloimdeadcat`, but the Magento module namespace remains `Stagem_ExportForMagmi` / `Stagem\ExportForMagmi`.

To submit or update the package index after a new release:

1. Push a semver git tag (e.g. `v1.0.0`)
2. If auto-update is not configured, click **Update** on the Packagist package page or set up a [GitHub webhook](https://packagist.org/about#how-to-update-packages)

Changelog
---------

[](#changelog)

See [CHANGELOG.md](CHANGELOG.md).

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

Author
------

[](#author)

**helloimdeadcat** — [github.com/helloimdeadcat](https://github.com/helloimdeadcat)

Based on the original module by Serhii Popov (MIT, 2022).

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

Every ~0 days

Total

2

Last Release

51d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea311e469fe03a09034f2f6a79a77733affd41c2f5ab848eee4f7296c614396e?d=identicon)[helloimdeadcat](/maintainers/helloimdeadcat)

---

Top Contributors

[![helloimdeadcat](https://avatars.githubusercontent.com/u/99815090?v=4)](https://github.com/helloimdeadcat "helloimdeadcat (5 commits)")

---

Tags

croncsvexportmagento2magento2-modulemagmiphpproduct-exportrest-apiexportmagentocsvcronREST APIcatalogmagento2magento 2magmiproduct-export

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/helloimdeadcat-module-export-for-magmi/health.svg)

```
[![Health](https://phpackages.com/badges/helloimdeadcat-module-export-for-magmi/health.svg)](https://phpackages.com/packages/helloimdeadcat-module-export-for-magmi)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.9k166.9M1.0k](/packages/maatwebsite-excel)[league/csv

CSV data manipulation made easy in PHP

3.6k194.4M981](/packages/league-csv)[goodby/csv

CSV import/export library

9525.7M26](/packages/goodby-csv)[sonata-project/exporter

Lightweight Exporter library

44922.0M41](/packages/sonata-project-exporter)[kartik-v/yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)

1703.4M38](/packages/kartik-v-yii2-export)[handcraftedinthealps/goodby-csv

CSV import/export library

441.9M9](/packages/handcraftedinthealps-goodby-csv)

PHPackages © 2026

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