Skip to content

Bounded Context for the Wikimedia Deutschland fundraising membership subdomain

License

Notifications You must be signed in to change notification settings

wmde/fundraising-memberships

Repository files navigation

Fundraising Memberships

Build Status Scrutinizer Code Quality Code Coverage

Bounded Context for the Wikimedia Deutschland fundraising membership (sub-)domain. Used by the user facing donation application and the "Fundraising Operations Center" (which is not public software).

Installation

To use the Fundraising Memberships library in your project, simply add a dependency on wmde/fundraising-memberships to your project's composer.json file. Here is a minimal example of a composer.json file that just defines a dependency on Fundraising Memberships 1.x:

{
    "require": {
        "wmde/fundraising-memberships": "~1.0"
    }
}

Development

For development you need to have Docker and the Docker compose plugin installed. You don't need a local PHP runtime environment.

sudo apt-get install docker docker-compose-plugin

Running Composer

To pull in the project dependencies via Composer, run:

make install-php

To update the dependencies, run

make update-php

Running the CI checks

To run all CI checks, which includes PHPUnit tests, PHPCS style checks and static analysis with PHPStan, run:

make

Running the tests

To run just the PHPUnit tests run

make test

To run only a subset of PHPUnit tests or otherwise pass flags to PHPUnit, run

docker compose run --rm app ./vendor/bin/phpunit --filter SomeClassNameOrFilter

Architecture

This Bounded Context follows the architecture rules outlined in Clean Architecture + Bounded Contexts.

With the exception that the persistance is still (mostly) in FundraisingStore, and thus not private to this Bounded Context.

Architecture diagram

About

Bounded Context for the Wikimedia Deutschland fundraising membership subdomain

Resources

License

Stars

Watchers

Forks

Packages

No packages published