PHP code example of paper-scorer / decrypter-php
1. Go to this page and download the library: Download paper-scorer/decrypter-php 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/ */
paper-scorer / decrypter-php example snippets
// This is the main rypterPhp/Decrypter;
// Creating a new decrypter object and setting the key.
// NOTE: The key is provided by PaperScorer.
$decrypter = new Decrypter($decryptKey);
// Setting the encrypted content sent from the PaperScorer engine.
$decrypter->setEncryptedContent($encryptedContent);
// Running the decrypter and getting the decrypted response.
// NOTE: The decrypted response will be a JSON string.
$decryptedResponse = $decrypter->decrypt();