PHPackages                             litto/utilities - 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. litto/utilities

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

litto/utilities
===============

Custom Functions for Generating slugs,passwords,parse string

v1.0(4y ago)081proprietaryPHPPHP &gt;=5.0

Since Feb 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/litto/utilities)[ Packagist](https://packagist.org/packages/litto/utilities)[ RSS](/packages/litto-utilities/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Utilities Functions
===================

[](#utilities-functions)

Custom Functions for Generating slugs,passwords,parse string.etc.

\##How to Install?

You can install by running command in composer composer require litto/utilities:v1.0

How to use?
-----------

[](#how-to-use)

Initialize Class Utilities by calling:-

$obj=new Utilities(); $encodedstr=$obj-&gt;encode($str);

Call each Function define in the Utilities Class like this. Below are some of functions available.

1. getRandom() - get random string using current timestamp
2. getExtension($string) - Get extension of the file you pass into this function
3. setPattern($array) - Set pattern for Filter Function
4. filterChars($string) - Filter chars from string
5. dateDisplayFormat($date)-Convert Date to M-d-Y Format
6. dateTimeDisplayFormat($date) - Convert date time to M-d-Y H:i:s format
7. dateInsertFormat($date) - Convert date time to database date format for saving
8. encodeString($string) - Encode your string
9. decodeString($string) - Decode your string
10. priceFormat($price) - Convert to price format for display
11. addFilter($string)- Filtering string
12. encode($originalStr) - Password Encode
13. decode($decodedStr) - Decode Password
14. littoformattitle($text)- Generate slug variable passing string
15. getBaseUrl()- get base url of project

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

1560d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0409ad96d8dabd00048f79a63785982e4ed1c05a4e6ab52f6ff12201a7c5dd8?d=identicon)[Iamlitto](/maintainers/Iamlitto)

---

Top Contributors

[![litto](https://avatars.githubusercontent.com/u/941390?v=4)](https://github.com/litto "litto (5 commits)")

### Embed Badge

![Health badge](/badges/litto-utilities/health.svg)

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

PHPackages © 2026

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