PHP Classes

Packages of Thomas Trautner

Recommend this page to a friend!
  All class groups  >  All authors  >  Packages of Thomas Trautner (3)  >  Mission progress status  >  Reputation  
Picture of Thomas Trautner
Name: Thomas Trautner <contact>
Classes: 3
Country: Germany Germany
Age: 47
All time rank: Not yet ranked
Week rank: Not yet ranked
Innovation award
Innovation award
Nominee: 3x

Winner: 3x
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Better PHPinfo  
PHP Programming Innovation award winner
November 2025
Winner
Get information about the current PHP request
This package can get information about the current PHP request.

It provides a class that can get several details about the current request that PHP is processing in a similar way to the phpinfo() PHP function.

The class can display the information in a responsive Web page using Bootstrap 5 for styling with dark and light theme support.

The information can be displayed in groups by category using collapsible lists with icons and item counts.

There is a clear separation of the values of the main PHP configuration and the local configuration changes.

It also allows users to search for information entries of the current request using the given search keywords.

The class can also retrieve the current information requests in an array and functions to search for specific information values.

The access to the page where the current request information is displayed can be optionally protected using authentication based on a username and password.
Not yet rated by the users

  Files folder image Network Tools  
PHP Programming Innovation award winner
October 2025
Winner
Perform diagnostics of access to Internet services
This package can perform diagnostics of access to Internet services.

It provides a class that can access multiple types of Internet services to check their responses and display the responses on a Web page.

Currently, it can:

- Retrieve several types of DNS records for a domain: MX, A, TXT, PTR, CNAME, SOA, SPF.

- Connect to a given server using different protocols: TCP, HTTP, HTTPS, SMTP

- Send requests to given servers using different protocols: ping, traceroute, HTTPS, SSH, FTP, SMTP, DNS, POP3, IMAPS, POP3S, RDP, Telnet, SMTP submission, HTTP, MySQL.

In more detail, the NetworkTools class is a comprehensive PHP library designed for network and DNS diagnostic operations. It provides a unified interface for various network tests and DNS queries, with intelligent fallback mechanisms for restricted server environments.

The core features of the class automatically detect available PHP functions and system capabilities, implementing smart fallback strategies when certain functions are disabled. It offers both "real" system commands (ping, traceroute) and simulated alternatives using TCP connections when exec() is not available.

The class DNS functions support all major DNS record types, including MX records for email server configuration, A records for IP address resolution, TXT records for text-based DNS information, PTR records for reverse DNS lookups, CNAME records for aliases, SOA records for domain authority information, and SPF records for email authentication.

The class network connectivity tests provide TCP port testing to check open ports, SMTP server connectivity tests, HTTP/HTTPS availability checks with response time measurements, ping simulation using either ICMP or TCP-based alternatives, and traceroute simulation with intelligent path analysis.

When system commands are not available, the class provides intelligent fallbacks using creative alternatives.

The simulated ping tests multiple common ports (80, 443, 22, 25, etc.) to find an open connection and measures response times. The simulated traceroute analyzes DNS patterns and uses TCP connectivity tests to approximate network routing paths.

The universal lookup() function automatically detects input type, IP addresses trigger PTR lookups, email addresses trigger MX lookups for the domain portion, and domain names trigger A record lookups.

All functions return structured arrays with success and error status, timing information, and detailed results. The class includes formatting functions for HTML output and a comprehensive self-test function that generates a complete system capability report.

This class is ideal for network monitoring tools, server health checks, email deliverability testing, DNS troubleshooting, and general network diagnostics in web applications where system command access may be limited.
Not yet rated by the users

  Files folder image PHP Error Handler Class  
PHP Programming Innovation award winner
September 2025
Winner
Output details when a PHP error occurs
This package can output details when a PHP error occurs.

It registers class functions to handle PHP errors, exceptions, and fatal errors.

The error handler functions output HTML to display details of the error, like:

- HTTP response status code

- PHP script execution time

- Memory that was used

- Name of the file and number of the line of the code that triggered the error

- Snippet of the code that triggered the error displayed with syntax highlighting

- Backtrace of the functions that called the code that triggered the error

- HTTP server Name, PHP Version, Operating System, remote user IP address, included files

- Global variables

The package can also log the errors to a file, send email messages to the current site administrator about the errors.

The messages can be translated into multiple languages.

It can also keep track of the number of errors triggered by accesses from users of each IP address and ignore the errors if too many errors were triggered by requests from users of the same IP address.
Not yet rated by the users


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z