Skip to content

Jay14512/customers-overview-v1-original

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Customers Overview (CSV Processing)

A small PHP project built during my PHP basics/intro module.
The goal was to read customer data from a CSV file, process it, and display useful information such as counts and filtered results.

This project was completed after my final exam as additional practice.
I continued working through extra exercises to strengthen my PHP fundamentals and improve my backend skills.

Module: PHP Basics
Goal: File Handling, Arrays & Data Processing
Status: ✅ Completed
Version: 1.0
Tech: PHP


📌 Project Overview

This project loads customer data from a CSV file (p2b.kunden.csv) and presents it in a structured overview.
The task was designed to practice file handling, working with arrays, and performing simple data processing operations using PHP.

After reading the CSV file, the app displays:

  • A list of all customers
  • Total number of customers
  • Number of male customers
  • Number of female customers

Additionally, the project includes sorting functionality that allows users to reorder the list by query parameters passed via the URL (e.g., ?sortby=lastname&order=asc).


✨ Features

  • Reads customer data from a CSV file
  • Converts raw CSV rows into associative arrays
  • Displays total, male, and female customer counts
  • Sorting by:
    • Last name
    • Gender
  • Query parameter handling for sorting (sortby, order)
  • Simple and clear output for testing and learning purposes

🧠 What I Learned

  • How to read and parse CSV files in PHP (fopen, fgetcsv)
  • Building associative arrays from raw file data
  • Filtering arrays using callback functions
  • Basic sorting logic with usort()
  • Handling query parameters via $_GET
  • Structuring small scripts that combine logic and output

This was one of my early PHP projects and introduced the fundamentals of working with data, processing it, and presenting results — skills that later became essential in more advanced backend applications.

About

CSV-based PHP project that reads, filters, and sorts customer data; built as extra practice after completing my exam.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors