PHPackages                             keboola/sanitizer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. keboola/sanitizer

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

keboola/sanitizer
=================

Column name sanitizer

0.1.1(3y ago)0122.1k↑54.4%1MITPHPPHP &gt;=5.6

Since Jun 2Pushed 6mo ago15 watchersCompare

[ Source](https://github.com/keboola/sanitizer)[ Packagist](https://packagist.org/packages/keboola/sanitizer)[ RSS](/packages/keboola-sanitizer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (1)

Sanitizer [![Build Status](https://camo.githubusercontent.com/46cba3b6ef49482d02d35be282484ced13d4fec61e1f70ce237ced7daf2a5277/68747470733a2f2f7472617669732d63692e636f6d2f6b65626f6f6c612f73616e6974697a65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/keboola/sanitizer) [![Maintainability](https://camo.githubusercontent.com/a28dafdd77e488bf3a80d0bc6a0e98aec12b17b0d82e87b5f8a72709be18e22b/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f35323937366231333034666136323033636461622f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/keboola/sanitizer/maintainability) [![Test Coverage](https://camo.githubusercontent.com/066ed06b904ce375aa815c134130c60f1b2242051175b4192876b782d8f976c8/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f35323937366231333034666136323033636461622f746573745f636f766572616765)](https://codeclimate.com/github/keboola/sanitizer/test_coverage)
======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#sanitizer----)

Sanitizes strings so that they are usable as column identifiers in [Keboola Connection Storage](https://help.keboola.com/storage/tables/).

Usage
-----

[](#usage)

Method `sanitize` generates a string which is a safe column name:

```
use Keboola\Utils\Sanitizer\ColumnNameSanitizer;

$sanitized = ColumnNameSanitizer::sanitize('my column name');
echo $sanitized; // prints 'my_column_name'

```

Method `toAscii` removes converts accented characters non-accented to fit into basic ASCII charset:

```
use Keboola\Utils\Sanitizer\ColumnNameSanitizer;

$sanitized = ColumnNameSanitizer::toAscii('test-vn-đá cuội');
echo $sanitized; // prints 'test_vn_da_cuoi'

```

License
-------

[](#license)

MIT licensed, see [LICENSE](./LICENSE) file.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance46

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1446d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/101dbf2551a0709ddab522f97669f13a2c4cc2d0a1e8d009f3af6ba80accb1a9?d=identicon)[Keboola](/maintainers/Keboola)

---

Top Contributors

[![odinuv](https://avatars.githubusercontent.com/u/4319320?v=4)](https://github.com/odinuv "odinuv (8 commits)")[![ujovlado](https://avatars.githubusercontent.com/u/419849?v=4)](https://github.com/ujovlado "ujovlado (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/keboola-sanitizer/health.svg)

```
[![Health](https://phpackages.com/badges/keboola-sanitizer/health.svg)](https://phpackages.com/packages/keboola-sanitizer)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
