PHPackages                             myjw3b/helpful - 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. myjw3b/helpful

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

myjw3b/helpful
==============

Some useful classes and functions to help with your everyday php building.

2.0.1(1y ago)15511MITPHPPHP ^8.0

Since Oct 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/myJW3B/Helpful)[ Packagist](https://packagist.org/packages/myjw3b/helpful)[ RSS](/packages/myjw3b-helpful/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (1)

JW3B\\Helpful
=============

[](#jw3bhelpful)

- [Ary](docs/Ary.md)
- [Color](docs/Color.md)
- [Files](docs/Files.md)
- [HTML](docs/HTML.md)
- [Images](docs/Images.md)
- [Mail](docs/Mail.md)
- [Number](docs/Number.md)
- [SQL](docs/SQL.md)
- [Str](docs/Str.md)

[Ary](docs/Ary.md) Array
------------------------

[](#ary--array)

NameDescription[arrayToObject](docs/Ary.md#aryarraytoobject)Convert an array to an object.[flop\_vals](docs/Ary.md#aryflop_vals)Preserving the keys and flop the values in reverse order.[objectToArray](docs/Ary.md#aryobjecttoarray)Convert an object to an array.[Files](docs/Files.md)
----------------------

[](#files)

NameDescription[check\_file](docs/Files.md#filescheck_file)Puts a number before the filename if it exists.[deleteDir](docs/Files.md#filesdeletedir)Deletes a directory and its contents.[make\_yr\_directory](docs/Files.md#filesmake_yr_directory)Creates a directory structure based on the current year and month.[mk\_dir\_writable](docs/Files.md#filesmk_dir_writable)Creates a writable directory.[reArrayFiles](docs/Files.md#filesrearrayfiles)Re-arranges files array for image uploads.[removeEmptySubfolders](docs/Files.md#filesremoveemptysubfolders)Removes empty subfolders.[tree](docs/Files.md#filestree)Reads all files and folders in a directory.[zip](docs/Files.md#fileszip)Zips a directory or file.[HTML](docs/HTML.md)
--------------------

[](#html)

NameDescription[breadcrumb](docs/HTML.md#htmlbreadcrumb)Generates a breadcrumb navigation.[browse](docs/HTML.md#htmlbrowse)Generates pagination links based on current page and total items.[pagination](docs/HTML.md#htmlpagination)Generates a pagination HTML structure.[setUpLinks](docs/HTML.md#htmlsetuplinks)Sets up links from a comma-separated list of tags.[svg\_img](docs/HTML.md#htmlsvg_img)Generates an SVG image with a specified width, height, and text.[tagCloud](docs/HTML.md#htmltagcloud)Generates a tag cloud from an associative array of tags and their frequencies.[Images](docs/Images.md)
------------------------

[](#images)

NameDescription[get\_large\_img](docs/Images.md#imagesget_large_img)Get the large version of an image.[get\_mime\_type](docs/Images.md#imagesget_mime_type)Get the MIME type of a file.[resize\_image](docs/Images.md#imagesresize_image)Resize an image using ImageMagick.[resize\_uploaded\_image](docs/Images.md#imagesresize_uploaded_image)Resize and upload an image.[set\_im](docs/Images.md#imagesset_im)Set the ImageMagick command.[webpImage](docs/Images.md#imageswebpimage)Convert an image to webp using GD.[Mail](docs/Mail.md)
--------------------

[](#mail)

NameDescription[send](docs/Mail.md#mailsend)Send an email.[Number](docs/Number.md)
------------------------

[](#number)

NameDescription[numberToWord](docs/Number.md#numbernumbertoword)Convert a number to its word representation.[sq](docs/Number.md#numbersq)Calculate the price per square foot.[SQL](docs/SQL.md)
------------------

[](#sql)

NameDescription[decimal](docs/SQL.md#sqldecimal)Format a decimal number for USA currency.[format](docs/SQL.md#sqlformat)Format a value based on the specified format type.[Str](docs/Str.md)
------------------

[](#str)

> Some functions are heavily influenced by Laravel's [illuminate\\support\\Str](https://github.com/illuminate/support/blob/master/Str.php) Class

NameDescription[camel](docs/Str.md#strcamel)Convert a value to camel case.[clean\_url](docs/Str.md#strclean_url)Clean a URL string.[e](docs/Str.md#stre)Clean a text string.[form\_element\_name](docs/Str.md#strform_element_name)Generate a form element name from a string.[fromBase64](docs/Str.md#strfrombase64)Decode the given Base64 encoded string.[headline](docs/Str.md#strheadline)Convert various string formats to a capitalized headline.[kebab](docs/Str.md#strkebab)Convert a camelCase string to kebab-case.[lcfirst](docs/Str.md#strlcfirst)Make a string's first character lowercase.[length](docs/Str.md#strlength)Return the length of the given string.[limit](docs/Str.md#strlimit)Limit the number of characters in a string.[lower](docs/Str.md#strlower)Convert the given string to lower-case.[ltrim](docs/Str.md#strltrim)Remove all whitespace from the beginning of a string.[p](docs/Str.md#strp)Print a variable in a readable format.[parse\_my\_url](docs/Str.md#strparse_my_url)Parse the current URL into an array of segments.[randomString](docs/Str.md#strrandomstring)Generate a random string.[removePound](docs/Str.md#strremovepound)Remove pound signs and dashes from a string.[rtrim](docs/Str.md#strrtrim)Remove all whitespace from the end of a string.[snake](docs/Str.md#strsnake)Convert a string to snake case.[studly](docs/Str.md#strstudly)Convert a value to studly caps case.[substr](docs/Str.md#strsubstr)Returns the portion of the string specified by the start and length parameters.[swap](docs/Str.md#strswap)Swap keywords in a string according to a mapping array.[title](docs/Str.md#strtitle)Convert the given string to proper case.[toBase64](docs/Str.md#strtobase64)Convert the given string to Base64 encoding.[trim](docs/Str.md#strtrim)Remove all whitespace from both ends of a string.[ucfirst](docs/Str.md#strucfirst)Make a string's first character uppercase.[ucsplit](docs/Str.md#strucsplit)Split a string into pieces by uppercase characters.[upper](docs/Str.md#strupper)Convert the given string to upper-case.[wordWrap](docs/Str.md#strwordwrap)Wrap a string to a given number of characters using a specified line break.[Color](docs/Color.md)
----------------------

[](#color)

> Modified and updated to PHP 8 from  (c) Rowan Manning

NameDescription[\_\_construct](docs/Color.md#color__construct)Class constructor.[\_\_get](docs/Color.md#color__get)get magic method.[\_\_set](docs/Color.md#color__set)set magic method.[\_\_toString](docs/Color.md#color__tostring)toString magic method.[getArray](docs/Color.md#colorgetarray)Get the red, green and blue values of the colour as an array.[getHex](docs/Color.md#colorgethex)Get the HEX code that represents the colour.[hexToRgb](docs/Color.md#colorhextorgb)Convert a HEX code into RGB.[mix](docs/Color.md#colormix)Mix two colours together.[modify](docs/Color.md#colormodify)Modify the colour's red, green and blue values.[randomise](docs/Color.md#colorrandomise)Randomise red, green and blue values of the colour.[range](docs/Color.md#colorrange)Calculate and return a range of colours between a start and end colour.[rgbToHex](docs/Color.md#colorrgbtohex)Convert red, green and blue values to a HEX code.[set](docs/Color.md#colorset)Set the colour's red, green and blue values // Sets the RGB values.[setHex](docs/Color.md#colorsethex)Set the red, green and blue values of the colour with a HEX code.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~15 days

Total

3

Last Release

546d ago

Major Versions

1.0.0 → 2.0.02024-10-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c53f441885ec90d8d6e547f4c9023da12f10229c3848059e19b6aba9be1859a?d=identicon)[Yohn](/maintainers/Yohn)

---

Top Contributors

[![Yohn](https://avatars.githubusercontent.com/u/2002591?v=4)](https://github.com/Yohn "Yohn (27 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/myjw3b-helpful/health.svg)

```
[![Health](https://phpackages.com/badges/myjw3b-helpful/health.svg)](https://phpackages.com/packages/myjw3b-helpful)
```

###  Alternatives

[leaphly/price

466.5k](/packages/leaphly-price)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
