safronik/code-patterns

Implementation of different code patterns mainly could be used as traits

0.1.1 2024-04-19 05:44 UTC

This package is not auto-updated.

Last update: 2024-05-03 10:48:53 UTC


README

A PHP library contains code patterns ready to use.

About

This package contains few main code patterns you can use to build your own project. You are free to use anywhere in any way you want (MIT License).

Installation

The preferred method of installation is via Composer. Run the following command to install the package and add it as a requirement to your project's composer.json:

composer require safronik/code-patterns

Content

Patterns grouped by their destination:

Generative:

Patterns which are create or store objects/values

Structural:

Patterns which help to organize and build solid code structure

Behavioral:

These helps you to organize the code in dynamic, its behaviour.

Custom:

Patterns from any previous group with some additional changes like lazy loads or specific keys

Contributing

Feel free to contribute!