The libsodium-compatible cryptography API is for PHP < 7.2. PHP 7.2+ has the original libsodium cryptography API built in.