Описание тега virtus

Virtus allows you to define attributes on classes, modules or class instances with optional information about types, reader/writer method visibility and coercion behavior. It supports a lot of coercions and advanced mapping of embedded objects and collections.

Taken from the docs:

Virtus allows you to define attributes on classes, modules or class instances with optional information about types, reader/writer method visibility and coercion behavior. It supports a lot of coercions and advanced mapping of embedded objects and collections.

.../...

You can use it in many different contexts like:

Input parameter sanitization and coercion in web applications Mapping JSON to domain objects Encapsulating data-access in Value Objects Domain model prototyping