Download the PHP package stratadox/deserializer without Composer

On this page you can find all versions of the php package stratadox/deserializer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package deserializer

Deserializer

Build Status Coverage Status Infection Minimum PhpStan Level Scrutinizer Code Quality Maintainability Latest Stable Version License

Implements Latest Stable Version License

Transforms serialized data into objects.

Installation

Install with composer require stratadox/deserializer

What is this?

An object that Deserializes can convert serialized data into objects.

The serialized input data is expected to have the form of an array, either numeric or associative. This way, one can easily convert both the results of sql queries and decoded json, as well as session data and other sources.

How to use this?

To write the contents of an associative array to an object, one can use:

For writing the contents of a numerically indexed array into a collection object, use:

Or

In cases where no deserialization is needed, but a Deserializer is expected, one can use the ArrayDeserializer:

What else can it do?

By default, the collection deserializer uses a CollectionHydrator and the object deserializer uses an ObjectHydrator for simple objects, or a ReflectiveHydrator when inheritance is involved.

This default behaviour can be changed by injecting custom (potentially decorated) hydrators and instantiators:

In some cases, the input can vary in such a way that a different deserializer is required for different types of data.

For instance, when the input data represents an inheritance structure:

These features can be combined into more advanced deserialization structures, such as conditionally applied deserializers that are configured with mapped hydrators.


All versions of deserializer with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
ext-json Version *
stratadox/deserializer-contracts Version ^0.3
stratadox/hydrator Version ^6.0.1
stratadox/instantiator Version ^0.2
stratadox/specification Version ^1.0
stratadox/immutable-collection Version ^2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package stratadox/deserializer contains the following files

Loading the files please wait ....