PHP code example of snappdoctor / drcoder
1. Go to this page and download the library: Download snappdoctor/drcoder 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/ */
snappdoctor / drcoder example snippets
use DrCoder\EncoderService;
$first = "encode_me_1";
$second = "encode_me_2";
$base64_encoded_array = EncoderService::driver(EncoderService::DRIVER_BASE64)
->encode([$first, $second]);
$first_base64_encoded = $base64_encoded_array[0];
$second_base64_encoded = $base64_encoded_array[1];
$aes_encoded_array = EncoderService::driver(EncoderService::DRIVER_AES_SSL)
->encode([$first, $second]);
$first_aes_encoded = $aes_encoded_array[0];
$second_aes_encoded = $aes_encoded_array[1];
$first = "decode_me_1";
$second = "decode_me_2";
$base64_decoded_array = EncoderService::driver(EncoderService::DRIVER_BASE64)
->decode([$first, $second]);
$first_base64_decoded = $base64_decoded_array[0];
$second_base64_decoded = $base64_decoded_array[1];
$aes_decoded_array = EncoderService::driver(EncoderService::DRIVER_BASE64)
->decode([$first, $second]);
$first_aes_decoded = $aes_decoded_array[0];
$second_aes_decoded = $aes_decoded_array[1];
bash
$ php artisan vendor:publish
config/app.php