---
title: "Sanitize and Format Data in PHP with the Transformer Package"
url: https://daily.dev/posts/sanitize-and-format-data-in-php-with-the-transformer-package-keimu-qgr
source_url: https://laravel-news.com/php-transformer
type: article
source: "Laravel News"
published: 2022-10-20T13:25:26.989Z
updated: 2022-11-14T02:14:43.137Z
tags: ["laravel", "php"]
reading_time: 1
upvotes: 10
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Sanitize and Format Data in PHP with the Transformer Package

**[Laravel News](https://daily.dev/sources/ln)** · 1 min read · 10 upvotes · 0 comments

## Summary

Sanitize and Format Data in PHP with the Transformer Package Transformer is a PHP package for sanitizing and formatting data. The package uses a familiar Laravel validation-like syntax to transform data using callable functions, classes, and more. This package supports nested array data using dot notation, wildcard inputs,

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/php-transformer>

---

Tags: [#laravel](https://daily.dev/tags/laravel), [#php](https://daily.dev/tags/php)

[View this post on daily.dev](https://daily.dev/posts/sanitize-and-format-data-in-php-with-the-transformer-package-keimu-qgr)
