nscps / php-functions
不值得拥有类或组件的函数。目前还不行。
1.0.0
2022-10-07 20:57 UTC
Requires
- php: >=8.1
- symfony/finder: ^6.1
- webmozart/assert: ^1.10
Requires (Dev)
- fakerphp/faker: ^1.20
- phpunit/phpunit: ^9.5
This package is not auto-updated.
Last update: 2024-09-22 04:37:56 UTC
README
不值得拥有类或组件的函数。目前还不行 :)
安装
composer require nscps/php-functions
函数
- 数组
- array_key_replace
- array_most_frequent_element
- array_subsets
- array_value_recursive
- array_value_replace
- natural_implode
- 颜色
- basic_html_color_names
- hex_to_html_color_name
- hex_to_rgb
- html_color_name_to_rgb
- html_color_name_to_hex
- html_color_names
- is_basic_html_color_name
- is_hex_color
- is_html_color_name
- is_rgb_color
- rgb_to_hex
- rgb_to_html_color_name
- 转换器
- 温度
- celsius_to_fahrenheit
- celsius_to_kelvin
- fahrenheit_to_celsius
- fahrenheit_to_kelvin
- kelvin_to_celsius
- kelvin_to_fahrenheit
- 时间
- hour_to_second
- minute_to_second
- month_to_second
- quarter_to_second
- week_to_second
- year_to_second
- 温度
- 表达式
- remove_extra_parenthesis
- 数学
- lcd (别名:lowest_common_denominator)
- gcd (别名:greatest_common_divisor)
- is_prime
- most_significant_bit
- most_significant_bit_exponent
- prime_numbers
- 随机
- random_char
- random_password
- random_string
- 字符串
- is_palindrome
- remove_extra_spaces
- replace_special_chars
- 工具
- swap