{"id":19956539,"url":"https://github.com/tbreuss/php-cfn","last_synced_at":"2025-05-03T20:32:19.706Z","repository":{"id":57065934,"uuid":"224723709","full_name":"tbreuss/php-cfn","owner":"tbreuss","description":"Userland implementation of PHP RFC: Consistent Function Names","archived":false,"fork":false,"pushed_at":"2019-12-30T09:40:13.000Z","size":97,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-16T01:45:52.303Z","etag":null,"topics":["consistent","function","names","php","rfc"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tbreuss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-28T20:25:16.000Z","updated_at":"2023-07-16T01:45:52.304Z","dependencies_parsed_at":"2022-08-24T10:10:43.511Z","dependency_job_id":null,"html_url":"https://github.com/tbreuss/php-cfn","commit_stats":null,"previous_names":[],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbreuss%2Fphp-cfn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbreuss%2Fphp-cfn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbreuss%2Fphp-cfn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbreuss%2Fphp-cfn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbreuss","download_url":"https://codeload.github.com/tbreuss/php-cfn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224374766,"owners_count":17300688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["consistent","function","names","php","rfc"],"created_at":"2024-11-13T01:34:39.945Z","updated_at":"2024-11-13T01:34:40.638Z","avatar_url":"https://github.com/tbreuss.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Packagist](https://img.shields.io/packagist/dt/tebe/php-cfn.svg)](https://packagist.org/packages/tebe/php-cfn)\n[![GitHub (pre-)release](https://img.shields.io/github/release/tbreuss/php-cfn/all.svg)](https://github.com/tbreuss/php-cfn/releases)\n[![License](https://img.shields.io/github/license/tbreuss/php-cfn.svg)](https://github.com/tbreuss/php-cfn/blob/master/LICENSE)\n[![PHP from Packagist](https://img.shields.io/packagist/php-v/tebe/php-cfn.svg)](https://packagist.org/packages/tebe/php-cfn)\n\n# PHP RFC: Consistent Function Names\n\nUserland implementation of [PHP RFC: Consistent Function Names](https://wiki.php.net/rfc/consistent_function_names). It\ncreates aliases with more consistent names.\n\nThere are many functions that named before naming standard in [CODING_STANDARDS](https://github.com/php/php-src/blob/master/CODING_STANDARDS.md).\nTherefore, PHP has function names like `phpversion()` and `htmlspecialchars()`.\n\nWe have many function names that comply [IEEE 1003.1](http://pubs.opengroup.org/onlinepubs/9699919799/idx/is.html)\nstandard names. IEEE 1003.1 is also well established names, but it has different naming. IEEE 1003.1 names can be use as\naliases.\n\nWithout cleanups, PHP may have inconsistent API names even if PHP has new APIs for the same purpose because we care\ncompatibility a lot. Unless we have standard confirming function names at some point, we may keep inconsistent function\nnames forever and never have consistent function names.\n\nPlease read the RCF for more information: https://wiki.php.net/rfc/consistent_function_names\n\n## Installation\n\n    composer require tebe/php-cfn\n\n## Functions\n\n### Functions other than Standard module\n\n\u003chttps://php.net/manual/en/book.bc.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\nbc_add | bcadd | \nbc_comp | bccomp | \nbc_div | bcdiv | \nbc_mod | bcmod | \nbc_mul | bcmul | \nbc_pow | bcpow | \nbc_pow_mod | bcpowmod | \nbc_scale | bcscale | \nbc_sqrt | bcsqrt | \nbc_sub | bcsub | \n\n\u003chttps://php.net/manual/en/book.gettext.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\ngettext_bind_text_domain_codeset | bind_textdomain_codeset | \ngettext_bind_text_domain | bindtextdomain | \n**gettext_dc** | dcgettext | \n**gettext_dcn** | dcngettext | \n**gettext_d** | dgettext | \n**gettext_dn** | dngettext | \n**gettext_n** | ngettext | \ngettext_text_domain | textdomain | \n\n\u003chttps://php.net/manual/en/book.bzip2.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\nbz_close | bzclose | \nbz_compress | bzcompress | \nbz_decompress | bzdecompress | \nbz_errno | bzerrno | \nbz_error | bzerror | \nbz_errstr | bzerrstr | \nbz_flush | bzflush | \nbz_open | bzopen | \nbz_read | bzread | \nbz_write | bzwrite | \n\n\u003chttps://php.net/manual/en/book.zlib.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\ngz_close | gzclose | \ngz_compress | gzcompress | \ngz_decode | gzdecode | \ngz_deflate | gzdeflate | \ngz_encode | gzencode | \ngz_eof | gzeof | \ngz_file | gzfile | \ngz_getc | gzgetc | \ngz_gets | gzgets | \ngz_getss | gzgetss | \ngz_inflate | gzinflate | \ngz_open | gzopen | \ngz_passthru | gzpassthru | \ngz_puts | gzputs | \ngz_read | gzread | \ngz_rewind | gzrewind | \ngz_seek | gzseek | \ngz_tell | gztell | \ngz_uncompress | gzuncompress | \ngz_write | gzwrite | \n**gz_read_file** | readgzfile | \n\n\u003chttps://php.net/manual/en/book.image.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\n**gd_image_size** | getimagesize | \n**gd_image_size_from_string** | getimagesizefromstring | \ngd_type_to_extension | image_type_to_extension | \ngd_type_to_mime_type | image_type_to_mime_type | \ngd_2wbmp | image2wbmp | \ngd_affine | imageaffine | \ngd_affine_matrix_concat | imageaffinematrixconcat | \ngd_affine_matrix_get | imageaffinematrixget | \ngd_alpha_blending | imagealphablending | \ngd_antialias | imageantialias | \ngd_arc | imagearc | \ngd_char | imagechar | \ngd_charup | imagecharup | \ngd_color_allocate | imagecolorallocate | \ngd_color_allocate_alpha | imagecolorallocatealpha | \ngd_color_at | imagecolorat | \ngd_color_closest | imagecolorclosest | \ngd_color_closest_alpha | imagecolorclosestalpha | \ngd_color_closest_hwb | imagecolorclosesthwb | \ngd_color_deallocate | imagecolordeallocate | \ngd_color_exact | imagecolorexact | \ngd_color_exact_alpha | imagecolorexactalpha | \ngd_color_match | imagecolormatch | \ngd_color_resolve | imagecolorresolve | \ngd_color_resolve_alpha | imagecolorresolvealpha | \ngd_color_set | imagecolorset | \ngd_colors_for_index | imagecolorsforindex | \ngd_colors_total | imagecolorstotal | \ngd_color_transparent | imagecolortransparent | \ngd_convolution | imageconvolution | \ngd_copy | imagecopy | \ngd_copy_merge | imagecopymerge | \ngd_copy_merge_gray | imagecopymergegray | \ngd_copy_resampled | imagecopyresampled | \ngd_copy_resized | imagecopyresized | \ngd_create | imagecreate | \ngd_create_from_gd2 | imagecreatefromgd2 | \ngd_create_from_gd2_part | imagecreatefromgd2part | \ngd_create_from_gd | imagecreatefromgd | \ngd_create_from_gif | imagecreatefromgif | \ngd_create_from_jpeg | imagecreatefromjpeg | \ngd_create_from_png | imagecreatefrompng | \ngd_create_from_string | imagecreatefromstring | \ngd_create_from_wbmp | imagecreatefromwbmp | \ngd_create_from_webp | imagecreatefromwebp | \ngd_create_from_xbm | imagecreatefromxbm | \ngd_create_from_xpm | imagecreatefromxpm | \ngd_create_true_color | imagecreatetruecolor | \ngd_crop | imagecrop | \ngd_crop_auto | imagecropauto | \ngd_dashed_line | imagedashedline | \ngd_destroy | imagedestroy | \ngd_ellipse | imageellipse | \ngd_fill | imagefill | \ngd_filled_arc | imagefilledarc | \ngd_filled_ellipse | imagefilledellipse | \ngd_filled_polygon | imagefilledpolygon | \ngd_filled_rectangle | imagefilledrectangle | \ngd_fill_to_border | imagefilltoborder | \ngd_filter | imagefilter | \ngd_flip | imageflip | \ngd_font_height | imagefontheight | \ngd_font_width | imagefontwidth | \ngd_ft_bbox | imageftbbox | \ngd_ft_text | imagefttext | \ngd_gamma_correct | imagegammacorrect | \ngd_raw2 | imagegd2 | \ngd_raw | imagegd | \ngd_gif | imagegif | \ngd_grab_screen | imagegrabscreen | \ngd_grab_window | imagegrabwindow | \ngd_interlace | imageinterlace | \ngd_is_true_color | imageistruecolor | \ngd_jpeg | imagejpeg | \ngd_layer_effect | imagelayereffect | \ngd_line | imageline | \ngd_load_font | imageloadfont | \ngd_palette_copy | imagepalettecopy | \ngd_palette_to_true_color | imagepalettetotruecolor | \ngd_png | imagepng | \ngd_polygon | imagepolygon | \ngd_ps_bbox | imagepsbbox | \ngd_ps_encode_font | imagepsencodefont | \ngd_ps_extend_font | imagepsextendfont | \ngd_ps_free_font | imagepsfreefont | \ngd_ps_load_font | imagepsloadfont | \ngd_ps_slant_font | imagepsslantfont | \ngd_ps_text | imagepstext | \ngd_rectangle | imagerectangle | \ngd_rotate | imagerotate | \ngd_save_alpha | imagesavealpha | \ngd_scale | imagescale | \ngd_set_brush | imagesetbrush | \ngd_set_interpolation | imagesetinterpolation | \ngd_set_pixel | imagesetpixel | \ngd_set_style | imagesetstyle | \ngd_set_thickness | imagesetthickness | \ngd_set_tile | imagesettile | \ngd_string | imagestring | \ngd_string_up | imagestringup | \n**gd_width** | imagesx | \n**gd_height** | imagesy | \ngd_true_color_to_palette | imagetruecolortopalette | \ngd_ttf_bbox | imagettfbbox | \ngd_ttf_text | imagettftext | \ngd_types | imagetypes | \ngd_wbmp | imagewbmp | \ngd_webp | imagewebp | \ngd_xbm | imagexbm | \ngd_iptc_embed | iptcembed | \ngd_iptc_parse | iptcparse | \ngd_jpeg2wbmp | jpeg2wbmp | \ngd_png2wbmp | png2wbmp | \n\n\u003chttps://php.net/manual/en/book.exif.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\nexif_image_type | exif_imagetype | \nexif_tag_name | exif_tagname | \n\n\u003chttps://php.net/manual/en/book.ctype.php\u003e\n\nctype modules functions are IEEE functions. Add \"ctype_\" prefixed IEEE aliases.\n\nNew | Old | Comment\n--- | --- | ---\nctype_alnum |  **ctype_isalnum**  | IEEE \nctype_alpha |  **ctype_isalpha**  | IEEE \nctype_cntrl |  **ctype_iscntrl**  | IEEE \nctype_digit |  **ctype_isdigit**  | IEEE \nctype_graph |  **ctype_isgraph**  | IEEE \nctype_lower |  **ctype_islower**  | IEEE \nctype_print |  **ctype_isprint**  | IEEE \nctype_punct |  **ctype_ispunct**  | IEEE \nctype_space |  **ctype_isspace**  | IEEE \nctype_upper |  **ctype_isupper**  | IEEE \nctype_xdigit |  **ctype_isxdigit**  | IEEE \n\n\u003chttps://php.net/manual/en/book.mbstring.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\nmb_decode_mime_header | mb_decode_mimeheader | \nmb_decode_numeric_entity | mb_decode_numericentity | \nmb_encode_mime_header | mb_encode_mimeheader | \nmb_encode_numeric_entity | mb_encode_numericentity | \n**mb_mail** | mb_send_mail | There is mail() as standard function \n\n### Socket Functions\n\n\u003chttps://php.net/manual/en/book.sockets.php\u003e\n\nIEEE names are prefixed by \"socket_\"\n\nNew | Old | Comment\n--- | --- | ---\nsocket_get_peer_name | socket_getpeername | IEEE \nsocket_get_sock_name | socket_getsockname | IEEE \nsocket_recv_from | socket_recvfrom | IEEE \nsocket_recv_msg | socket_recvmsg | IEEE \nsocket_send_msg | socket_sendmsg | IEEE \nsocket_send_to | socket_sendto | IEEE \n**socket_errstr**  | socket_strerror | **need more consideration. strerror() is IEEE name** Adjust to accord with other names. errstr/errno abbreviations are used by various functions/classes. e.g. bz_errstr(), MySQLi::$errno. \n\n\u003chttps://php.net/manual/en/book.apache.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\n**sapi_request_headers** | getallheaders | Categorized as apache function, but available for CLI and FCGI also \n**apache_virtual** | virtual | \napache_get_env | apache_getenv | \napache_set_env | apache_setenv | \n\n### Date/Time Functions\n\n\u003chttps://php.net/manual/en/book.datetime.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\n**date_get** | getdate | (Return array date)(IEEE)  \n**date_check** | checkdate | \n**time_part** | idate | (Retrieve part of date information as int according to format) \n**time_make** | mktime | (Return timestamp from number of int parameters)(IEEE)  \n**time_format** | strftime | (Return local time string according to format/locale)(IEEE)  \n**time_utc** | gmdate | (Return array GMT/UTC timestamp)  \n**time_utc_make** | gmmktime | (Return GMT/UTC timestamp from array) \n**time_utc_format** | gmstrftime | (Return GMT/UTC time string according to format/locale)  \n**time_get** | gettimeofday | (Return array time of day)(IEEE)  \n**time_local** | localtime | (Return localtime() result array. More info than time_get/gettimeofday)(IEEE)  \n**time_micro** | microtime | (Return microtime resolution time)(IEEE)  \n**time_parse** | strptime | (Parse time string generated by time_format/strftime. Return timestamp) (IEEE)  \n**time_from_string**  | strtotime | (Parse string time and return timestamp. Return timestamp) \n\n### Directory Related Functions\n\nDirectory related : Prefixed by \"dir_\" It's supposed to be named as \"dir module\". Note: These functions changes \"directory entry\" information.\n\nNew | Old | Comment\n--- | --- | ---\ndir_rename | rename| Rename is actually a directory operation. e.g File deletion/rename is controlled by current dir permission (IEEE) \n**dir_delete** | rmdir | IEEE \n**dir_create** | mkdir | IEEE \ndir_chown |  chown | IEEE \ndir_chmod | chmod | IEEE \ndir_chgrp | chgrp | IEEE \ndir_name | dirname | IEEE \ndir_glob | glob | IEEE \n\n\u003chttps://php.net/manual/en/ref.dir.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\n**dir_set** | chdir | IEEE \ndir_chroot | chroot | IEEE \n**dir_get** | getcwd | IEEE \n**dir_open** | opendir | IEEE \n**dir_close** | closedir | IEEE \n**dir_read** | readdir | IEEE \n**dir_rewind** | rewinddir | IEEE \n**dir_scan** | scandir | IEEE \n\n### Function Handling Functions\n\n\u003chttps://php.net/manual/en/ref.funchand.php\u003e \n\nAll of function handling functions are prefixed by \"function_\" by these.\n\nNew | Old | Comment\n--- | --- | ---\n**function_declared** | get_defined_functions | There are get_defined_constants()/get_defined_vars(), but class/interface/trait use get_declared_classes/interfaces/traits() \n**function_create** | create_function | There is function_exists()  \n**function_arg** | func_get_arg | \n**function_args** | func_get_args | \nfunction_num_args | func_num_args | \n**function_call_user** | call_user_func | \n**function_call_user_array** | call_user_func_array | \n**function_shutdown_register** | register_shutdown_function | \n**function_tick_register** | register_tick_function | \n**function_tick_unregister** | unregister_tick_function | \n**function_static_call_array** | forward_static_call_array | \n**function_static_call** | forward_static_call | \n\n### Command Execution Functions\n\n\u003chttps://php.net/manual/en/ref.exec.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\n**exec_passthru** | passthru | Named after exec() \n**exec_shell** | shell_exec | \n**exec_system** | system | IEEE \n**exec_escape_arg** | escapeshellarg | \n**exec_escape_cmd** | escapeshellcmd | \n\n### String Related Functions\n\n\u003chttp://php.net/ref.strings\u003e\n\nHTML related:\n\nNew | Old | Comment\n--- | --- | ---\nhtml_entities | htmlentities | \n**html_escape** | htmlspecialchars | Rename it with real meaning \n**html_escape_decode** | htmlspecialchars_decode | \n**html_nl2br** | nl2br | \n**html_strip_tags** | strip_tags | \n**html_translation_table** | get_html_translation_table | \n\nLocate related:\n\nNew | Old | Comment\n--- | --- | ---\nlocale_conv | localeconv | IEEE \n**locale_set** | setlocale | IEEE \n**locale_info** | nl_langinfo | IEEE \n\n\"string\" function but no \"str_\" prefix\n\nNew | Old | Comment\n--- | --- | ---\n**str_cslashes** | addcslashes | \n**str_cslashes_strip** | stripcslashes | \n**str_slashes** | addslashes | \n**str_slashes_strip** | stripslashes | \nstr_chop | chop | \nstr_count_chars | count_chars | \nstr_chunk_split | chunk_split | \nstr_explode | explode | \nstr_implode | implode | \nstr_money_format | money_format | \nstr_number_format | number_format | \nstr_levenshtein | levenshtein | \nstr_metaphone | metaphone | \n**str_parse** | parse_str | \nstr_quote_meta | quotemeta | \nstr_similar_text | similar_text | \nstr_soundex | soundex | \nstr_sscanf | sscanf | IEEE \nstr_rtrim | rtrim | \nstr_trim | trim | \nstr_ltrim | ltrim | \nstr_lc_first | lcfirst | \nstr_uc_first | ucfirst | \nstr_uc_words | ucwords | \nstr_word_wrap | wordwrap | \n\nComparison:\n\nNew | Old | Comment\n--- | --- | ---\nstr_cmp | strcmp | IEEE \nstr_ncmp | strncmp | IEEE \nstr_case_cmp | strcasecmp | IEEE \nstr_ncase_cmp | strncasecmp | IEEE \nstr_nat_cmp | strnatcmp | IEEE \nstr_nat_case_cmp | strnatcasecmp | IEEE \n\nConversion:\n\nNew | Old | Comment\n--- | --- | ---\nstr_to_lower | strtolower, **tolower**  | IEEE \nstr_to_upper | strtoupper, **toupper**  | IEEE \n\nMisc:\n\nNew | Old | Comment\n--- | --- | ---\nstr_get_csv | str_getcsv | \n\nNamed after libc:\n\nNew | Old | Comment\n--- | --- | ---\nstr_chr | strchr | IEEE \nstr_cmp | strcmp | IEEE \nstr_coll | strcoll | IEEE \nstr_cspn | strcspn | IEEE \nstr_ipos | stripos | \nstr_istr | stristr | \nstr_len | strlen | IEEE \nstr_pbrk | strpbrk | IEEE \nstr_pos | strpos | \nstr_rchr | strrchr | \nstr_rev | strrev | \nstr_ripos | strripos | \nstr_rpos | strrpos | \nstr_spn | strspn | IEEE \nstr_str | strstr | IEEE \nstr_tok | strtok | IEEE \nstr_tr | strtr | \n\n\u003chttps://php.net/manual/en/book.mbstring.php\u003e\n\nIEEE names are prefixed by \"mb_\"\n\nNew | Old | Comment\n--- | --- | ---\nmb_str_cut | mb_strcut | \n**mb_str_trim_width** | mb_strimwidth | \nmb_str_ipos | mb_stripos | \nmb_str_istr | mb_stristr | \nmb_str_len | mb_strlen | IEEE \nmb_str_pos | mb_strpos | \nmb_str_rchr | mb_strrchr | \nmb_str_richr | mb_strrichr | \nmb_str_ripos | mb_strripos | \nmb_str_rpos | mb_strrpos | \nmb_str_str | mb_strstr | IEEE \nmb_str_to_lower | mb_strtolower, **mb_tolower**  | IEEE \nmb_str_to_upper | mb_strtoupper, **mb_toupper**  | IEEE \nmb_str_width | mb_strwidth | \n\n\u003chttps://php.net/manual/en/book.iconv.php\u003e\n\nIEEE names are prefixed by \"iconv_\"\n\nNew | Old | Comment\n--- | --- | ---\niconv_str_len | iconv_strlen | IEEE \niconv_str_pos | iconv_strpos | \niconv_str_rpos | iconv_strrpos | \n\n\u003chttps://php.net/manual/en/book.intl.php\u003e\n\nIEEE names are prefixed by \"grapheme_\"\n\nNew | Old | Comment\n--- | --- | ---\ngrapheme_str_ipos | grapheme_stripos | \ngrapheme_str_istr | grapheme_stristr | \ngrapheme_str_len | grapheme_strlen | IEEE \ngrapheme_str_pos | grapheme_strpos | \ngrapheme_str_ripos | grapheme_strripos | \ngrapheme_str_rpos | grapheme_strrpos | \ngrapheme_str_str | grapheme_strstr | IEEE \n\n### Array Related Functions\n\u003chttps://php.net/manual/en/ref.array.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\narray_sort | sort | Sort values \n**array_sort_reverse** | rsort | Reverse sort values \n**array_usort** | usort | User sort values \n**array_sort_assoc** | asort | Keep key and sort \n**array_sort_assoc_reverse** | arsort | Keep key and reverse sort \n**array_sort_uassoc** | uasort | Keep key and user sort \n**array_sort_key** | ksort | Sort keys \n**array_sort_key_reverse** | krsort | Reverse sort keys \n**array_sort_ukey** | uksort | User key sort \n**array_sort_natural** | natsort | Natural sort \n**array_sort_natural_case** | natcasesort | Natural sort without case \n**array_in** | in_array | \narray_range | range | Create array of range \narray_shuffle | shuffle | Randomize values \n**array_find** | array_search | \n**array_key_find** | array_key_exists | \n\n### File Related Functions\n\u003chttps://php.net/manual/en/ref.filesystem.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\nlink_info | linkinfo | \n**link_stat** | lstat | IEEE \n**link_chown** | lchown | IEEE \n**link_chgrp** | lchgrp | IEEE \n**link_read** | readlink | IEEE \n**link_symbolic** | symlink | IEEE \n**path_base_name** | basename | \npath_info | pathinfo | \nfile_read | readfile | This could be file_read() or file_passthru(). If rename fopen()/etc with \"file_\" prefix, file_read() may conflict with fread() file_passthru() may conflict with fpassthru(). \n**pipe_close** | pclose | IEEE \n**pipe_open** | popen | IEEE \nfile_atime | fileatime | \nfile_ctime | filectime | \nfile_group | filegroup | \nfile_inode | fileinode | \nfile_mtime | filemtime | \nfile_owner | fileowner | \nfile_perms | fileperms | \nfile_size | filesize | \nfile_type | filetype | \n**file_name_match** | fnmatch | IEEE \n**file_temp_name** | tempnam | IEEE \nfile_copy | copy | IEEE \nfile_stat | stat | IEEE \n**file_stat_clear_cache** | clearstatcache | \n**file_move_uploaded** | move_upload_file | \n**file_delete** | unlink | There is dummy \"delete()\" function entry for unlink(). Unlink is a directory operation in fact, but made it as file_delete(). There will be dir_delete() \n**file_rename** | rename | \n\nf*() : Examples are fopen(), fread(). These functions are for file(stream) resource. \"f\" prefix functions are kept, there should be \"ftemp(tmpfile)\",\"frewind(rewind)\" because these operates with file(stream) resource.\n\nNew | Old | Comment\n--- | --- | ---\nfget_csv | fgetcsv | IEEE \nfput_csv | fputcsv | \n**frewind** | rewind | This one is exception that does not have \"f\" prefix, but operates with file handle \n**ftemp** | tmpfile | This one is exception that does not have \"f\" prefix, but returns file handle, IEEE \n\n\n### Other Standard Functions\n\n\u003chttps://php.net/manual/en/book.misc.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\ntime_sleep | sleep | IEEE \ntime_nano_sleep | time_nanosleep, **nanosleep**  | IEEE \n**time_micro_sleep** | usleep | IEEE \ntime_unique_id | uniqid | uniqid() is microtime() based \nsys_get_load_avg | sys_getloadavg | \nphp_strip_white_space | php_strip_whitespace | \n\n\u003chttps://php.net/manual/en/book.url.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\nurl_decode | urldecode | \nurl_encode | urlencode | \nurl_raw_decode | rawurldecode | \nurl_raw_encode | rawurlencode | \n**url_parse** | parse_url | \n**url_build_query** | http_build_query | Make it URL function \n**url_meta_tags** | get_meta_tags | Get meta tags from URL/file \n**url_headers** | get_headers | Get meta tags from URL/file \n\n\u003chttps://php.net/manual/en/ref.info.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\nphp_credits | phpcredits | \nphp_info | phpinfo | \nphp_version | phpversion | \nget_opt | getopt | \nget_env | getenv | **This could be \"env_get\"**, IEEE \nput_env | putenv | **This could be \"env_set\"**, IEEE \n\nFollowing get_() may be prefixed by \"php_\" rather than \"get_\".\n\nNew | Old | Comment\n--- | --- | ---\nget_last_mod | getlastmod | Return **main** script timestamp. \nget_my_gid | getmygid | \"my_\" prefix used because they return info about **current** script.  \nget_my_inode | getmyinode | \nget_my_pid | getmypid | \nget_my_uid | getmyuid | \nget_rusage | getrusage | \n\n\u003chttps://php.net/manual/en/book.var.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\nbool_val | boolval | \ndouble_val | doubleval | \nfloat_val | floatval | \nint_val | intval | \nstr_val | strval | \n**type_get** | gettype | \n**type_set** | settype | \n**type_resource** | get_resource_type | Get resource type \n\n\u003chttps://php.net/manual/en/book.var.php\u003e\n\nNew | Old | Comment\n--- | --- | ---\nphp_defined_vars | get_defined_vars | \n\n\u003chttps://php.net/manual/en/ref.classobj.php\u003e \n\nMost of Class/interface/trait related functions are prefixed by \"class_\"/\"interface_\"/\"trait_\".\n\nNew | Old | Comment\n--- | --- | ---\n**class_called** | get_called_class | Get late static binding class name. There are class_exists()/class_alias() \nclass_methods | get_class_methods | \nclass_vars | get_class_vars | Get class property \n**class_get** | get_class | Get class name of an object \n**class_parent** | get_parent_class | \nclass_object_vars | get_object_vars | Get instance property \n**class_declared** | get_declared_classes | \n**interface_declared** | get_declared_interfaces | There is interface_exists() \n**trait_declared** | get_declared_traits | There is trait_exists() \n\n\u003chttps://php.net/manual/en/book.info.php\u003e\n\nPHP related function are prefixed by \"php_\".\n\nNew | Old | Comment\n--- | --- | ---\nphp_extension_loaded | extension_loaded | \n**php_extension_loaded_all** | get_loaded_extensions | Like ini_get_all() \n**php_extension_functions** | get_extension_funcs | \nphp_dl | dl | \nphp_cfg_var | get_cfg_var | Get value from configuration(INI) file including non-INI value\nphp_current_user | get_current_user | Owner of current PHP script file \nphp_defined_constants | get_defined_constants | There is [get_defined_vars()](https://php.net/manual/en/book.var.php \"https://php.net/manual/en/book.var.php\") \n**php_include_path_get** | get_include_path | Like ini_get/set/restore(). ini_set/get/restore() can do the same. Deprecate all them? or only have php_include_path() does both get/set? \n**php_include_path_set** | set_include_path | \n**php_include_path_restore** | restore_include_path | \nphp_included_files | get_included_files | \nphp_required_files | get_required_files | \n**php_time_limit** | set_time_limit | \"_set\" may be omitted. It changes \"max_execution_time\" INI. ini_set() can do the same. Deprecate? \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbreuss%2Fphp-cfn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbreuss%2Fphp-cfn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbreuss%2Fphp-cfn/lists"}