PHP SAX Parser - library

Borys Zielonka • July 30, 2025

programming php

I started open source library - simple and efficient XML streaming parser for PHP using SAX (Simple API for XML) approach. This library allows you to parse large XML files without loading entire document into memory. This parser reads XML files chunk by chunk (streaming) so you can process huge XML files without memory issues. You configure what data you want to extract using simple YAML configs or direct PHP arrays.

Check more details: github repository (https://github.com/boryszielonka/php-sax-parser)