Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 721 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 721 Bytes

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.