{"id":15309547,"url":"https://github.com/nguyenanhung/codeigniter-basic-helper","last_synced_at":"2025-04-15T01:07:35.299Z","repository":{"id":47653415,"uuid":"393459290","full_name":"nguyenanhung/codeigniter-basic-helper","owner":"nguyenanhung","description":"CodeIgniter - Basic Helper - Maintain by @nguyenanhung","archived":false,"fork":false,"pushed_at":"2025-03-14T18:09:36.000Z","size":429,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T01:07:23.024Z","etag":null,"topics":["assets","codeigniter","codeigniter3","codeigniter3-library","email","functions","helper","helpers","hungnguyen","php","php-helper","php-library","url","utils"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/nguyenanhung/codeigniter-basic-helper","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nguyenanhung.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-06T17:57:37.000Z","updated_at":"2025-03-28T15:15:26.000Z","dependencies_parsed_at":"2022-09-22T14:41:19.556Z","dependency_job_id":"7fa15ad0-0d8a-4778-b796-3188efeeb1ef","html_url":"https://github.com/nguyenanhung/codeigniter-basic-helper","commit_stats":{"total_commits":144,"total_committers":2,"mean_commits":72.0,"dds":0.00694444444444442,"last_synced_commit":"900d29484b425ec3ae89fa5898c59984f5c0c2d1"},"previous_names":[],"tags_count":101,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenanhung%2Fcodeigniter-basic-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenanhung%2Fcodeigniter-basic-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenanhung%2Fcodeigniter-basic-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nguyenanhung%2Fcodeigniter-basic-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nguyenanhung","download_url":"https://codeload.github.com/nguyenanhung/codeigniter-basic-helper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986312,"owners_count":21194025,"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":["assets","codeigniter","codeigniter3","codeigniter3-library","email","functions","helper","helpers","hungnguyen","php","php-helper","php-library","url","utils"],"created_at":"2024-10-01T08:24:28.939Z","updated_at":"2025-04-15T01:07:35.291Z","avatar_url":"https://github.com/nguyenanhung.png","language":"PHP","readme":"# CodeIgniter Basic Helper\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/nguyenanhung/codeigniter-basic-helper.svg?style=flat-square)](https://packagist.org/packages/nguyenanhung/codeigniter-basic-helper)\n[![Total Downloads](https://img.shields.io/packagist/dt/nguyenanhung/codeigniter-basic-helper.svg?style=flat-square)](https://packagist.org/packages/nguyenanhung/codeigniter-basic-helper)\n[![Daily Downloads](https://img.shields.io/packagist/dd/nguyenanhung/codeigniter-basic-helper.svg?style=flat-square)](https://packagist.org/packages/nguyenanhung/codeigniter-basic-helper)\n[![Monthly Downloads](https://img.shields.io/packagist/dm/nguyenanhung/codeigniter-basic-helper.svg?style=flat-square)](https://packagist.org/packages/nguyenanhung/codeigniter-basic-helper)\n[![License](https://img.shields.io/packagist/l/nguyenanhung/codeigniter-basic-helper.svg?style=flat-square)](https://packagist.org/packages/nguyenanhung/codeigniter-basic-helper)\n[![PHP Version Require](https://img.shields.io/packagist/dependency-v/nguyenanhung/codeigniter-basic-helper/php)](https://packagist.org/packages/nguyenanhung/codeigniter-basic-helper)\n\n## Summary\n\nSome basic helpers when using with CodeIgniter 3.\n\nCan be included in many other code sets or frameworks, however, there are some functions that require the `CodeIgniter`\nframework, however\nit does not affect the performance\n\nIn case of integrating this package into other frameworks, sources other than `CodeIgniter`, you need to install the\n`nguyenanhung/polyfill-codeigniter-built-in` package for best use\n\nSome frameworks I often use with this package are\n\n- CodeIgniter\n- Slim framework\n- FuelPHP\n- PhalconPHP\n- Laravel\n\n## Table of Contents\n\n- [CodeIgniter Basic Helper](#codeigniter-basic-helper)\n    * [Summary](#summary)\n    * [Table of Contents](#table-of-contents)\n    * [1 số helper được hỗ trợ sẵn](#1-số-helper-được-hỗ-trợ-sẵn)\n        + [AlphaID Helper](#alphaid-helper)\n        + [Array Helper](#array-helper)\n        + [Assets Helper](#assets-helper)\n        + [Blogspot Helper](#blogspot-helper)\n        + [Bytes Helper](#bytes-helper)\n        + [Chart Render Helper](#chart-render-helper)\n        + [Common Helper](#common-helper)\n        + [Database Helper](#database-helper)\n        + [Date Helper](#date-helper)\n        + [Debug Helper](#debug-helper)\n        + [ENV Helper](#env-helper)\n        + [Escape Helper](#escape-helper)\n        + [Facebook Helper](#facebook-helper)\n        + [File Helper](#file-helper)\n        + [Form Helper](#form-helper)\n        + [Gravatar Helper](#gravatar-helper)\n        + [HTML Helper](#html-helper)\n        + [Image Helper](#image-helper)\n        + [IP Helper](#ip-helper)\n        + [Meta Helper](#meta-helper)\n        + [Money Helper](#money-helper)\n        + [NanoID Helper](#nanoid-helper)\n        + [Number Helper](#number-helper)\n        + [Paging Helper](#paging-helper)\n        + [PlaceHolder Helper](#placeholder-helper)\n        + [Request Helper](#request-helper)\n        + [Security Helper](#security-helper)\n        + [Sentry Helper](#sentry-helper)\n        + [String Helper](#string-helper)\n        + [Text Helper](#text-helper)\n        + [TinyUrl Helper](#tinyurl-helper)\n        + [URL Helper](#url-helper)\n        + [UUID Helper](#uuid-helper)\n        + [VN Province Helper](#vn-province-helper)\n        + [Video Embed Helper](#video-embed-helper)\n        + [XML Helper](#xml-helper)\n        + [Simple RESTful Helper](#simple-restful-helper)\n        + [Simple cURL Helper](#simple-curl-helper)\n        + [Simple Image Library](#simple-image-library)\n    * [Maintainer \u0026 Supporter](#maintainer--supporter)\n\n## Some Supported Helpers\n\nHere is a list of supported Helpers in this library\n\n### AlphaID Helper\n\n- [x] Helper Function: `generateAlphaId` - Function to generate a unique Id `4ew68i32xc` based on an input int like\n  `1234`\n\n### Array Helper\n\n- [x] Helper Function: `arrayToObject` - Function to convert an array to an object\n- [x] Helper Function: `to_array` - Converts a string or an object to an array.\n- [x] Helper Function: `arrayToXml` - Function to help convert array into an XML string\n- [x] Helper Function: `removeArrayElementWithValue` - Remove 1 value in the array by key and value\n- [x] Helper Function: `arrayRecursiveDiff` - Diff 2 arrays recursively\n- [x] Helper Function: `arrayIsAssoc` - Detects if the given value is an associative array.\n- [x] Helper Function: `arrayFirstElement` - Returns the first element of an array.\n- [x] Helper Function: `arrayLastElement` - Returns the last element of an array.\n- [x] Helper Function: `arrayGetElement` - Gets a value in an array by dot notation for the keys.\n- [x] Helper Function: `arraySetElement` - Sets a value in an array using the dot notation.\n\n### Assets Helper\n\n- [x] Helper Function: `assets_url` - Function to get Assets Url, condition for existence of `assets` folder in\n  `public/` folder.\n\nIn case in `config.php` file exists `assets_version` variable, it will automatically add version behind the files\n\nCSS, JS\n\n- [x] Helper Function: `static_url` - Function to get Static Resource Url, condition for existence of\n  `config_item('static_url')` configuration in website config. In case in `config.php` file exists `assets_version`\n  variable, it will automatically add version behind the files\n\nCSS, JS\n\n- [x] Helper Function: `templates_url` - Function to get Assets Url, condition for existence of `templates` folder in\n  `public/` folder. In case the `config.php` file contains the variable `assets_version`, it will automatically add the\n  version behind\n  the CSS,\n  JS files\n- [x] Helper Function: `editor_url` - Function to get Assets Url, condition that the `assets/editors/` folder exists in\n  the\n  `public/` folder. In case the `config.php` file contains the variable `assets_version`, it will automatically add the\n  version behind\n  the CSS,\n  JS files\n- [x] Helper Function: `favicon_url` - Function to get Assets Url, condition that the `assets/favicon/` folder exists in\n  the\n  `public/` folder. In case the `config.php` file contains the `assets_version` variable, it will automatically add the\n  version behind the\n\nCSS, JS files\n\n- [x] Helper Function: `favicon_html_tag`- Function to get the HTML segment representing the Favicon based on the input\n  favicon folder URL\n- [x] Helper Function: `storage_url` - Need config `storage_url` item in config.php file.\n  Example: `$config['storage_url'] = 'https://storage.nguyenanhung.com/';`\n- [x] Helper Function: `go_url` - Need config `go_url` item in `config.php` file.\n  Eg: `$config['go_url'] = 'https://go.nguyenanhung.com/';`\n- [x] Helper Function: `assets_mobile` - Get the assets path of the mobile interface (rarely used, maintained for old\n  projects)\n- [x] Helper Function: `assets_themes` - Get the assets path of the pc interface (rarely used, maintained for old\n  projects)\n- [x] Helper Function: `assets_themes_dashboard` - Get the assets path of the dashboard interface (rarely used,\n  maintained for old\n  projects)\n- [x] Helper Function: `assets_themes_comingsoon` - Get the assets path of the coming soon interface (rarely used,\n  maintained for old\n  projects)\n- [x] Helper Function: `assets_themes_error` - Get the assets path of the error interface (rarely used, maintained for\n  old\n  projects) maintenance for\n  old projects)\n- [x] Helper Function: `cdn_js_url` - JS, CSS resource from Cloudflare CDN\n- [x] Helper Function: `google_fonts_url` - Google Font resource\n- [x] Helper Function: `bootstrapcdn_url` - CDN resource from Bootstrap\n\n### Blogspot Helper\n\n- [x] Helper Function: `blogspotDescSortWithPublishedTime` - Sort feed data from blogspot by Published Time\n- [x] Helper Function: `blogspotUSort` - Sort feed data from blogspot by USort and Published Time by DESC\n- [x] Helper Function: `blogspotFormatInformationItem` - Format input data blogspot item\n\n### Bytes Helper\n\n- [x] Helper Function: `bytesHumanFormat` - Display readable content format from data bytes\n\n### Chart Render Helper\n\n- [x] Helper Function: `bear_framework_default_get_data_chart`\n- [x] Helper Function: `bear_framework_default_get_data_chart_report`\n\n### Common Helper\n\n- [x] Helper Function: `isEmpty ` - Checks whether an input is empty\n- [x] Helper Function: `defaultCompressHtmlOutput ` - Compresses HTML output, default configure\n- [x] Helper Function: `generateRandomUniqueId ` - Generates a random Unique ID string, using UUID\n- [x] Helper Function: `generateRandomNanoUniqueId ` - Generates a random Unique ID string, using NanoID\n\n### Database Helper\n\n- [x] Helper Function: `generate_list_id_with_parent_id ` - Generates a list of IDs, containing dependent subsets of\n\nthat ID. Example: Used in case you want to display the content of the parent category and the child categories in the\nsame page content\n\n### Date Helper\n\n- [x] Helper Function: `dayFloor` - Function to get the distance between 2 days\n- [x] Helper Function: `getZuluTime` - Function to get the date parameter according to Zulu time\n- [x] Helper Function: `iso_8601_utc_time` - Similar to the getZuluTime function\n- [x] Helper Function: `getYesterday` - Function to get the previous day\n- [x] Helper Function: `smart_bear_date_range` - Get an array of data containing dates according to the distance\n- [x] Helper Function: `format_datetime_vn` - Format the date information according to Vietnamese style\n- [x] Helper Function: `get_start_and_end_date_for_week` - Get the first and last days of a week\n\n### Debug Helper\n\nCác hàm này dùng debug\n\n- [x] Helper Function: `dd`\n- [x] Helper Function: `ddd`\n- [x] Helper Function: `dump`\n\n### ENV Helper\n\n- [x] Helper Function: `bear_get_env` - Hàm lấy giá trị từ file .env\n\n### Escape Helper\n\n- [x] Helper Function: `bear_framework_basic_clean_str` - Simple Clean Input String\n\n### Facebook Helper\n\n- [x] Helper Function: `widget_facebook_div_init` - Function to create `\u003cdiv id=\"fb-root\"\u003e\u003c/div\u003e`\n- [x] Helper Function: `widget_facebook_script_init` - Function to create init script in case JS needs to be embedded\n\nFacebook\n\n- [x] Helper Function: `widget_facebook_comments` - Function to create facebook comment box\n- [x] Helper Function: `widget_facebook_share_button` - Function to create facebook share button\n- [x] Helper Function: `widget_facebook_like_button` - Function to create facebook like button\n- [x] Helper Function: `widget_facebook_save_button` - Function to create save content button to facebook\n\n### File Helper\n\n- [x] Helper Function: `formatSizeUnits` - Function to format 1 input int into 1 format for easy read file size\n- [x] Helper Function: `generateFileIndex` - Automatically generate the content of the file `index.html`\n- [x] Helper Function: `generateFileHtaccess` - Automatically generate the content of the file `.htaccess`\n- [x] Helper Function: `generateFileReadme` - Automatically generate the content of the file `README.md`\n- [x] Helper Function: `makeNewFolder` - The function creates a new folder and generates 3 files in it: `README.md`,\n  `index.html`\n  , `.htaccess`. Create additional `.gitkeep` file if the second parameter passed is true\n- [x] Helper Function: `new_folder` - Similar function to `makeNewFolder`\n- [x] Helper Function: `scan_folder` - Scan and get list of data information in folder\n- [x] Helper Function: `getAllFileSizeInFolder` - Get all File size in Folder\n- [x] Helper Function: `getAllFileInFolder` - Get all File in Folder\n\n### Form Helper\n\n- [x] Helper Function: `join_value_multiple` - Join Value Multiple\n\n### Gravatar Helper\n\n- [x] Helper Function: `bear_framework_show_gravatar` - Show Gravatar URL with Custom Size and Username\n\n### HTML Helper\n\n- [x] Helper Function: `meta_dns_prefetch`\n- [x] Helper Function: `meta_property`\n- [x] Helper Function: `tachPage`\n- [x] Helper Function: `stripHtmlTag`\n- [x] Helper Function: `strip_only_tags`\n- [x] Helper Function: `tracking_google_analytics`\n- [x] Helper Function: `tracking_google_gtag_analytics_default`\n- [x] Helper Function: `bear_framework_show_jsonld_script`\n\n### Image Helper\n\n- [x] Helper Function: `google_image_resize` - Resize Image using Google Gadget Proxy\n- [x] Helper Function: `google_image_proxy_dns_prefetch` - Function to provide DNS Prefetch in case of using\n  `google_image_resize`\n- [x] Helper Function: `wordpress_proxy` - Resize \u0026 Cache Image using WordPress Proxy\n- [x] Helper Function: `wordpress_proxy_dns_prefetch` - Function to provide DNS Prefetch in case of using\n  `wordpress_proxy`\n- [x] Helper Function: `bear_framework_image_url` - Function to format Image Url - specific to BEAR framework\n- [x] Helper Function: `create_image_thumbnail` - Function to create thumbnail - specific to BEAR framework\n\n### IP Helper\n\n- [x] Helper Function: `getIPAddress` - Function to get the user's actual IP address\n- [x] Helper Function: `getIPAddressByHaProxy` - Function to get the user's actual IP address but on the server running\n  Ha\n  Proxy, through the variable `HTTP_X_FORWARDED_FOR`\n- [x] Helper Function: `validateIP` - Function to validate whether a string is an IP. TRUE if it is an IP\n- [x] Helper Function: `validateIPV4` - Function to validate whether a string is an IP v4. TRUE if it is an IP\n- [x] Helper Function: `validateIPV6` - Function to validate whether a string is an IP v6. TRUE if it is an IP\n- [x] Helper Function: `getIpInformation` - Initiate a request to `IP-API` to get information about the IP address\n\n### Meta Helper\n\n- [x] Helper Function: `setupMetaDnsPrefetch` - Function to generate a similar HTML Dns Prefetch segment\n\n### Money Helper\n\n- [x] Helper Function: `money_number_format` - format money currency will detect the current locale\n\n### NanoID Helper\n\nThis helper uses the `hidehalo/nanoid-php` package to generate a random Id code that is small, lightweight and much\nsafer than UUID.\n\nCurrently, using nanoid is a trend compared to traditional uuid\n\nTo use this package, you need to install the `nguyenanhung/nanoid-helper` package by\ncommand `composer require nguyenanhung/nanoid-helper`\n\n- [x] Helper Function: `randomNanoId`\n\n### Number Helper\n\n- [x] Helper Function: `convertNumberToWords` - Effect of converting a number into words, for example `123`\n  to `One Hundred Twenty Three`\n\n### Paging Helper\n\n- [x] Helper Function: `view_paginations`\n- [x] Helper Function: `view_more`\n- [x] Helper Function: `select_page`\n- [x] Helper Function: `get_paginations_title`\n- [x] Helper Function: `get_paginations_number`\n- [x] Helper Function: `bear_framework_news_view_pagination` - Pagination function specifically for BEAR Project\n\n### PlaceHolder Helper\n\n- [x] Helper Function: `placeholder_img`\n\n### Request Helper\n\n- [x] Helper Function: `sendSimpleGetRequest` - Execute a simple request using CURL with GET method\n- [x] Helper Function: `sendSimpleRestfulExecuteRequest` - Execute a simple request to Restful API using CURL\n- [x] Helper Function: `bear_post_async_request` - Make an asynchronous POST request - Execute asynchronous POST request\n  within the site without waiting for a response =\u003e No impact, no delay in the running process\n- [x] Helper Function: `get_http_response_code` - Get HTTP Response Code with `get_headers`\n\n### Security Helper\n\n- [x] Helper Function: `xssValidation` - Validate whether the input data is vulnerable to XSS or not. This function does\n  not have an escape function, if you want, install the package `nguyenanhung/security`\n\n### Sentry Helper\n\n- [x] Helper Function: `log_to_sentry` - Logging to Sentry via Monolog Handler\n\n### String Helper\n\n- [x] Helper Function: `countStringsInText` - Function to count the number of words in a text paragraph\n- [x] Helper Function: `findMiddleInString` - Function to get the string between the start string and the end string\n- [x] Helper Function: `str_insert` - Inserts one or more strings into another string on a defined position.\n- [x] Helper Function: `str_between` - Return the content in a string between a left and right element.\n- [x] Helper Function: `str_after` - Return the part of a string after a given value.\n- [x] Helper Function: `str_before` - Get the part of a string before a given value.\n- [x] Helper Function: `str_limit_words` - Limit the number of words in a string. Put value of $end to the string end.\n- [x] Helper Function: `str_limit_characters` - Limit the number of characters in a string. Put value of $end to the\n  string end.\n- [x] Helper Function: `str_contains` - Tests if a string contains a given element\n- [x] Helper Function: `str_ignore_contains` - Tests if a string contains a given element. Ignore case sensitivity.\n- [x] Helper Function: `str_starts_with` - Determine if a given string starts with a given substring.\n- [x] Helper Function: `str_ignore_starts_with` - Determine if a given string starts with a given substring. Ignore case\n  sensitivity.\n- [x] Helper Function: `str_ends_with` - Determine if a given string ends with a given substring.\n- [x] Helper Function: `str_ignore_ends_with` - Determine if a given string ends with a given substring. Ignore case\n  sensitivity.\n- [x] Helper Function: `str_after_last` - Return the part of a string after the last occurrence of a given search value.\n- [x] Helper Function: `hide_characters` - Convert `nguyenanhung` to `ngxyexanxunx`, acts as a very simple and\n  predictable character encoding function but is necessary to hide something simple\n\n### Text Helper\n\n- [x] Helper Function: `convert_string_utf8_to_vietnamese`\n- [x] Helper Function: `clean_allowfullscreen`\n- [x] Helper Function: `clean_text`\n- [x] Helper Function: `clean_title`\n- [x] Helper Function: `clean_text_mobile`\n- [x] Helper Function: `bodautru`\n- [x] Helper Function: `bodaunhay`\n- [x] Helper Function: `searchs_snippets`\n- [x] Helper Function: `tags_snippets`\n- [x] Helper Function: `tags_clean`\n- [x] Helper Function: `highlight_keyword_phrase` - Highlights a keyword within a text string\n- [x] Helper Function: `format_keyword_highlight_phrase` - Format Keyword for Function `highlight_keyword_phrase`\n\n### TinyUrl Helper\n\n- [x] Helper Function: `short_url_with_tinyurl` - ShortUrl helper function based on TinyURL API\n\n### URL Helper\n\n- [x] Helper Function: `encodeId_Url_byHungDEV`\n- [x] Helper Function: `decodeId_Url_byHungDEV`\n- [x] Helper Function: `convertToLatin`\n- [x] Helper Function: `specialCharToNormalChar`\n- [x] Helper Function: `alphabetOnly`\n- [x] Helper Function: `boDauTiengViet`\n- [x] Helper Function: `removeSpecialChar`\n- [x] Helper Function: `getPermalinksSEO`\n- [x] Helper Function: `share_url` - Create standard sharing URL for social networks, very good support for SEO\n- [x] Helper Function: `private_url` - Customize function specifically for CodeIgniter framework\n- [x] Helper Function: `private_api_url` - Customize function specifically for CodeIgniter framework\n- [x] Helper Function: `cdn_url` - Customize function specifically for CodeIgniter framework\n- [x] Helper Function: `images_url` - Customize function specifically for CodeIgniter framework\n- [x] Helper Function: `audio_url` - Customize function specifically for CodeIgniter framework\n- [x] Helper Function: `append_params_into_url` - Append parameters to URL\n- [x] Helper Function: `append_query_string_to_current_url` - Get current URL including query string - Customize\n  function\n  specific to CodeIgniter framework\n\n### UUID Helper\n\n- [x] Helper Function: `generate_uuid_v4` - Function to generate a random v4 UUID string\n\n### VN Province Helper\n\n- [x] Helper Function: `check_vn_province_code` - Check Provin Code of some provinces in Vietnam\n\n### Video Embed Helper\n\n- [x] Helper Function: `convert_video_embed_vimeo` - Convert Video URL to Embed Vimeo (rarely used, save here because\n  there are still\n  many old projects using it)\n- [x] Helper Function: `convert_video_embed_dailymotion` - Convert Video URL to Embed DailyMotion (rarely used, save\n  here because there are still\n  many old projects using it)\n- [x] Helper Function: `convert_video_embed_youtube` - Convert Video URL to Embed YouTube (rarely used, save here\n  because there are still\n  many old projects using it)\n- [x] Helper Function: `convert_video_v_embed_youtube` - Convert Video URL to Embed YouTube (rarely used, save here\n  because there are still\n  many old projects using it)\n- [x] Helper Function: `youtube_image_thumbnail` - Convert YoutubeID to Youtube Thumbnail URL\n\n### XML Helper\n\n- [x] Helper Function: `parse_sitemap` - Support function to render content for Sitemap\n- [x] Helper Function: `parse_sitemap_index` - Support function to render content for Sitemap Index\n- [x] Helper Function: `xml_convert` - Convert Reserved XML characters to Entities\n- [x] Helper Function: `xml_get_value` - Get Value from XML string\n- [x] Helper Function: `xml_to_json` - Convert XML string to JSON\n\n### Simple RESTful Helper\n\nClass provides a quick way to call RESTful APIs\n\n- [x] Execute request to RESTful API Service: `SimpleRestful::execute($url, $type, $data)`\n\n### Simple cURL Helper\n\nClass provides a quick way to call to make external requests, using simple Curl, for example\n\n```php\n\u003c?php\nuse nguyenanhung\\CodeIgniter\\BasicHelper\\SimpleCurl;\n\n$curl = new SimpleCurl();\n$curl-\u003esetUrl('https://example.com')\n    -\u003esetPost(array('field1'=\u003e'value1'))\n    -\u003ecreateCurl();\n\n$response = $curl-\u003egetResponse();\n\n```\n\n### Simple Image Library\n\nClass provides some methods to help process images\n\n- [x] Method `googleGadgetsProxy` - Create Resize URL using Google Gadgets Proxy\n- [x] Method `googleGadgetsProxyDnsPrefetch` - Setup DNS Prefetch for Google Gadgets Proxy, to increase query speed\n- [x] Method `wordpressProxy` - Create Resize URL using WordPress Proxy\n- [x] Method `wordpressProxyDnsPrefetch` - Setup DNS Prefetch for WordPress Proxy, to increase query speed\n- [x] Method `createThumbnail` - Thumbnail creation function, to use it, you need to install the package\n  `nguyenanhung/image`\n- [x] Method `createThumbnailWithCodeIgniterCache` - Thumbnail creation function combined with CodeIgniter Cache\n  library, to use it, you need to install the package `nguyenanhung/image`\n\n## Maintainer \u0026 Supporter\n\n| STT | Name        | Email                | Website                  | Github        |\n|-----|-------------|----------------------|--------------------------|---------------|\n| 1   | Hung Nguyen | dev@nguyenanhung.com | https://nguyenanhung.com | @nguyenanhung |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenanhung%2Fcodeigniter-basic-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnguyenanhung%2Fcodeigniter-basic-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnguyenanhung%2Fcodeigniter-basic-helper/lists"}