Files
Jacek Pyziak cd264483f8 Add PSR HTTP Message Interfaces and Dependencies
- Implemented StreamInterface, UploadedFileInterface, and UriInterface as per PSR standards.
- Added getallheaders function to retrieve HTTP headers in a compatible manner.
- Included LICENSE files for ralouphie/getallheaders and symfony/deprecation-contracts.
- Introduced function for triggering deprecation notices in Symfony.
2025-12-28 12:44:00 +01:00

30 lines
589 B
PHP

<?php
/**
* Class ATFPP\AI_Translate\Services\Util\Strings
*
* @since 0.2.0
* @package ai-services
*/
namespace ATFPP\AI_Translate\Services\Util;
/**
* Class providing static methods for string operations.
*
* @since 0.2.0
*/
final class Strings {
/**
* Converts a snake_case string to a camelCase string.
*
* @since 0.2.0
*
* @param string $input The snake_case string.
* @return string The camelCase string.
*/
public static function snake_case_to_camel_case( string $input ): string {
return lcfirst( str_replace( '_', '', ucwords( $input, '_' ) ) );
}
}