Download the PHP package bannerstop/planar without Composer
On this page you can find all versions of the php package bannerstop/planar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bannerstop/planar
More information about bannerstop/planar
Files in bannerstop/planar
Package planar
Short Description PLANAR - Print Layout and Numerical Area Representation
License MIT
Informations about the package planar
PLANAR - Print Layout and Numerical Area Representation
PLANAR is the deterministic, machine-readable specification of a print item's physical layout and constraints. It provides a standardized way to describe complex print products, including nested items, pages, bleeds, safety distances, and various overlays (marks, text, images).
Features
- Standardized Representation: Uses a set of PHP interfaces and models to represent print items accurately.
- Factory-Driven Creation: Each model has a corresponding factory to decouple instantiation from usage.
- Built-in Serialization: Seamlessly convert PLANAR objects to JSON and back using Symfony Serializer.
Installation
Install the package via Composer:
How to use it
1. Creating a Planar Instance
You can create a PLANAR representation by manually instantiating models or, preferably, by using the provided factories.
Using Factories
2. JSON Example
The following JSON illustrates how a complex PLANAR object is represented:
4. Serialization and Deserialization
The package provides a high-level service for serializing and deserializing PLANAR objects.
5. Using Interfaces
For maximum flexibility, always type-hint against the interfaces provided in src/Contract/.
Requirements
- PHP
>= 7.4 symfony/serializersymfony/property-accesssymfony/property-info
License
This project is licensed under the MIT License.
All versions of planar with dependencies
symfony/serializer Version ^5.4
symfony/property-access Version ^5.4
symfony/property-info Version ^5.4
phpdocumentor/reflection-docblock Version ^5.0
ext-json Version *