- 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.
30 lines
589 B
PHP
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, '_' ) ) );
|
|
}
|
|
}
|