Download the PHP package spiral/marshaller-bridge without Composer
On this page you can find all versions of the php package spiral/marshaller-bridge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spiral/marshaller-bridge
More information about spiral/marshaller-bridge
Files in spiral/marshaller-bridge
Package marshaller-bridge
Short Description Marshaller bridge for Spiral Framework
License MIT
Homepage https://github.com/spiral/marshaller-bridge
Informations about the package marshaller-bridge
Marshaller bridge for Spiral Framework
Requirements
Make sure that your server is configured with following PHP version and extensions:
- PHP >=8.1
- Spiral Framework ^3.0
Installation
You can install the package via composer:
After package install you need to register bootloader from the package.
Note Bootloader
Spiral\Serializer\Bootloader\SerializerBootloader
can be removed. If you are usingspiral-packages/discoverer
, you don't need to register bootloader by yourself.
Configuration
The package is already configured by default, use these features only if you need to change the default configuration.
The package provides the ability to configure the Spiral\Marshaller\Mapper\MapperFactoryInterface
and matchers
used by the Spiral\Marshaller\Marshaller
class.
Create a file app/config/marshaller.php
.
Add the mapperFactory
and matchers
configuration parameters. For example:
Usage
Using with Spiral\Serializer\SerializerManager
. For example:
Using with Spiral\Marshaller\MarshallerInterface
. For example:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
All versions of marshaller-bridge with dependencies
spiral/boot Version ^3.0
spiral/attributes Version ^2.8 || ^3.0
spiral/serializer Version ^3.0
spiral/marshaller Version ^1.0