# psr14 **Repository Path**: ebcms/psr14 ## Basic Information - **Project Name**: psr14 - **Description**: php psr14 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-30 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # psr14 php psr14 ## Installation ``` cmd composer require ebcms/psr14 ``` ## Usage ``` php $provider = new ListenerProvider; $event = new EventDispatcher($provider); $provider->listen(function (stdClass $obj) { echo 'foo'; }, 2); $provider->listen(function (stdClass $obj) { echo 'bar'; }, 1); $provider->listen(function (stdClass $obj) { echo 'baz'; }, 3); $obj = new stdClass; $event->dispatch($obj); // baz foo bar ```