Skip to content
@flow-php

Flow PHP

Data Processing Framework for PHP

Flow PHP

Flow is a PHP-based, strongly typed data processing framework with a low memory footprint.

Documentation · Quick Start · Roadmap · Discord

composer require flow-php/etl flow-php/etl-adapter-csv
data_frame()
    ->read(from_csv(__DIR__ . '/orders.csv'))
    ->withColumn('revenue', ref('total_price')->minus(ref('discount')))
    ->groupBy(['created_at'])
    ->aggregate(sum(ref('revenue')))
    ->write(to_csv(__DIR__ . '/revenue.csv'))
    ->run();

Author

Flow is created and maintained by Norbert Orzechowicz and built in the open since day one.

Why Flow

  • One API for every format. Read and write CSV, JSON, XML, Parquet, Excel, Avro and databases. Change to_csv() to to_parquet() and the pipeline stays the same.
  • Bounded memory. At the memory limit, sorts, joins and group-bys spill to disk. Large files do not crash the process.
  • Strict schemas. Flow infers the schema or validates the one you declare. Corrupted records go to a file that you choose.
  • An optimizer. Flow pushes filters and limits into the source. explain() shows each stage of the pipeline.
  • Pure PHP, faster with extensions. Flow runs on every PHP host. Optional native extensions speed up the same pipeline and give identical results.
  • No install needed to try it. The playground runs Flow in your browser.

Start here

All development happens in one repository: flow-php/flow. Open issues, discussions and pull requests there.

The other repositories in this organization are read-only copies of single packages. Composer installs packages from them. They do not accept pull requests.

Packages

Flow has more than 50 packages. Libraries, bridges and extensions do not depend on the core, so you can use each of them alone.

Packagist has the full list.

Contribute

Sponsors

Flow is free and open source. You can sponsor the project on GitHub. The sponsor page lists all sponsors.

Pinned Loading

  1. flow flow Public

    Strongly typed data processing framework for PHP with a low memory footprint.

    PHP 876 55

  2. parquet parquet Public

    Read and write Parquet files in pure PHP. An optional native extension makes it faster.

    PHP 63 3

  3. filesystem filesystem Public

    One filesystem API for local disks, S3, Azure Blob Storage and SFTP.

    PHP 6 4

  4. telemetry telemetry Public

    OpenTelemetry-compatible traces, metrics and logs for PHP.

    PHP 3 1

  5. types types Public

    Runtime types for PHP that match what static analysis tools understand.

    PHP 2 2

  6. postgresql postgresql Public

    PostgreSQL client, query builder and SQL parser for PHP, built on the real PostgreSQL parser.

    PHP

Repositories

Showing 10 of 67 repositories
  • flow-php.com Public

    🐘 Flow PHP website

    flow-php/flow-php.com's past year of commit activity
    HTML 0 1 0 0 Updated Nov 26, 2026
  • flow-php-ext Public

    PHP extension in Rust: the native column backend and CSV and JSON readers of Flow.

    flow-php/flow-php-ext's past year of commit activity
    Rust 0 0 0 0 Updated Nov 26, 2026
  • arrow-ext Public

    PHP extension in Rust with Apache Arrow and Parquet bindings for flow-php/parquet.

    flow-php/arrow-ext's past year of commit activity
    Rust 12 0 0 0 Updated Nov 26, 2026
  • pg-query-ext Public

    PHP extension that parses PostgreSQL queries with libpg_query.

    flow-php/pg-query-ext's past year of commit activity
    C 1 1 0 0 Updated Nov 26, 2026
  • phpunit-telemetry-bridge Public

    PHPUnit extension that exports test suite telemetry to OTLP backends.

    flow-php/phpunit-telemetry-bridge's past year of commit activity
    PHP 3 MIT 0 0 0 Updated Nov 26, 2026
  • phpunit-postgresql-bridge Public

    PHPUnit extension for flow-php/postgresql that wraps tests in transactions.

    flow-php/phpunit-postgresql-bridge's past year of commit activity
    PHP 0 MIT 0 0 0 Updated Nov 26, 2026
  • telemetry-otlp-bridge Public

    OTLP serializers and transports that export Flow Telemetry data.

    flow-php/telemetry-otlp-bridge's past year of commit activity
    PHP 1 MIT 1 0 0 Updated Nov 26, 2026
  • symfony-telemetry-bundle Public

    Symfony bundle that adds traces, metrics and logs to Symfony applications.

    flow-php/symfony-telemetry-bundle's past year of commit activity
    PHP 0 MIT 0 0 0 Updated Nov 26, 2026
  • symfony-postgresql-session-bridge Public

    Symfony session handler on PostgreSQL without PDO or Doctrine DBAL.

    flow-php/symfony-postgresql-session-bridge's past year of commit activity
    PHP 0 MIT 0 0 0 Updated Nov 26, 2026
  • symfony-postgresql-messenger-bridge Public

    Symfony Messenger transport on PostgreSQL without Doctrine DBAL.

    flow-php/symfony-postgresql-messenger-bridge's past year of commit activity
    PHP 0 MIT 0 0 0 Updated Nov 26, 2026