Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via composer

jms/serializer 3.29.1

Library for (de-)serializing data of any complexity; supports XML, and JSON.
Package summary
Share
0
issues
1
license
7
MIT
Package created
1 Dec 2012
Version published
14 Dec 2023
Maintainers
2
Total deps
7
Direct deps
5
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
doctrine/annotations@2.0.1
doctrine/instantiator@2.0.0
doctrine/lexer@3.0.1
jms/metadata@2.8.0
jms/serializer@3.29.1
phpstan/phpdoc-parser@1.29.0
psr/cache@3.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

5
All Dependencies CSV
β“˜ This is a list of jms/serializer 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
doctrine/annotations2.0.138.86 kBMIT
prod dev
doctrine/instantiator2.0.010.75 kBMIT
prod
doctrine/lexer3.0.1-MIT
prod
jms/metadata2.8.023.39 kBMIT
prod
phpstan/phpdoc-parser1.29.0-MIT
prod

Visualizations

Frequently Asked Questions

What does jms/serializer do?

The JMS/Serializer is a highly effective and flexible library, designed for serializing and deserializing data of any complexity. It's widely recognized for supporting both XML and JSON data formats. Key features include handling of complex exclusion strategies and circular references, integrations with Doctrine ORM and support for many built-in PHP types such as intervals and dates. With JMS/Serializer, you can easily adapt the output to meet your specific needs.

How do you use jms/serializer?

JMS/Serializer library is implemented in your PHP projects by using Composer. Below is a simple example of how to use it:

// Include the Composer autoloader
require 'vendor/autoload.php';

// Instantiate a serializer
$serializer = \JMS\Serializer\SerializerBuilder::create()->build();

// Create data object
$data = new Data();

// Serialize data into json
$jsonContent = $serializer->serialize($data, 'json');

// Deserialize data from json
$data = $serializer->deserialize($jsonContent, 'Data', 'json');

In this example, we first include the Composer autoloader. Then we create an instance of the serializer using the SerializerBuilder class. We then instantiate a Data object which we will serialize into JSON. Lastly, we deserialize data from JSON back into an object of class Data.

Where are the jms/serializer docs?

The extensive documentation for JMS/Serializer can be found at this page. This documentation provides a comprehensive guide to the usage of the library as well as additional features. It's an essential resource for getting the most functionality out of JMS/Serializer library.