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

Top languages

Loading…

Most used topics

Loading…