1. Go to this page and download the library: Download hpd/captcha library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
captcha(); // returns image
captcha_get_src()// returns image source(URl)
captcha_get_html()// returns img html element
//If no configuration is specified, the default configuration will be used.
captcha('default'); // returns image
captcha_get_src('easy')// returns image source(URl)
captcha_get_html('dark')// returns img html element