ureh-terbalik/php-report-server — reverse-engineered prompt

Reverse engineered prompt

Build me a self contained PHP web app for designing and running reports in the browser. I want a visual drag and drop report designer where I can place text, database fields, totals, images, lines, page numbers, dates, and barcode or QR code elements on a page canvas, move and resize them, select multiple items, align them, and undo or redo changes.

The app should let me connect reports to a database query, detect query parameters automatically, and show the right input controls like text, number, date, checkbox, dropdown, and multi select. I want to preview reports in the browser and export them as HTML or PDF. Please include import and export of report designs as JSON, an image library for uploaded assets, conditional visibility and styling rules, word wrap, subtotals and grand totals, and report categories or templates.

Keep it simple to run locally with PHP, Composer, and SQLite for the app’s own storage. If it fits the project, include optional login based auth that can be turned on or off. Look up current docs online if you need to.

Want more depth? Deep Reverse