- 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
<?php | |
require_once __DIR__.'/../symfony/app/bootstrap.php.cache'; | |
require_once __DIR__.'/../symfony/app/AppKernel.php'; | |
use Symfony\Component\HttpFoundation\Request; | |
$kernel = new AppKernel('dev', true); | |
$kernel->loadClassCache(); | |
$response = $kernel->handle(Request::createFromGlobals()); |
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 | |
/** | |
* Calculates the amount of overlap between a source time range and a variable number of compared time ranges. | |
* Implements a subset of Allen's Interval Algebra. | |
* With contributions by rdlowery. | |
*/ | |
class OverlapCalculator { | |
/** | |
* @var int |
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 | |
// Script to convert Symfony YAML translation files to XLIFF. | |
// | |
// Will add a .xliff version of the given file in its directory. | |
// | |
// $ php convert.php path/to/MyBundle.en.yml | |
$file = $argv[1]; |
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 error_reporting(E_ALL); | |
function test() {} | |
$nIter = 1000000; | |
$argNums = [0, 1, 2, 3, 4, 5, 100]; | |
$func = 'test'; | |
foreach ($argNums as $argNum) { |
npm update -g
updates all global packages and their dependencies, see npm/npm#6247.
- Either use the shell script or windows batch here instead.
Auto use php-cs-fixer at save with PHPStorm and file watcher
- Open settings ( ctrl + alt + s)
- Menu file watchers
- Import watchers.xml
- Change settings like path for php and php-cs-fixer
- Enjoy ! PSRize at save.
NB: File watchers are linked to a specific project, so we have to re-import them for each project. External tools have IDE scope but we couldn't run them automaticaly - we could set a key bind.
- For your local dev, create a
Dockerfile
that is based on your production image and simply installxdebug
into it. Exemple:
FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
- Mobiledoc - github.com/bustle/mobiledoc-kit - framework to build editors with a standardized JSON structure
- ShareDB - github.com/share/sharedb - framework to sync any JSON document using operational transforms, add real-time collaborative editing to anything else
- Bangle.dev - github.com/bangle-io/bangle.dev - toolkit built for building editors, based on prosemirror
These use separate document structures instead of HTML, some are more modular libraries than full editors
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
var deleteBranches = function () { | |
return $("ul[ng-show='environment.active_trail']") | |
.first() | |
.find("li.disabled > div > a") | |
.map(function (i, b) { | |
return b.text; | |
}); | |
}; | |
var filterDeleteBranchesByPrefix = function (prefix) { |
OlderNewer