Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 624 Bytes

README.md

File metadata and controls

21 lines (19 loc) · 624 Bytes

PHDE

PHDE is a PHP Development Environment utility class.

PHDE provides methods for managing PHP error reporting, setting HTTP response headers, and handling file downloads.

Usage

Creating PHDE Instance

To create a PHDE instance and manage error reporting:

PHDE::debug(true); // Enable error reporting
// code here 
PHDE::errors(true); // Enable displaying error reporting

Setting HTTP Response Headers

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