keboola/php-storage-names-sanitizer

Storage column name sanitizer

Installs: 7

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

pkg:composer/keboola/php-storage-names-sanitizer

1.0.1 2025-11-14 11:00 UTC

This package is auto-updated.

Last update: 2025-11-19 13:24:25 UTC


README

Sanitizes strings so that they are usable as column identifiers in Keboola Connection Storage.

Usage

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

use Keboola\StorageNamesSanitizer\ColumnNameSanitizer;

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

License

MIT licensed, see LICENSE file.