PHPackages                             phpalgo/phpalgo - 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. phpalgo/phpalgo

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

phpalgo/phpalgo
===============

a library that contain a set of functions that will do a Complex things for you and return a simple to understand result. just with a simple function Call.

1.0.0(10y ago)0171[2 PRs](https://github.com/AMarwen/PhpAlgo/pulls)MITPHP

Since Jul 10Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/b256d8a1b9c55538df1364847901df34e0643965da8a0808591462592c3620d0/68747470733a2f2f7472617669732d63692e6f72672f414d617277656e2f506870416c676f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AMarwen/PhpAlgo)[![Latest Stable Version](https://camo.githubusercontent.com/76cb894824e2858b4c4382d8deaddc4e32c32b168d47b4e3eeeb0e1078302161/68747470733a2f2f706f7365722e707567782e6f72672f706870616c676f2f706870616c676f2f762f737461626c65)](https://packagist.org/packages/phpalgo/phpalgo) [![Total Downloads](https://camo.githubusercontent.com/3b3147d23a19a5705ced6b892393ac84686959e8699ff3c12c49e59428ac4ed7/68747470733a2f2f706f7365722e707567782e6f72672f706870616c676f2f706870616c676f2f646f776e6c6f616473)](https://packagist.org/packages/phpalgo/phpalgo) [![Latest Unstable Version](https://camo.githubusercontent.com/de28464d745afedf00192eaf42d77510f608723bfe5ae644aa6831b572b8c5a7/68747470733a2f2f706f7365722e707567782e6f72672f706870616c676f2f706870616c676f2f762f756e737461626c65)](https://packagist.org/packages/phpalgo/phpalgo) [![License](https://camo.githubusercontent.com/1b2e17639c755dbd189cf664ec4af73df1ecb2852fc875279497990e3991069f/68747470733a2f2f706f7365722e707567782e6f72672f706870616c676f2f706870616c676f2f6c6963656e7365)](https://packagist.org/packages/phpalgo/phpalgo)[![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/AMarwen/PhpAlgo?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

> Php Algo is a library that consist of a single file that contain a set of functions that will do a Complex things for you and return a simple to understand result.just with a simple function Call.

php has a lot of built in functions but sometimes we need a function that did a custom thing that php built in function can't , so bottomline : if you search for a function that do a specific thing for you , you may found it in this library:

for ex axample we suppose that we we want to highlight a specific string in syntax to do so we can call a simple function which will do that for us instead of losing our time writing one from scratch :

in the Example below the function will search for each instance of `php` in `php and the php World, yahoo with php .` then it will highlight it using the `highlightClass` class :

```
echo PhpAlgo\CSS\highlightMatches("php","php and the php World, yahoo with php .",'highlightClass');}
```

**Output :**

[![phpAlgo_1](https://camo.githubusercontent.com/8c189a1ebda5b33dbf5eae6c80600ae6fce8c6524ad1d3b613fe46382142159a/687474703a2f2f696d6167697a65722e696d616765736861636b2e75732f76322f3333377835327139302f3930312f7772534a6b712e6a7067)](https://camo.githubusercontent.com/8c189a1ebda5b33dbf5eae6c80600ae6fce8c6524ad1d3b613fe46382142159a/687474703a2f2f696d6167697a65722e696d616765736861636b2e75732f76322f3333377835327139302f3930312f7772534a6b712e6a7067)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3965d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8efe3641850276be5566a6d2548877f882783c4fa10efa7b9185e3bb6edeb5e6?d=identicon)[AMarwen](/maintainers/AMarwen)

---

Top Contributors

[![AMarwen](https://avatars.githubusercontent.com/u/8762477?v=4)](https://github.com/AMarwen "AMarwen (23 commits)")

---

Tags

helpersAlgorithmfunctionsphpalgo

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[illuminated/helper-functions

Laravel-specific and pure PHP Helper Functions.

107586.6k7](/packages/illuminated-helper-functions)

PHPackages © 2026

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