PHPackages                             ngfw/recipe - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ngfw/recipe

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ngfw/recipe
===========

Small Collection of useful PHP functions

1.2.4(8y ago)6744.9k↓50%83[1 PRs](https://github.com/ngfw/Recipe/pulls)MITPHPPHP &gt;=5.3.0

Since Aug 15Pushed 2y ago40 watchersCompare

[ Source](https://github.com/ngfw/Recipe)[ Packagist](https://packagist.org/packages/ngfw/recipe)[ RSS](/packages/ngfw-recipe/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (17)Used By (0)

Recipe 📖
========

[](#recipe-book)

#### Collection of PHP Functions

[](#collection-of-php-functions)

[![](https://camo.githubusercontent.com/09c3c69958455d33cabf1b17d8c798513823c10be43a69f9dbbb79ace322fe47/68747470733a2f2f7472617669732d63692e6f72672f6e6766772f5265636970652e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/09c3c69958455d33cabf1b17d8c798513823c10be43a69f9dbbb79ace322fe47/68747470733a2f2f7472617669732d63692e6f72672f6e6766772f5265636970652e7376673f6272616e63683d6d6173746572) [![](https://camo.githubusercontent.com/98810fcf30b705df37ea53bfd42f6fa10365f90c3a9355a822069faea476fc07/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6766772f7265636970652e7376673f6d61784167653d323539313230)](https://camo.githubusercontent.com/98810fcf30b705df37ea53bfd42f6fa10365f90c3a9355a822069faea476fc07/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6766772f7265636970652e7376673f6d61784167653d323539313230) [![](https://camo.githubusercontent.com/59db4e1c8a283410aba26aebf7571fe25ccc3bf2c7d92477162e87327ec35f02/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652d617765736f6d652d627269676874677265656e2e7376673f6d61784167653d32353932313030)](https://camo.githubusercontent.com/59db4e1c8a283410aba26aebf7571fe25ccc3bf2c7d92477162e87327ec35f02/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652d617765736f6d652d627269676874677265656e2e7376673f6d61784167653d32353932313030) [![](https://camo.githubusercontent.com/282dc20af78740d83ff4366fd1b100f66a0255f308dc409b1c2666aaa303a595/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e67756167652d5048502d626c75652e7376673f6d61784167653d32353932303030)](https://camo.githubusercontent.com/282dc20af78740d83ff4366fd1b100f66a0255f308dc409b1c2666aaa303a595/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e67756167652d5048502d626c75652e7376673f6d61784167653d32353932303030) [![StyleCI](https://camo.githubusercontent.com/f64eeafa5286fc5b113f537f49cc4bc09120b9f2cfec7cc753b58fd203d5e4a1/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353233323230312f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/65232201)

---

Table of Contents

- [🚀 Quick Start](#quick-start)
- [Favicon](#favicon)
- [QRcode](#qrcode)
- [File extension](#file-extension)
- [Gravatar](#gravatar)
- [Creating Link Tags](#creating-link-tags)
- [Validate email address](#validate-email-address)
- [Validate URL](#validate-url)
- [RSS Reader](#rss-reader)
- [Object to Array](#object-to-array)
- [Array to Object](#array-to-object)
- [Array to String](#array-to-string)
- [HEX to RGB](#hex-to-rgb)
- [RGB to HEX](#rgb-to-hex)
- [Color Name to HEX](#color-name-to-hex)
- [Generate Random Password](#generate-random-password)
- [Simple Encode](#simple-encode)
- [Simple Decode](#simple-decode)
- [Generate Server Specific Hash](#generate-server-specific-hash)
- [Detect HTTPS](#detect-https)
- [Detect AJAX](#detect-ajax)
- [Check if number is odd](#check-if-number-is-odd)
- [Check if number is even](#check-if-number-is-even)
- [Get Current URL](#get-current-url)
- [Get Client IP](#get-client-ip)
- [Detect Mobile](#detect-mobile)
- [Get Browser](#get-browser)
- [Get Client Location](#get-client-location)
- [Number To Word conversion](#number-to-word-conversion)
- [Seconds To Text](#seconds-to-text)
- [Minutes To Text](#minutes-to-text)
- [Hours To Text](#hours-to-text)
- [Shorten String](#shorten-string)
- [CURL](#curl)
- [Shorten URL](#shorten-url)
- [Get Alexa Rank](#ge-alexa-rank)
- [Get Tiny URL](#get-tiny-url)
- [Get Keyword Suggestions From Google](#get-keyword-suggestions-from-google)
- [WIKI Search](#wiki-search)
- [Notification](#notification)
- [Auto Embed](#auto-embed)
- [Make Clickable Links](#make-clickable-links)
- [🔧 Debug](#debug)
- [Get Referer](#get-referer)
- [Compress Page](#compress-page)
- [Ordinal](#ordinal)
- [Number Of Days In Month](#number-of-days-in-month)
- [pr](#pr)
- [Bytes To Human Readable Size](#bytes-to-human-readable-size)

---

### Quick Start

[](#quick-start)

Run in your terminal:

```
composer require ngfw/recipe
```

Create new file and start using the Recipes

```
