Download the PHP package terrazza/serializer without Composer

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

the serializer component

This component is meant to be used to turn objects into a specific format (XML,JSON,YAML,...) and the other way around.

  1. Methods
    1. Deserializer
      1. Decoder
      2. Denormalizer
        1. method: denormalize
        2. method: denormalizeMethodValues
    2. Serializer
      1. Normalizer
      2. Encoder
    3. Factory
      1. DeserializerFactory
      2. SerializerFactory
  2. Examples
    • Deserialize + Serialize Json (without Factory)
    • Denormalize::denormalizeMethodValues
  3. Install
  4. Requirements

Deserializer

Deserializer is a combination of

  1. decode (JSON,XML,CSV) a given string into an array
  2. denormalize into a class

Decode

The decoder converts a given string into an array. Actually Terrazza/Serializer supports

method: denormalizeClass

This method convert in input into the given className and

Properties:

Business logic

  1. initialize className with __constructor (if public)
  2. handle unused arguments with "setter"-methods (if public)

method: denormalizeMethodValues

This method map/convert given arguments into/based on an object and his methodName.

Properties:

How should a class be designed

We suggest that all required arguments are handled by the __constructor
and all optional arguments are handled by the setter.

Serializer

Serialize is a combination of

  1. normalize object to array
  2. encode array to (JSON,..)

Normalizer

The Normalizer converts an object into an array.

Business logic

  1. try to find for all properties by there "getter" methods (get{}, is{}, has{})
    found: retrieve related property value

  2. for all properties, public accessible mandatory (not handled by methods)
    found: retrieve property value

Encoder

The encoder converts an array to a string by using.

actually provided encodings:

Factory

Every factory covers his parent and provides, "contentType" based, an automatic execution.

DeserializerFactory

`

SerializerFactory

`

Examples

Unserialize + Serialize JSON (without Factory)

`

Denormalizer::denormalizeMethodValues

`

How to install

Install via composer

Requirements

php version


All versions of serializer with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
psr/log Version 1.1.*
ext-json Version *
ext-libxml Version *
terrazza/reflectionclass Version 1.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 terrazza/serializer contains the following files

Loading the files please wait ....