For install:
git clone https://github.com/bakl/exercise.git . composer update
Exercise on PHP
php php_exercise.php -s 'Привет мир'
Exercise SQL
php sql_exercise.php
Result:
PHP: Input string: Привет мир Out string: рм тврП SQL: -------------------------------------------- | name | distinations | ============================================ | Vasya | Cuba, Sochi | -------------------------------------------- | Maria | Aruba | -------------------------------------------- | George | Cuba, Sochi | -------------------------------------------- | Clark Kent | Cuba, Krypton | -------------------------------------------- | Traveler | Aruba, Krypton, Cuba, Sochi | -------------------------------------------- ------------ | name | ============ | Vasya | ------------ | George | ------------ | Traveler | ------------ ---------- | name | ========== | Vasya | ---------- | George | ----------