- Broadway - Infrastructure and testing helpers for creating CQRS and event sourced applications
- EventCentric.Core - Event Sourcing and CQRS in PHP
- LiteCQRS - Small convention based CQRS library for PHP
- predaddy - Common DDD classes including an annotation driven message bus and tools for CQRS and Event Sourcing
- ProophEventSourcing - Provides basic functionality for event-sourced aggregates
- ProophEventStore - PHP 5.4+ EventStore Implementation
- ProophServiceBus - PHP Enterprise Service Bus Implementation supporting CQRS and DDD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This assumes you have installed php56 and php56-xdebug, and installed phpunit | |
# globally. Replace php56 with php71 or whatever version you use. For example: | |
# | |
# brew install php56 php56-xdebug | |
# composer global require phpunit/phpunit | |
# | |
# After installing xdebug, you will need to disable xdebug from always loading: | |
# | |
# $EDITOR /usr/local/etc/php/5.6/conf.d/ext-xdebug.ini | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use function Magic\hydrate; | |
class Foo | |
{ | |
private $cute; | |
private $clever; | |
public function __construct(array $values) |
I hereby claim:
- I am shadowhand on github.
- I am shadowhand (https://keybase.io/shadowhand) on keybase.
- I have a public key whose fingerprint is 40AF B4CD AB73 94B4 67DF E1E4 25A1 4BF1 4DEB 29D1
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
fixlock = ! git reset HEAD -- composer.lock && git co -- composer.lock && composer update --no-scripts && git add composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
replace() { | |
for file in $(git grep -l $1); do | |
sed -i '' -e "s/$1/$2/g" $file | |
done | |
} | |
replace "Spark" "Equip" | |
replace "sparkphp\/spark" "equip\/framework" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function array_key_first(array $arr) | |
{ | |
reset($arr); | |
return key($arr); | |
} | |
function array_key_last(array $arr) | |
{ |
Thank you for contributing! The branch you made this PR against is no longer accepting patches. This probably happened because we didn't merge your changes fast enough. 😭
Please create a new PR against the current default branch if you want to see these changes merged.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RedirectResponder implements Responder | |
{ | |
public function __invoke( | |
Request $request, | |
Response $response, | |
Payload $payload | |
) { | |
if ($this->hasRedirect($payload)) { | |
$messages = $payload->getMessages() + [ | |
'status' => 302, |