Skip to content

An example to demonstrate a simple (yet flexible) way of creating entity repositories.

Notifications You must be signed in to change notification settings

slope-it/entity-repositories-for-humans

Repository files navigation

Entity repositories for humans

An example to demonstrate a simple (yet flexible) way of creating entity repositories. We use (a slightly more complicated version of) this pattern at Slope, in production code.

This approach is described in detail here: https://dev.to/andreasprega/entity-repositories-for-humans-part-1-2mnf

Requirements

  • Docker for desktop
  • PHP 8.1 or above installed on your local machine

Setup

./$ composer install
./$ source .env && docker compose up -d
./$ vendor/bin/doctrine orm:schema-tool:update --force

Run tests

./$ vendor/bin/phpunit

About

An example to demonstrate a simple (yet flexible) way of creating entity repositories.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages