Download the PHP package vuryss/serializer without Composer

On this page you can find all versions of the php package vuryss/serializer. 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 serializer

Fast serialization library

Tests codecov Codacy Badge CodeFactor GitHub Release GitHub License

Serializes and deserializes complex data structures to and from json. Ideas taken from Symfony's Serializer component, Serde and others.

Symfony serializer was very flexible, but also very slow. This library tries to be as fast as possible.

Supports modern PHP projects with fully typed properties. Older codebases with no types would not work.

Installation

Features

Serialization

Deserialization

Caching - optional, but highly recommended, otherwise the library will be slow

Supports PSR-6 CacheItemPoolInterface: https://www.php-fig.org/psr/psr-6/#cacheitempoolinterface

No need to chain in-memory cache with external cache, the library will do it for you. Cache will be called once per used class (used in serialization or deserialization), then will be cached in memory until the script ends.

Custom object property serialized name

Serialization groups

Deserialization groups

Custom date format

On serialization the format will always be respected. On deserialization the format will be used to parse the date. However on deserialization by default if the date is not in the provided format, it will be parsed as is, given that DateTime constructor can parse it.

Per property:

Or globally:

Enforce date format

If strict data time format is required during deserialization then, you can use the SerializerInterface::ATTRIBUTE_DATETIME_FORMAT_STRICT attribute:

Per property:

Or globally:

Ignore property

Those properties will not be included in the serialized values during serialization and will not be populated with provided values during deserialization.

Handling of NULL values

To disable this you can use the SerializerInterface::ATTRIBUTE_SKIP_NULL_VALUES attribute:

Per property:

Or globally:

Support for json serializable objects

If an object implements the JsonSerializable interface, the jsonSerialize method will be called and the result will be serialized.

Support for Symfony Serializer attributes

This library aims to be a drop-in replacement for Symfony Serializer. It supports the following attributes:

Build, run & test locally

To enter the prepared container environment:

Install package dependencies:

Run tests:

HTML Coverage locally:


All versions of serializer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
symfony/property-info Version ^7.0
phpdocumentor/reflection-docblock Version ^5.4.1
phpstan/phpdoc-parser Version ^2.0
psr/cache Version ^3.0
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 vuryss/serializer contains the following files

Loading the files please wait ....