Skip to content

uniter/event-dispatcher-demo

Repository files navigation

EventDispatcher demo for PHPify

Demo of compiling Symfony's EventDispatcher component to JavaScript, as used in the docs for PHPify.

Usage

The bundle has already been compiled for you, just open demo.html in a browser to test it out!

Rebuilding

Install the JS and PHP dependencies:

npm install
composer install

An extra script has been added to package.json in this repo:

    "build": "mkdir -p dist && browserify index > dist/bundle.js"

so that you can just run npm run build to rebuild the JS bundle after making any changes.

About

Demo of compiling Symfony's EventDispatcher component to JS with PHPify

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages