PHPackages                             greg-md/php-support - 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. greg-md/php-support

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

greg-md/php-support
===================

Support classes for PHP.

11.0k1[1 PRs](https://github.com/greg-md/php-support/pulls)1PHPCI failing

Since Jul 23Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/greg-md/php-support)[ Packagist](https://packagist.org/packages/greg-md/php-support)[ RSS](/packages/greg-md-php-support/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (1)

Greg PHP Support
================

[](#greg-php-support)

[![StyleCI](https://camo.githubusercontent.com/0fde178cc362113f91e6350629a21e93e3eb5c0effdcbb0eb8a34de8ae57360c/68747470733a2f2f7374796c6563692e696f2f7265706f732f36363337343337342f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/66374374)[![Build Status](https://camo.githubusercontent.com/f6f18342b833316b41bcfbeb3ef5b6537fe7af22c171a5b965e9a7416417040c/68747470733a2f2f7472617669732d63692e6f72672f677265672d6d642f7068702d737570706f72742e737667)](https://travis-ci.org/greg-md/php-support)[![Total Downloads](https://camo.githubusercontent.com/bcd726cae390efdf09417582d45b9f61d0cf9fe2ade53513b58ba3e87ded0b5e/68747470733a2f2f706f7365722e707567782e6f72672f677265672d6d642f7068702d737570706f72742f642f746f74616c2e737667)](https://packagist.org/packages/greg-md/php-support)[![Latest Stable Version](https://camo.githubusercontent.com/92e083e37740135fe63316318777859558c8cd2f5f8ba20c5480c372315f9cfb/68747470733a2f2f706f7365722e707567782e6f72672f677265672d6d642f7068702d737570706f72742f762f737461626c652e737667)](https://packagist.org/packages/greg-md/php-support)[![Latest Unstable Version](https://camo.githubusercontent.com/7bcca2280d901881eaf1258af7b9d5fd2eea145faa1f1fa14317ed1cde20fc5c/68747470733a2f2f706f7365722e707567782e6f72672f677265672d6d642f7068702d737570706f72742f762f756e737461626c652e737667)](https://packagist.org/packages/greg-md/php-support)[![License](https://camo.githubusercontent.com/5a0f7fb427ee2a847e0d16e6d9ed3594d113e44fdbeac9f48fcad53f6fd08851/68747470733a2f2f706f7365722e707567782e6f72672f677265672d6d642f7068702d737570706f72742f6c6963656e73652e737667)](https://packagist.org/packages/greg-md/php-support)

Support classes for PHP.

Table of Contents:
==================

[](#table-of-contents)

- [Requirements](#requirements)
- [Documentation](#documentation)
- [License](#license)
- [Huuuge Quote](#huuuge-quote)

Requirements
============

[](#requirements)

- PHP Version `^7.1`

Documentation
=============

[](#documentation)

- [Str](docs/Str.md) - Working with strings;
- [Arr](docs/Arr.md) - Working with arrays;
- [Obj](docs/Obj.md) - Working with objects;
- [Url](docs/Url.md) - Working with URLs;
- [Dir](docs/Dir.md) - Working with directories;
- [File](docs/File.md) - Working with files;
- [Image](docs/Image.md) - Working with images;
- [Session](docs/Session.md) - Working with `$_SESSION`;
- [DateTime](docs/DateTime.md) - Working with dates and times;
- [Server](docs/Server.md) - Working with server configurations;
- [Config](docs/Config.md) - Working with config files;
- [Validation](docs/Validation.md) - Validate parameters against validators.
- **Accessor**
    - [AccessorTrait](docs/Accessor/AccessorTrait.md) - A trait for **private** usage of the storage in a class;
    - [AccessorStaticTrait](docs/Accessor/AccessorStaticTrait.md) - A trait for **private** usage of the storage in a static class;
    - [ArrayAccessorTrait](docs/Accessor/ArrayAccessorTrait.md) - A trait for **public** usage of an storage in a class;
    - [ArrayAccessorStaticTrait](docs/Accessor/ArrayAccessorStaticTrait.md) - A trait for **public** usage of an storage in a static class;
    - [ArrayAccessTrait](docs/Accessor/ArrayAccessTrait.md) - A trait for **public** usage of the storage in a class with [`\ArrayAccess`](http://php.net/manual/en/class.arrayaccess.php) support;
    - [ArrayAccessStaticTrait](docs/Accessor/ArrayAccessStaticTrait.md) - A trait for **public** usage of the storage in a static class;
    - [CountableTrait](docs/Accessor/CountableTrait.md) - A trait for [Countable](http://php.net/manual/en/class.countable.php) interface;
    - [IteratorAggregateTrait](docs/Accessor/IteratorAggregateTrait.md) - A trait for [IteratorAggregate](http://php.net/manual/en/class.iteratoraggregate.php) interface;
    - [SerializableTrait](docs/Accessor/SerializableTrait.md) - A trait for [Serializable](http://php.net/manual/en/class.serializable.php) interface;
    - [ArrayObject](docs/Accessor/ArrayObject.md) - Array as an object.
- **Http**
    - [Request](docs/Http/Request.md) - Working with `http request` in an object-oriented way;
    - [Response](docs/Http/Response.md) - Working with `http response` in an object-oriented way.
- **Tools**
    - [Html](docs/Tools/Html.md) - Working with html;
    - [Color](docs/Tools/Color.md) - Working with colors;
    - [Math](docs/Tools/Math.md) - Working with math;
    - [Regex](docs/Tools/Regex.md) - Working with regular expressions;
    - [InNamespaceRegex](docs/Tools/InNamespaceRegex.md) - Generate a regular expression to search in desired namespaces. Ex: `{{ Find Me! }}`;
    - [SubHtml](docs/Tools/SubHtml.md) - Extract a sub-html from a html.

License
=======

[](#license)

MIT © [Grigorii Duca](http://greg.md)

Huuuge Quote
============

[](#huuuge-quote)

[![I fear not the man who has practiced 10,000 programming languages once, but I fear the man who has practiced one programming language 10,000 times. #horrorsquad](https://camo.githubusercontent.com/73fc580403a8367b075fff0a0d7439dc0dc095dd3124b22757522675c1308df8/687474703a2f2f677265672e6d642f6875757567652d71756f74652d66622e6a7067)](https://camo.githubusercontent.com/73fc580403a8367b075fff0a0d7439dc0dc095dd3124b22757522675c1308df8/687474703a2f2f677265672e6d642f6875757567652d71756f74652d66622e6a7067)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance50

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/85a6700372326d0546fcff3eb2c3f27daa711273bdd5d6fdda875a7d2f02af85?d=identicon)[greg-md](/maintainers/greg-md)

---

Top Contributors

[![greg-md](https://avatars.githubusercontent.com/u/10551984?v=4)](https://github.com/greg-md "greg-md (1 commits)")

---

Tags

greg-mdgreg-phpphpphp-supportsupportweb-artisans

### Embed Badge

![Health badge](/badges/greg-md-php-support/health.svg)

```
[![Health](https://phpackages.com/badges/greg-md-php-support/health.svg)](https://phpackages.com/packages/greg-md-php-support)
```

###  Alternatives

[mautic/composer-plugin

1467.4k48](/packages/mautic-composer-plugin)

PHPackages © 2026

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