PHP sha256 sample code
<?php
function encode(string $text): string {
    return hash('sha256', $text);
}

$input = "1234567";
$encoded = encode($input);
echo "Encoded: " . $encoded . PHP_EOL;
SHA256Hash Code Sample