any/serializer

Serialize any value for logging

Installs: 6 163

Dependents: 1

Watchers: 1

Forks: 2

Language: PHP

0.1.2 2013-09-20 05:52 UTC

README

Any.Serializer enables to serialize any object. It removes all contained unserializable item (such as resource, closure) for logging purpose.

Requirement

  • PHP 5.3+

Usage

$serializedText = (new Serializer)->serialize($object);