This module provides two methods: PHP.serialize() and PHP.unserialize(), both of which should be compatible with the similarly named functions in PHP. It can also serialize and unserialize PHP sessions.
Thomas Hurst
gem "php-serialize", "~> 1.1.0"