Repository navigation
New Features and Improvements:
-
Optimized QR Code Generation:
- Replaced
file_get_contents()with cURL for faster, more efficient QR code generation. - Disabled SSL verification (
CURLOPT_SSL_VERIFYPEERandCURLOPT_SSL_VERIFYHOST) to improve speed in environments where security checks are not a priority. - Enabled HTTP/2 support and TCP Fast Open to reduce network latency and improve performance.
- Replaced
-
Performance Measurement:
- Added a mechanism to measure the time taken for QR code generation, including speed calculation and performance reporting.
-
Test Script for Speed Benchmarking:
- Created a new test script (
examples/test_speed_of_qr_generation.php) to benchmark the speed of QR code generation on the server. - The script now generates a QR code and measures the time taken to complete the task.
- Added output displaying the time taken, speed, and performance metrics.
- Created a new test script (
-
Styled Output for Speed Test:
- Designed and implemented basic HTML and CSS for a clean, readable output of the speed test results.
- The QR code is displayed along with the measured performance metrics in a user-friendly format.
-
Updated README:
- Added a Requirements section in the README to specify the necessary PHP versions (
7.3+), and the need for the cURL extension to use the library. - Clarified that the library is now compatible with PHP 8.0+.
- Added a Requirements section in the README to specify the necessary PHP versions (
-
Cleaned Up Unused Files:
- Removed the tests directory and all related files, as they were unnecessary for the functionality of the library.
- Removed phpunit/phpunit from the
composer.jsondependencies since it was no longer needed after the removal of the tests directory, reducing the library's size.
-
Compatibility and Testing:
- Fully tested and confirmed to be working with PHP 8.0+.
- The library is now fully compatible with PHP 8.0+ and has been tested to ensure all features are functioning as expected.