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

v2.1.2 2024-09-07 19:31 UTC

This package is auto-updated.

Last update: 2024-12-07 20:12:14 UTC


README

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

The package currently contains classes for type-sensitive data structures, error and exception handlers, multiple traits implementing standard interfaces, and more generic traits for common use cases. They share the same design principles like property and method naming schema, highest coding standards of PHPStan, Psalm, PHP Mess Detector, PHP_CodeSniffer, and full PSR-12 compliance to make sure they can be combined and easily used in other projects.

Quick Start

The intended and recommended way of using this package is via Composer. 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.

Full Documentation

The full documentation is available on GitHub Pages or alternatively in doc/.

Quality Gates

PHPCS PHPMD

PHPStan Psalm