PHDE provides methods for managing PHP error reporting, setting HTTP response headers, and handling file downloads.
To create a PHDE instance and manage error reporting:
PHDE::debug(true); // Enable error reporting
// code here
PHDE::errors(true); // Enable displaying error reporting
To set HTTP response headers for API responses or file downloads:
PHDE::api(); // Set headers for API responses
PHDE::file('example.txt', 100); // Set headers for file downloads