andrzejkupczyk/html-encoder

This package is abandoned and no longer maintained. No replacement package was suggested.

Encoder that encodes and decodes data in HTML

v1.0.0 2020-02-09 12:22 UTC

This package is auto-updated.

Last update: 2020-11-14 14:46:27 UTC


README

PHP requirement

Encoder that transforms arrays into HTML and vice versa.
Requires the DomCrawler component.

Installation

Using Composer:

composer require andrzejkupczyk/html-encoder

Example usage

<?php

use Symfony\Component\Serializer;
use WebGarden\Component\Serializer\Encoder\HtmlEncoder;

$encoders = [new HtmlEncoder()];
$serializer = new Serializer([], $encoders);