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
Requires
- php: ^8.2
- symfony/string: ^6.4
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: 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.