Back to selected projects
Open ProjectPublic PHP repository

PROJECT CASE STUDY // Backend engineering and structured data processing

Supplier Product Parser

A PHP command-line application that parses CSV and TSV supplier catalogues, validates product records and generates a report of unique product combinations.

PHPOOPCLICSVTSVComposerPHPUnit
PROJECT_PROFILE.exe

SYSTEM RECORD

>PROJECT: Supplier Product Parser

>CATEGORY: Open Project

>DOMAIN: Backend engineering and structured data processing

>VISIBILITY: PUBLIC

>STATUS: Public PHP repository

CHALLENGE

Supplier catalogue files can contain repeated product configurations and invalid rows that need to be processed consistently.

CONTRIBUTION

Built an object-oriented PHP CLI workflow separating command-line handling, product representation, validation, file parsing and combination aggregation.
  • Reads supplier product catalogues from CSV and TSV files.
  • Accepts configurable input and output paths through CLI options.
  • Maps structured catalogue rows into product objects.
  • Validates required brand and model information.
  • Throws exceptions for invalid product records.
  • Groups matching product attributes into unique combinations.
  • Exports combination counts into a generated CSV report.
  • Includes example source files and PHPUnit validation tests.
01

Expand PHPUnit coverage for parsing and malformed input cases.

02

Introduce namespaces and PSR-4 autoloading.

03

Add configurable field mappings for different supplier formats.

04

Add GitHub Actions continuous integration.

05

Support streaming for larger catalogue files.