PHP code example of district5 / mondoc-encryption

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

    

district5 / mondoc-encryption example snippets


    /**
     * Encrypt the field value.
     */
    public function encrypt(string $field, mixed $value): mixed;
    
    /**
     * Decrypt the field value.
     */
    public function decrypt(string $field, mixed $value): mixed;