encode and decode int to base64 using php

PHP
base64_decode('base64');
Source

Also in PHP: