keboola / php-storage-names-sanitizer
Storage column name sanitizer
Package info
github.com/keboola/php-storage-names-sanitizer
pkg:composer/keboola/php-storage-names-sanitizer
1.0.2
2026-03-27 22:57 UTC
Requires
- php: ^8.2
- symfony/string: ^6.4 || ^7.0
Requires (Dev)
- keboola/coding-standard: >=16.0
- phpstan/phpstan: ^2.1
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^11.5
This package is auto-updated.
Last update: 2026-06-22 09:03:52 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.