PHPackages                             opencultureconsulting/basics - 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. opencultureconsulting/basics

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

opencultureconsulting/basics
============================

A collection of generic classes and useful traits for PHP projects.

v2.1.3(8mo ago)0909↓50%2GPL-3.0-or-laterPHPPHP ^8.1CI passing

Since Jan 1Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/opencultureconsulting/php-basics)[ Packagist](https://packagist.org/packages/opencultureconsulting/basics)[ Docs](https://code.opencultureconsulting.com/php-basics/)[ Fund](https://paypal.me/sebastianmeyer)[ GitHub Sponsors](https://github.com/sebastian-meyer)[ RSS](/packages/opencultureconsulting-basics/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (7)Versions (9)Used By (2)

PHP Basics
==========

[](#php-basics)

***A collection of generic classes and useful traits for PHP projects.***

The package currently contains classes for [type-sensitive data structures](src/DataStructures/), [error and exception handlers](src/ErrorHandlers/), multiple [traits implementing standard interfaces](src/Interfaces/), and more generic [traits for common use cases](src/Traits/). They share the same design principles like property and method naming schema, highest coding standards of [PHPStan](https://phpstan.org/), [Psalm](https://psalm.dev/), [PHP Mess Detector](https://phpmd.org/), [PHP\_CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer/), and full [PSR-12](https://www.php-fig.org/psr/psr-12/) compliance to make sure they can be combined and easily used in other projects.

Quick Start
-----------

[](#quick-start)

The intended and recommended way of using this package is via [Composer](https://getcomposer.org/). The following command will get you the latest version:

```
composer require opencultureconsulting/basics
```

All available versions as well as further information about requirements and dependencies can be found on [Packagist](https://packagist.org/packages/opencultureconsulting/basics).

Full Documentation
------------------

[](#full-documentation)

The full documentation is available on [GitHub Pages](https://code.opencultureconsulting.com/php-basics/) or alternatively in [doc/](doc/).

Quality Gates
-------------

[](#quality-gates)

[![PHPCS](https://github.com/opencultureconsulting/php-basics/actions/workflows/phpcs.yml/badge.svg)](https://github.com/opencultureconsulting/php-basics/actions/workflows/phpcs.yml)[![PHPMD](https://github.com/opencultureconsulting/php-basics/actions/workflows/phpmd.yml/badge.svg)](https://github.com/opencultureconsulting/php-basics/actions/workflows/phpmd.yml)

[![PHPStan](https://github.com/opencultureconsulting/php-basics/actions/workflows/phpstan.yml/badge.svg)](https://github.com/opencultureconsulting/php-basics/actions/workflows/phpstan.yml)[![Psalm](https://github.com/opencultureconsulting/php-basics/actions/workflows/psalm.yml/badge.svg)](https://github.com/opencultureconsulting/php-basics/actions/workflows/psalm.yml)

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance70

Regular maintenance activity

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.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 ~86 days

Recently: every ~128 days

Total

8

Last Release

254d ago

Major Versions

v1.1.0 → v2.0.02024-03-31

PHP version history (2 changes)v1.0.0PHP ^8.0

v2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/4cb1792455fb3e8e6d9345ec2665d661a011463a58d42db73ce4ae4ceb358c95?d=identicon)[Sebastian Meyer](/maintainers/Sebastian%20Meyer)

---

Top Contributors

[![sebastian-meyer](https://avatars.githubusercontent.com/u/1798167?v=4)](https://github.com/sebastian-meyer "sebastian-meyer (153 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")

---

Tags

phpphp-libraryiteratorgettersettersingletonArrayAccesscountableIteratorAggregateoverloadingtypecheckerStrictListStrictQueueStrictStackthrowErrorExceptionTriggerExceptionErrorStrictCollectionOverloadingGetterOverloadingSetterStrictArray

###  Code Quality

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[usmanhalalit/get-set-go

Dynamic Setter-Getter for PHP 5.4+

1813.4k1](/packages/usmanhalalit-get-set-go)[rotexsoft/versatile-collections

A collection package that can be extended to implement things such as a Dependency Injection Container, RecordSet objects for housing database records, a bag of http cookies, or technically any collection of items that can be looped over and whose items can each be accessed using array-access syntax or object property syntax.

186.0k1](/packages/rotexsoft-versatile-collections)[antares/accessible

PHP library that allows you to define your class' getters, setters and constructor with docblock annotations.

123.9k1](/packages/antares-accessible)

PHPackages © 2026

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