PHPackages                             gyselroth/php-helper - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. gyselroth/php-helper

ActiveLibrary[File &amp; Storage](/categories/file-storage)

gyselroth/php-helper
====================

PHP helpers

1.0.4(5y ago)35.9k5[6 issues](https://github.com/gyselroth/php-helper/issues)1Apache-2.0PHPPHP &gt;=7.4CI failing

Since May 31Pushed 5y ago3 watchersCompare

[ Source](https://github.com/gyselroth/php-helper)[ Packagist](https://packagist.org/packages/gyselroth/php-helper)[ Docs](https://gyselroth.com)[ RSS](/packages/gyselroth-php-helper/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (14)Versions (34)Used By (1)

PHP Helper
==========

[](#php-helper)

[![Latest Stable Version](https://camo.githubusercontent.com/5bcaf65c4bb9a191eb11e7d513ae2396c38fce618f03b7d5406825944cee6548/68747470733a2f2f706f7365722e707567782e6f72672f677973656c726f74682f7068702d68656c7065722f76)](//packagist.org/packages/gyselroth/php-helper)[![Build Status](https://camo.githubusercontent.com/060e6d8f7a3a2535c527e2079fb2f49d7ee136dafc41a16791bd1ebb95b73e88/68747470733a2f2f7472617669732d63692e6f72672f677973656c726f74682f7068702d68656c7065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gyselroth/php-helper)[![CodeFactor](https://camo.githubusercontent.com/9e8c513460a6cfcf2e874ac49b0ff03f4dbbc8647189d3d3f5764a66c6074033/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f677973656c726f74682f7068702d68656c7065722f62616467652f6d6173746572)](https://www.codefactor.io/repository/github/gyselroth/php-helper/overview/master)[![GitHub license](https://camo.githubusercontent.com/fade4f0322f26ca953d161e3b735c12fe46c2d6b47db35c87bf603ee6872d73d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d6170616368655f322e302d626c75652e737667)](https://raw.githubusercontent.com/gyselroth/php-helper/master/LICENSE)

[![Total Downloads](https://camo.githubusercontent.com/8d61e68d6767f77463fd03b6eeb8847958767661f2c5ef961406be22cd6670bb/68747470733a2f2f706f7365722e707567782e6f72672f677973656c726f74682f7068702d68656c7065722f646f776e6c6f616473)](//packagist.org/packages/gyselroth/php-helper)[![Monthly Downloads](https://camo.githubusercontent.com/a25ecf237a8bf2c9656de6cb3b57448e4fd2098e04b1c55f8c02ba2c0d75c6e9/68747470733a2f2f706f7365722e707567782e6f72672f677973656c726f74682f7068702d68656c7065722f642f6d6f6e74686c79)](//packagist.org/packages/gyselroth/php-helper)[![Daily Downloads](https://camo.githubusercontent.com/831780b1569ef99877960b49dce2bab52b2633ede9a453d8a4030f39217d25b4/68747470733a2f2f706f7365722e707567782e6f72672f677973656c726f74682f7068702d68656c7065722f642f6461696c79)](//packagist.org/packages/gyselroth/php-helper)

PHP helper methods upon primitive data types (Array, Float, Integer, String, etc.) and common data structures (e.g. HTML, ZIP, XML etc.).

Table of contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Log-Wrapper](#log-wrapper)
- [Minimum Requirements](#minimum-requirements)
- [Installation](#installation)
    - [For use within your application](#for-use-within-your-application)
    - [Standalone-installation / For developing on the php-helper package](#standalone-installation--for-developing-the-php-helper-package)
- [Continuous Integration](#continuous-integration)
    - [Check Code Standards](#check-code-standards)
    - [Run Unit Tests](#run-unit-tests)
    - [Static Analysis](#static-analysis)
- [Contributing](#contributing)
- [History](#history)
- [Author and License](#author-and-license)
- [Used Open Source Software](#used-open-source-software)

Features
--------

[](#features)

Provides helpers for conversion-/modification-, validation-, extraction-/search-, and many more for:

- Date/Time handling
- File I/O
- HTML
- Image
- JSON
- Numeric
- Reflection
- Server/Client
- String
- XML
- ZIP

### Log-Wrapper

[](#log-wrapper)

This package uses the [gyselroth logger wrapper](https://github.com/gyselroth/php-helper-log). See it's documentation for further info on how to setup and use it from within PHP applications of different frameworks.

Minimum Requirements
--------------------

[](#minimum-requirements)

- See [composer.json](https://github.com/gyselroth/php-helper/blob/master/composer.json)

Installation
------------

[](#installation)

### For use within your application

[](#for-use-within-your-application)

```
composer require gyselroth/php-helper
```

### Standalone-installation / For developing the php-helper package

[](#standalone-installation--for-developing-the-php-helper-package)

```
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
composer install
```

Continuous Integration
----------------------

[](#continuous-integration)

php-helper is continuously checked regarding it's stability, code quality and standards using these third party tools:

ToolDescription[Travis CI](https://travis-ci.org/)Hosted continuous integration service used to build and test software projects[PHPSTan](https://phpstan.org/)PHP Static Analyzer[PHPUnit](https://phpunit.de/)The PHP Testing Framework[PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer)Detect violations of defined coding standard (PSR-2)[CodeFactor](https://www.codefactor.io/)Automated Code Review for gitThanks a lot!

### Check Code Standards

[](#check-code-standards)

```
phpcs --standard=PSR2 $(find ./src -name '*.php')
```

### Run Unit Tests

[](#run-unit-tests)

```
vendor/bin/phpunit tests/
```

or:

```
composer test
```

### Static Analysis

[](#static-analysis)

```
 vendor/bin/phpstan analyse /srv/www/trunk/src -c /srv/www/trunk/var/ci/phpstan/phpstan.neon
```

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](https://github.com/gyselroth/php-helper/blob/master/CONTRIBUTING.md)

History
-------

[](#history)

See [CHANGELOG.md](https://github.com/gyselroth/php-helper/blob/master/CHANGELOG.md)

Author and License
------------------

[](#author-and-license)

Copyright 2017-2020 gyselroth™ ()

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

[http://www.apache.org/licenses/LICENSE-2.0":http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0%22:http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

### Used Open Source Software

[](#used-open-source-software)

Open source packages used by the gyselroth Helper Library are copyright of their vendors, see related licenses within the vendor packages.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 74.4% 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 ~29 days

Recently: every ~14 days

Total

32

Last Release

2030d ago

Major Versions

0.2.21 → 1.0.02020-10-12

PHP version history (2 changes)0.1.0PHP &gt;=7.1.0

0.2.20PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/48ce42c031ac21568fab6a2297d4687f393d93564415567abb5295706e9222df?d=identicon)[kstenschke](/maintainers/kstenschke)

![](https://avatars.githubusercontent.com/u/48283385?v=4)[Luca Marra](/maintainers/lucamarra)[@lucamarra](https://github.com/lucamarra)

![](https://avatars.githubusercontent.com/u/71101750?v=4)[lkohli](/maintainers/lkohli)[@lkohli](https://github.com/lkohli)

---

Top Contributors

[![lucamarra](https://avatars.githubusercontent.com/u/48283385?v=4)](https://github.com/lucamarra "lucamarra (61 commits)")[![jakov-ratkovic](https://avatars.githubusercontent.com/u/53826716?v=4)](https://github.com/jakov-ratkovic "jakov-ratkovic (14 commits)")[![danielnguygr](https://avatars.githubusercontent.com/u/53826633?v=4)](https://github.com/danielnguygr "danielnguygr (5 commits)")[![ewaldkleefstra](https://avatars.githubusercontent.com/u/31920433?v=4)](https://github.com/ewaldkleefstra "ewaldkleefstra (1 commits)")[![rootinier](https://avatars.githubusercontent.com/u/17425871?v=4)](https://github.com/rootinier "rootinier (1 commits)")

---

Tags

arrayclientdatefilesystemhelperhtmlimagelibrarynumericphpphp7serverstringxmlzipclienthelperxmlarraystringimagehtmlserverzipfiledatenumeric

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/gyselroth-php-helper/health.svg)

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

###  Alternatives

[nicolab/php-ftp-client

A flexible FTP and SSL-FTP client for PHP. This lib provides helpers easy to use to manage the remote files.

6435.5M27](/packages/nicolab-php-ftp-client)[jbzoo/utils

Collection of PHP functions, mini classes and snippets for everyday developer's routine life.

8151.6M36](/packages/jbzoo-utils)[jstewmc/php-helpers

Static classes to help with numbers, strings, arrays, files, and bools in PHP

3111.6k2](/packages/jstewmc-php-helpers)[yii2mod/yii2-ftp

A flexible FTP and SSL-FTP client for PHP. This lib provides helpers easy to use to manage the remote files.

32446.1k3](/packages/yii2mod-yii2-ftp)[edsdk/flmngr-server-php

Flmngr file manager PHP backend

19291.1k3](/packages/edsdk-flmngr-server-php)

PHPackages © 2026

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