Skip to content

v0.1.1

Latest

Choose a tag to compare

@golivehost golivehost released this 11 Jan 16:15
· 2 commits to main since this release
36e432b

New Features and Improvements:

  1. Optimized QR Code Generation:

    • Replaced file_get_contents() with cURL for faster, more efficient QR code generation.
    • Disabled SSL verification (CURLOPT_SSL_VERIFYPEER and CURLOPT_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.
  2. Performance Measurement:

    • Added a mechanism to measure the time taken for QR code generation, including speed calculation and performance reporting.
  3. 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.
  4. 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.
  5. 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+.
  6. 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.json dependencies since it was no longer needed after the removal of the tests directory, reducing the library's size.
  7. 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.