botanick/serializer
Laravel/PHP serializer package for converting objects and arrays to structured formats and back. Aims to simplify data transformation with configurable normalization/denormalization for APIs, DTOs, and persistence layers.
The only goal of ResourceSerializer is to serialize PHP's variables of resource type (e.g. after fopen(), mysql_query(), etc.).
$resourceSerializer = new \Botanick\Serializer\Serializer\DataSerializer\ResourceSerializer();
if ($resourceSerializer->supports($data)) {
$serializedData = $resourceSerializer->serialize($data);
}
ResourceSerializer has no options.
is_resource($data)
This serializer returns resource converted to string type (return (string)$data).
How can I help you explore Laravel packages today?