Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. Getting the Numbers Out of the System
PHP Development

Getting the Numbers Out of the System

Building PHP reporting people actually use: reports that arrive automatically, run against a copy of the database and answer one clear business question.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Reports should arrive rather than be fetched, run against a copy rather than the live database, and answer a specific question rather than showing everything.

Most reports go unread

Businesses build comprehensive reporting and then look at it twice. The reports that get used are the ones that arrive automatically, answer one question, and require no interpretation.

A four-line email at 7am saying what happened yesterday gets read every day. A dashboard with forty charts gets opened in the first week and then never again.

Push, do not pull

  • Scheduled email with the key numbers, before people need them
  • Alerts when something is outside its normal range
  • A weekly summary with the trend, not just the number
  • The detailed view available for anyone who wants to dig in

Do not report from the live database

Heavy reporting queries against an operational database slow the application for everyone. A read replica or a nightly copy removes that risk entirely.

It also lets you build reporting tables shaped for querying rather than for transactions, which makes reports faster and simpler to write.

Define the numbers precisely

  1. Agree what each metric means, in writing
  2. Agree which date it is counted on — ordered, dispatched, invoiced, paid
  3. Decide how cancellations and refunds are treated
  4. Document it alongside the report itself

Two reports disagreeing because they define revenue differently is the most common reason a business stops trusting its reporting.

Make them reproducible

RequirementWhy
Same inputs give the same outputTrust
The date range is explicitComparability
The definition is documentedNobody has to guess
Historical reports can be regeneratedAuditability
ExportablePeople will want it in a spreadsheet

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

Should we use a BI tool instead?

For exploratory analysis, frequently yes. For a fixed set of operational reports, building them directly is simpler and cheaper.

How do we stop reports slowing the system?

Run them against a replica or a nightly copy. Never heavy reporting against the live operational database.

Who should define the metrics?

The business, in writing, before anything is built. Technical people should not be deciding what revenue means.

How many reports are enough?

Fewer than you think. Five that are read beats thirty that are not.

Keep reading

More on PHP Development

PHP Development

Why PHP Is Still a Sensible Choice

Is PHP still a good choice for business applications? Where modern, typed PHP fits, where another language is better, and the hosting and hiring arguments.

PHP Development

Improving Old Code Without a Rewrite

Modernising a legacy PHP application without a rewrite: move to a supported PHP version, add tests around what matters, then strangle rather than replace.

Start here

Reports nobody opens?

They probably need to arrive rather than be fetched. Happy to look at what your business actually reads.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →