PHP code example of rehkzylbz / otus-hw4-package

1. Go to this page and download the library: Download rehkzylbz/otus-hw4-package 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/ */

    

rehkzylbz / otus-hw4-package example snippets



$string = 'Hello, world! Всем привет!';
echo 'Исходная строка: ', $string, PHP_EOL;
$encode = CaesarCipher::encode($string);
echo 'Шифрованная строка: ', $encode, PHP_EOL;
$decode = CaesarCipher::decode($encode);
echo 'Расшифрованная строка: ', $decode, PHP_EOL;