mevdschee / mevdschee/php-crud-api

Functionality for min(column) max(colum) and 'GROUP BY column'

Open
#1,062 2 comments 1 reaction 1 assignee View on GitHub

@mevdschee is already working on this.

Since Aug 7, 2025.

help wanted
Dominant language
PHP
Stars
3.7k
Forks
1k
Avg merge
1h 55m
Merged PRs (30d)
7

Description

Hi Maurits, how are you?

I am converting an application form accessing a mysql database directly to using a REST API.

One sql string is puzzling me a bit:

sql = string.Format("SELECT adres, kwhmeter_id, min(pulsen), max(pulsen) FROM 'pulsen' WHERE (gebruiker_id=@gebruiker_id) AND (timestamp>='{0}') AND (timestamp<='{1}') GROUP BY adres", StartDate.ToString(MYSQL_DATE_FORMAT), EndDate.ToString(MYSQL_DATE_FORMAT));

Could not find it in the docs, so I am wondering...
Is the following functionality present in your api.php?

  • min(column)
  • max(colum)
  • GROUP BY column

If not do you have suggestions in how to implement it?

Thanks on forehand!

Looking forward to hearing from you,
Best regards,
Raymond

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.