Skip to content

keboola/php-storage-names-sanitizer

Repository files navigation

PHP Storage Names Sanitizer

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.

About

[READ-ONLY] String sanitizer and webalizer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages