PHPackages                             nazar-pc/upf - 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. nazar-pc/upf

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

nazar-pc/upf
============

Useful PHP Functions: set of system-independent functions from CleverStyle CMS

5.0.0(9y ago)21256MITPHPPHP &gt;=7.0

Since Nov 24Pushed 7y ago4 watchersCompare

[ Source](https://github.com/nazar-pc/Useful-PHP-Functions)[ Packagist](https://packagist.org/packages/nazar-pc/upf)[ Docs](https://github.com/nazar-pc/Useful-PHP-Functions)[ RSS](/packages/nazar-pc-upf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (42)Used By (0)

What is this?
=============

[](#what-is-this)

This is just set of useful functions which are more or less trivial. Most of them was written for CleverStyle Framework, but I hope, they might be useful for others.

Requirements:
=============

[](#requirements)

- PHP 7.0+

How to use?
===========

[](#how-to-use)

Include upf.php into your project manually or add dependency on `nazar-pc/upf` to your project's `composer.json`:

```
{
    "require": {
        "nazar-pc/upf": "*"
    }
}
```

Any docs?
=========

[](#any-docs)

Functions have PHPDoc comments, just look inside.

Functions list:
===============

[](#functions-list)

- \_require ()
- \_include ()
- \_require\_once ()
- \_include\_once ()
- time\_limit\_pause ()
- get\_files\_list ()
- file\_extension ()
- file\_exists\_with\_extension()
- rmdir\_recursive()
- null\_byte\_filter ()
- prepare\_attr\_value ()
- \_stripslashes ()
- \_addslashes ()
- \_trim ()
- \_ltrim ()
- \_rtrim ()
- \_substr ()
- \_mb\_substr ()
- \_strtolower ()
- \_strtoupper ()
- \_mb\_strtolower ()
- \_mb\_strtoupper ()
- \_json\_encode ()
- \_json\_decode ()
- \_json\_decode\_nocomments ()
- file\_put\_json()
- file\_get\_json()
- file\_get\_json\_nocomments()
- \_preg\_match ()
- \_preg\_replace ()
- ip2hex ()
- hex2ip ()
- password\_check ()
- password\_generate ()
- xor\_string ()
- is\_md5()
- is\_array\_assoc ()
- is\_array\_indexed ()
- array\_flip\_3d ()
- truncate ()
- find\_links()
- path ()
- keywords ()
- description ()
- ob\_wrapper ()
- mb\_ucwords ()
- \_int ()
- \_float ()
- \_string ()
- \_array ()

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 97.6% 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 ~30 days

Recently: every ~70 days

Total

41

Last Release

3327d ago

Major Versions

1.7.1 → 2.02015-02-16

2.2.0 → 3.0.02015-04-01

3.4.6 → 4.0.02016-09-23

4.0.0 → 5.0.02017-03-29

PHP version history (3 changes)1.0.0PHP &gt;=5.4

3.0.0PHP &gt;=5.5

5.0.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/050c23d89354489e351eed5096aa585badd35d2bbe283218bbb8f2516534c513?d=identicon)[nazar-pc](/maintainers/nazar-pc)

---

Top Contributors

[![nazar-pc](https://avatars.githubusercontent.com/u/928965?v=4)](https://github.com/nazar-pc "nazar-pc (82 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")[![Phrlog](https://avatars.githubusercontent.com/u/9060150?v=4)](https://github.com/Phrlog "Phrlog (1 commits)")

---

Tags

requestarraystringpasswordIPtextxssfunctionstoolsfile system

### Embed Badge

![Health badge](/badges/nazar-pc-upf/health.svg)

```
[![Health](https://phpackages.com/badges/nazar-pc-upf/health.svg)](https://phpackages.com/packages/nazar-pc-upf)
```

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[ilya/belt

A handful of tools for PHP developers.

71020.8k1](/packages/ilya-belt)[longman/ip-tools

PHP IP Tools for manipulation with IPv4 and IPv6

147245.6k6](/packages/longman-ip-tools)[phootwork/lang

Missing PHP language constructs

1224.8M8](/packages/phootwork-lang)[lolli42/finediff

PHP implementation of a Fine granularity Diff engine

138.8M3](/packages/lolli42-finediff)[michaldudek/foundation

A set of useful PHP classes.

13111.9k13](/packages/michaldudek-foundation)

PHPackages © 2026

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