PHPackages                             keboola/output-mapping - 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. keboola/output-mapping

ActiveLibrary

keboola/output-mapping
======================

Shared component for processing SAPI output mapping and importing data to KBC

27.6.0(5mo ago)138.5k↓39.7%2MITPHPPHP &gt;=8.2

Since Jun 1Pushed 2mo ago13 watchersCompare

[ Source](https://github.com/keboola/output-mapping)[ Packagist](https://packagist.org/packages/keboola/output-mapping)[ RSS](/packages/keboola-output-mapping/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (25)Versions (225)Used By (2)

Output Mapping
==============

[](#output-mapping)

Output mapping library for Keboola Runner and Workspaces. Processes component outputs and uploads them to Keboola Storage API.

**Tables:**

- Local staging: Uploads tables as gzipped CSV files to Storage API
    - Slicing: Large CSV files are automatically split into multiple compressed chunks for parallel upload (via external slicer binary)
        - Requires: `output-mapping-slice` feature flag, default CSV format (`,` delimiter, `"` enclosure), no custom `columns` mapping
        - Sliced files must have `columns` or `schema` specified in configuration
- Workspace staging (Snowflake/BigQuery): Loads tables directly from workspace database objects (no file upload, no slicing)

**Files:**

- Uploads files as-is to Storage API File Storage (works with all staging types)

Development
-----------

[](#development)

### Prepare local environment

[](#prepare-local-environment)

Create `.env.local` file from this `.env` template and fill the required environment variables:

```
cp .env .env.local
```

### Prepare resources

[](#prepare-resources)

You need to provide the following environment variables:

- `STORAGE_API_URL` - The Keboola Storage API URL (e.g., `https://connection.keboola.com`)
- `STORAGE_API_TOKEN` - A non-admin token with "Full Access" to Files, Components &amp; Buckets and Trash
- `STORAGE_API_TOKEN_MASTER` - An admin user token from the same project (with role `admin`)

**Optional (for BigQuery-specific tests only):**

- `BIGQUERY_STORAGE_API_URL` - BigQuery Storage API URL (e.g., `https://connection.keboola.com`)
- `BIGQUERY_STORAGE_API_TOKEN` - A non-admin token with "Full Access" to Files, Components &amp; Buckets and Trash from a project with BigQuery backend

### Available composer commands

[](#available-composer-commands)

**Development commands:**

- `composer phpcs` - Check code style
- `composer phpcbf` - Automatically fix code style issues
- `composer phpstan` - Run static analysis

**Testing commands:**

- `composer tests` - Run tests with PHPUnit
- `composer paratests` - Run tests in parallel with Paratest

License
-------

[](#license)

MIT licensed, see [LICENSE](./LICENSE) file.

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance79

Regular maintenance activity

Popularity30

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity95

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~15 days

Recently: every ~23 days

Total

204

Last Release

153d ago

Major Versions

22.9.7 → 23.0.02024-05-14

23.1.0 → 24.0.02024-05-21

24.42.1 → 25.0.02025-05-15

25.0.0 → 26.0.02025-05-26

26.0.0 → 27.0.02025-06-17

PHP version history (3 changes)16.0.0PHP &gt;=7.4

20.0.0PHP &gt;=8.1

24.15.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/101dbf2551a0709ddab522f97669f13a2c4cc2d0a1e8d009f3af6ba80accb1a9?d=identicon)[Keboola](/maintainers/Keboola)

---

Top Contributors

[![ErikZigo](https://avatars.githubusercontent.com/u/1726727?v=4)](https://github.com/ErikZigo "ErikZigo (357 commits)")[![ondrajodas](https://avatars.githubusercontent.com/u/12143866?v=4)](https://github.com/ondrajodas "ondrajodas (301 commits)")[![odinuv](https://avatars.githubusercontent.com/u/4319320?v=4)](https://github.com/odinuv "odinuv (228 commits)")[![pivnicek](https://avatars.githubusercontent.com/u/569139?v=4)](https://github.com/pivnicek "pivnicek (169 commits)")[![pepamartinec](https://avatars.githubusercontent.com/u/271753?v=4)](https://github.com/pepamartinec "pepamartinec (71 commits)")[![ondrejhlavacek](https://avatars.githubusercontent.com/u/497675?v=4)](https://github.com/ondrejhlavacek "ondrejhlavacek (20 commits)")[![MiroCillik](https://avatars.githubusercontent.com/u/1488015?v=4)](https://github.com/MiroCillik "MiroCillik (18 commits)")[![devin-ai-integration[bot]](https://avatars.githubusercontent.com/in/811515?v=4)](https://github.com/devin-ai-integration[bot] "devin-ai-integration[bot] (9 commits)")[![zajca](https://avatars.githubusercontent.com/u/180148?v=4)](https://github.com/zajca "zajca (8 commits)")[![romantmb](https://avatars.githubusercontent.com/u/228957?v=4)](https://github.com/romantmb "romantmb (7 commits)")[![martinsifra](https://avatars.githubusercontent.com/u/1210906?v=4)](https://github.com/martinsifra "martinsifra (3 commits)")[![Halama](https://avatars.githubusercontent.com/u/903531?v=4)](https://github.com/Halama "Halama (3 commits)")[![ujovlado](https://avatars.githubusercontent.com/u/419849?v=4)](https://github.com/ujovlado "ujovlado (3 commits)")[![tomasfejfar](https://avatars.githubusercontent.com/u/642928?v=4)](https://github.com/tomasfejfar "tomasfejfar (2 commits)")[![janvanicek](https://avatars.githubusercontent.com/u/26391551?v=4)](https://github.com/janvanicek "janvanicek (1 commits)")[![sykora-ji](https://avatars.githubusercontent.com/u/29491790?v=4)](https://github.com/sykora-ji "sykora-ji (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/keboola-output-mapping/health.svg)

```
[![Health](https://phpackages.com/badges/keboola-output-mapping/health.svg)](https://phpackages.com/packages/keboola-output-mapping)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)

PHPackages © 2026

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