PHP code example of gourabsutradhar / secureimage

1. Go to this page and download the library: Download gourabsutradhar/secureimage 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/ */

    

gourabsutradhar / secureimage example snippets


<form method="post" action="{{route('verify.web')}}">
<image src="{{secureimage_base64()}}">
@csrf
<br>
<input type="text" name="code">
<br>
<input type="submit" value="verify">
</form>

 $validator=Validator::make(request()->all(),['code'=>'secureimage_web']);

 $validator=Validator::make(request()->all(),['code'=>'secureimage_api:'.$request->key]);

php artisan vendor:publish