{"id":15023926,"url":"https://github.com/initphp/eventemitter","last_synced_at":"2026-02-09T03:04:56.710Z","repository":{"id":57710475,"uuid":"512107375","full_name":"InitPHP/EventEmitter","owner":"InitPHP","description":"PHP Event Emitter","archived":false,"fork":false,"pushed_at":"2022-07-09T08:26:48.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T23:48:46.043Z","etag":null,"topics":["event-emitter","event-emitter-callback","event-emitters","eventemitter","events","php","php-event","php56","php7"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InitPHP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-09T06:03:38.000Z","updated_at":"2022-07-09T08:59:42.000Z","dependencies_parsed_at":"2022-09-26T21:21:02.308Z","dependency_job_id":null,"html_url":"https://github.com/InitPHP/EventEmitter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InitPHP%2FEventEmitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InitPHP%2FEventEmitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InitPHP%2FEventEmitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InitPHP%2FEventEmitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InitPHP","download_url":"https://codeload.github.com/InitPHP/EventEmitter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243324266,"owners_count":20273098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["event-emitter","event-emitter-callback","event-emitters","eventemitter","events","php","php-event","php56","php7"],"created_at":"2024-09-24T19:59:37.021Z","updated_at":"2026-02-09T03:04:56.646Z","avatar_url":"https://github.com/InitPHP.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InitPHP EventEmitter\n\nThis library has been designed to emit events in its simplest and simplest form.\n\n## Requirements\n\n- PHP 5.6 or higher\n\n## Installation\n\n```\ncomposer require initphp/event-emitter\n```\n\nor **Manuel Installation :**\n\nDownload this repository. And include the `src/Init.php` file in your project.\n\n## Usage\n\n```php\nrequire_once \"vendor/autoload.php\";\nuse InitPHP\\EventEmitter\\EventEmitter;\n\n$events = new EventEmitter();\n\n$events-\u003eon('hello', function ($name) {\n    echo 'Hello ' . $name . '!' . PHP_EOL;\n}, 99);\n\n$events-\u003eon('hello', function ($name) {\n    echo 'Hi ' . $name . '!' . PHP_EOL;\n}, 10);\n\n// Emit\n$events-\u003eemit('hello', ['World']);\n```\n\n_Output :_\n\n```\nHi World!\nHello World!\n```\n\n## Credits\n\n- [Muhammet ŞAFAK](https://www.muhammetsafak.com.tr) \u003c\u003cinfo@muhammetsafak.com.tr\u003e\u003e\n\n## License\n\nCopyright \u0026copy; 2022 [MIT License](./LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitphp%2Feventemitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finitphp%2Feventemitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitphp%2Feventemitter/lists"}