Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laminas Serializer Laravel Package

laminas/laminas-serializer

Serialize and deserialize PHP data using multiple adapters (e.g., PHP native, JSON, XML, WDDX) with consistent options, error handling, and extensibility. Useful for caching, sessions, message payloads, and storage across different formats.

View on GitHub
Deep Wiki
Context7

Plugin Manager

The AdapterPluginManager extends the laminas-servicemanager AbstractPluginManager, and has the following behaviors:

  • It will only return Laminas\Serializer\Adapter\AdapterInterface instances.
  • It defines short-name aliases for all shipped serializers (the class name minus the namespace), in a variety of casing combinations.
  • All services are shared by default; a new instance will only be created once and shared each time you call get().

Factory

Laminas\Serializer\AdapterPluginManager is mapped to the factory. Laminas\Serializer\AdapterPluginManagerFactory when wired to the dependency injection container.

The factory will be automatically registered when loading/installing the Laminas\Serializer module in laminas-mvc and/or loading/installing the ConfigProvider into a Mezzio application.

The factory will look for the config service, and use the serializers configuration key to seed it with additional services. This configuration key should map to an array that follows standard laminas-servicemanager configuration.

To add your own serializer you can add the following configuration:

// config/autoload/serializers.global.php
return [
    'serializers' => [
        'factories' => [
            \App\MyCustomSerializer::class => \App\Container\MyCustomSerializerFactory::class,
        ],
    ],
];
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests