{"id":15990071,"url":"https://github.com/realflowcontrol/react-inotify","last_synced_at":"2025-07-06T03:37:52.961Z","repository":{"id":56982341,"uuid":"186474839","full_name":"realFlowControl/react-inotify","owner":"realFlowControl","description":"Event driven / non-blocking inotify stream in ReactPHP","archived":false,"fork":false,"pushed_at":"2024-11-27T15:47:56.000Z","size":13699,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-08T19:06:17.313Z","etag":null,"topics":["filewatcher","inotify","reactphp"],"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/realFlowControl.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-13T18:31:31.000Z","updated_at":"2024-11-27T15:46:12.000Z","dependencies_parsed_at":"2024-10-27T15:14:05.102Z","dependency_job_id":"396c7a06-1b32-4ec3-8c45-bc96f6b0bd94","html_url":"https://github.com/realFlowControl/react-inotify","commit_stats":{"total_commits":116,"total_committers":7,"mean_commits":"16.571428571428573","dds":0.2931034482758621,"last_synced_commit":"3043b38803225c22421981e420a599beea6aa9bc"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realFlowControl%2Freact-inotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realFlowControl%2Freact-inotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realFlowControl%2Freact-inotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realFlowControl%2Freact-inotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realFlowControl","download_url":"https://codeload.github.com/realFlowControl/react-inotify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243864821,"owners_count":20360360,"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":["filewatcher","inotify","reactphp"],"created_at":"2024-10-08T05:04:24.922Z","updated_at":"2025-03-17T14:31:48.142Z","avatar_url":"https://github.com/realFlowControl.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flow-control/react-inotify\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/flow-control/react-inotify/ci.yml?style=for-the-badge\u0026logo=github%20actions\u0026branch=master)](https://github.com/flow-control/react-inotify/actions)\n[![Coverage](https://img.shields.io/codecov/c/github/flow-control/react-inotify?style=for-the-badge\u0026logo=codecov)](https://codecov.io/gh/flow-control/react-inotify)\n[![PHP Version](https://img.shields.io/packagist/php-v/flow-control/react-inotify.svg?style=for-the-badge)](https://github.com/flow-control/react-inotify)\n[![Stable Version](https://img.shields.io/packagist/v/flow-control/react-inotify.svg?style=for-the-badge\u0026label=Latest)](https://packagist.org/packages/flow-control/react-inotify)\n\nSimple, async inotify event handler build with ReactPHP\n\nThis library is heavily inspired by [reactphp/stream](https://github.com/reactphp/stream).\n\n## Dependencies\n\nThis library depends on the [PHP Inotify extension](https://pecl.php.net/package/inotify), available via PECL\n\n```bash\n$ pecl install inotify\n```\n\n## PHP Version Support\n\nIf you are looking for PHP 7 support you need to install `flow-control/react-inotify` in version 1. Version 2 dropped support for PHP 7.\n\n## Usage\n\n### Install\n\n```bash\n$ composer require flow-control/react-inotify\n```\n\n### How to use\n\nCreate an object from the `\\Flowcontrol\\React\\Inotify\\InotifyStream` class\nand register your event handlers.\n\n```php\n$inotify = new \\Flowcontrol\\React\\Inotify\\InotifyStream();\n$inotify-\u003eon('event', function (array $data) {\n    var_dump($data);\n});\n$inotfiy-\u003eaddWatch(__DIR__, IN_CLOSE_WRITE);\n```\n\n## Tests\n\n```bash\n$ composer install\n$ composer test\n```\n\n## Build with\n\n- [ReactPHP](https://reactphp.org/)\n- [evenement/evenement](https://github.com/igorw/evenement)\n\n## License\n\nMIT, see [LICENSE file](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealflowcontrol%2Freact-inotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealflowcontrol%2Freact-inotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealflowcontrol%2Freact-inotify/lists"}