PHPackages                             krzysztofzylka/simple-libraries - 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. krzysztofzylka/simple-libraries

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

krzysztofzylka/simple-libraries
===============================

Simple Libraries

1.0.34(2y ago)2166MITPHP

Since Dec 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/krzysztofzylka/SimpleLibraries)[ Packagist](https://packagist.org/packages/krzysztofzylka/simple-libraries)[ RSS](/packages/krzysztofzylka-simple-libraries/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (37)Used By (0)

Library
=======

[](#library)

Response
--------

[](#response)

### JSON

[](#json)

```
$response = new \krzysztofzylka\SimpleLibraries\Library\Response();
$response->json(array $data, ?int $statusCode = null)
```

Server
------

[](#server)

### Meminfo

[](#meminfo)

```
\krzysztofzylka\SimpleLibraries\Library\Server::getMeminfo()
```

### Ram info

[](#ram-info)

```
\krzysztofzylka\SimpleLibraries\Library\Server::getRamInfo()
```

### CPU usage

[](#cpu-usage)

```
\krzysztofzylka\SimpleLibraries\Library\Server::getCpuUsage()
```

Session
-------

[](#session)

### Write

[](#write)

```
\krzysztofzylka\SimpleLibraries\Library\Session::set(string $name, mixed $value)
```

### Get

[](#get)

```
\krzysztofzylka\SimpleLibraries\Library\Session::get(string $name)
```

### Delete

[](#delete)

```
\krzysztofzylka\SimpleLibraries\Library\Session::delete(string $name)
```

### Exists

[](#exists)

```
\krzysztofzylka\SimpleLibraries\Library\Session::exists(string $name)
```

### Clean

[](#clean)

```
\krzysztofzylka\SimpleLibraries\Library\Session::clean(string $name)
```

Strings
-------

[](#strings)

### Repair url

[](#repair-url)

```
\krzysztofzylka\SimpleLibraries\Library\Strings::repairUrl(string $url)
```

### Escape

[](#escape)

```
\krzysztofzylka\SimpleLibraries\Library\Strings::escape(string $string)
```

### Undo escape

[](#undo-escape)

```
\krzysztofzylka\SimpleLibraries\Library\Strings::undoEscape(string $string)
```

### Clean string and use lowercase

[](#clean-string-and-use-lowercase)

```
\krzysztofzylka\SimpleLibraries\Library\Strings::lowerCleanString(string $string)
```

### Remove all special chars from string

[](#remove-all-special-chars-from-string)

```
\krzysztofzylka\SimpleLibraries\Library\Strings::clean(string $string)
```

### Get first x words

[](#get-first-x-words)

```
\krzysztofzylka\SimpleLibraries\Library\Strings::substrWithoutLastWord(string $string, int $length)
```

### Remove line breaks in string

[](#remove-line-breaks-in-string)

```
\krzysztofzylka\SimpleLibraries\Library\Strings::removeLineBreaks(string $string)
```

### Camelize string with separator

[](#camelize-string-with-separator)

```
\krzysztofzylka\SimpleLibraries\Library\Strings::camelizeString(string $string, string $separator = '')
```

### Decamelize string with separator

[](#decamelize-string-with-separator)

```
\krzysztofzylka\SimpleLibraries\Library\Strings::decamelizeString(string $string, string $separator = '')
```

\_Array
-------

[](#_array)

### Escape table

[](#escape-table)

```
\krzysztofzylka\SimpleLibraries\Library\_Array::escape($array)
```

### Remove html special chars

[](#remove-html-special-chars)

```
\krzysztofzylka\SimpleLibraries\Library\_Array::htmlSpecialChars($array)
```

### Trim data

[](#trim-data)

```
\krzysztofzylka\SimpleLibraries\Library\_Array::trim($array)
```

### Get array from string

[](#get-array-from-string)

```
\krzysztofzylka\SimpleLibraries\Library\_Array::getFromArrayUsingString(string $name, array $array)
```

Example:

```
$array = ['a' => ['b' => 'ok']]
echo \krzysztofzylka\SimpleLibraries\Library\_Array::getFromArrayUsingString('a.b', $array)
// return: ok
```

### Merge recursive distinct

[](#merge-recursive-distinct)

```
\krzysztofzylka\SimpleLibraries\Library\_Array::mergeRecursiveDistinct(array $array1, array $array2)
```

### In array keys

[](#in-array-keys)

```
\krzysztofzylka\SimpleLibraries\Library\_Array::inArrayKeys(string $name, array $array)
```

### Reduction

[](#reduction)

```
\krzysztofzylka\SimpleLibraries\Library\_Array::reduction(array $array, int $nthElement = 2, bool $lastKey = true)
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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 ~9 days

Total

37

Last Release

899d ago

### Community

Maintainers

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

---

Top Contributors

[![krzysztofzylka](https://avatars.githubusercontent.com/u/41385342?v=4)](https://github.com/krzysztofzylka "krzysztofzylka (44 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/krzysztofzylka-simple-libraries/health.svg)

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

###  Alternatives

[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)

PHPackages © 2026

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