https://github.com/sakibweb/phde
PHDE is a PHP Development Environment utility
https://github.com/sakibweb/phde
php php-debug php-error-handler sakib sakiburrahman sakibweb
Last synced: 2 months ago
JSON representation
PHDE is a PHP Development Environment utility
- Host: GitHub
- URL: https://github.com/sakibweb/phde
- Owner: sakibweb
- License: mit
- Created: 2024-05-06T18:40:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-14T18:45:23.000Z (9 months ago)
- Last Synced: 2024-09-15T04:11:34.096Z (9 months ago)
- Topics: php, php-debug, php-error-handler, sakib, sakiburrahman, sakibweb
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```