2017 © Pedro Peláez
 

library stripe-command-bus-interface

Stripe Command Bus Interface

image

davidjeddy/stripe-command-bus-interface

Stripe Command Bus Interface

  • Sunday, February 18, 2018
  • by davidjeddy
  • Repository
  • 3 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

Stripe Command Bus Interface

Badges

Build Status Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads composer.lock codecov Maintainability, (*1)

SensioLabsInsight, (*2)

Status / Version

EARLY ALPHA! I had a need so I created a solution. (See SemVer for an explanation of version numbering.), (*3)

Credit

Could not do this without the work of Eugene Terentev., (*4)

Description

A limited selection of command bus style classes that overlay the Stripe PHP API classes., (*5)

Install

Either - composer install davidjeddy/stripe-command-bus-interface - or add "davidjeddy/stripe-command-bus-interface": "*", to your projects composer.json in the required sections, -THEN run composer install., (*6)

Usage

1) Add the desired classes to your application classes use statements., (*7)

2) Implement command bus logic in the class:, (*8)

# basic command bus class to handler
$response = $commandBus->handle(
    # the Stripe Command Bus core class. All requests pass through this class.
    new CreateHandler([
        # the Stripe data is passed to the command bus handlers as the `data` property
        'data' => [
            'description'   => 'Test Co. LLC',
            'email'         => 'test@email.com',
        ]
    ])
);
  • $response is passed from the Stripe class response back to your application.
  • When mapping information for a Stripe class, it will always be contained within the 'data' array key.

The Versions

18/02 2018

dev-add_container_configuration

dev-add_container_configuration https://github.com/davidjeddy/stripe-command-bus-interface#readme

Stripe Command Bus Interface

  Sources   Download

MIT

The Requires

 

The Development Requires

command bus stripe

10/02 2018
10/02 2018

dev-remove_yii_dependency

dev-remove_yii_dependency https://github.com/davidjeddy/stripe-command-bus-interface#readme

Stripe Command Bus Interface

  Sources   Download

MIT

The Requires

 

The Development Requires

command bus stripe