PhpSerializer
Native PHP serializer and unserializer(Note: currently only supports PHP primitive data-types) for Ruby and it is heavily inspired by PHP source code.
Installation
Add this line to your application's Gemfile:
gem 'php_serializer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install php_serializer
Usage
PhpSerializer.serialize('example')
PhpSerializer.unserialize('s:7:"example";')
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/vijayrsv/php_serializer.
License
The gem is available as open source under the terms of the MIT License.