php-basics/README.md

28 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

2024-01-23 17:58:33 +01:00
# PHP Basics
2024-02-09 22:57:20 +01:00
***A collection of generic classes and useful traits for PHP projects.***
2023-09-11 19:31:06 +02:00
2024-09-07 21:28:43 +02:00
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.
2024-02-09 22:57:20 +01:00
## Quick Start
2024-07-11 13:08:56 +02:00
The intended and recommended way of using this package is via [Composer](https://getcomposer.org/). The following command will get you the latest version:
2024-02-09 22:57:20 +01:00
2024-07-11 13:45:20 +02:00
```shell
composer require opencultureconsulting/basics
```
2024-02-09 22:57:20 +01:00
All available versions as well as further information about requirements and dependencies can be found on [Packagist](https://packagist.org/packages/opencultureconsulting/basics).
2023-11-21 22:17:39 +01:00
2024-02-09 22:57:20 +01:00
## Full Documentation
2024-01-23 17:58:33 +01:00
2024-02-09 22:57:20 +01:00
The full documentation is available on [GitHub Pages](https://opencultureconsulting.github.io/php-basics/) or alternatively in [doc/](doc/).
## 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)