AES encrypt PHP 5.6 to PHP 7.3

Job ID: 31289781

Budget: $50 – $80 USD

I would like to transform the code below code PHP 5.6 to PHP 7.3, please review the attached PHP file.
Related categories: PHP JavaScript Software Architecture Encryption