{"id":34000046,"url":"https://github.com/zolex/reactphp-bundle","last_synced_at":"2025-12-13T09:11:04.006Z","repository":{"id":300468468,"uuid":"1006265772","full_name":"zolex/reactphp-bundle","owner":"zolex","description":"ReactPHP Symfony Bundle","archived":false,"fork":false,"pushed_at":"2025-07-04T12:57:44.000Z","size":75,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-04T23:52:45.257Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zolex.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-21T21:36:51.000Z","updated_at":"2025-07-10T17:35:03.000Z","dependencies_parsed_at":"2025-06-28T04:02:01.203Z","dependency_job_id":null,"html_url":"https://github.com/zolex/reactphp-bundle","commit_stats":null,"previous_names":["zolex/react-bundle","zolex/reactphp-bundle"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zolex/reactphp-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zolex%2Freactphp-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zolex%2Freactphp-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zolex%2Freactphp-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zolex%2Freactphp-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zolex","download_url":"https://codeload.github.com/zolex/reactphp-bundle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zolex%2Freactphp-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27702949,"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","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-12-13T09:11:03.488Z","updated_at":"2025-12-13T09:11:03.995Z","avatar_url":"https://github.com/zolex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReactPHP Symfony Bundle\n\n[![Release](https://github.com/zolex/reactphp-bundle/workflows/Release/badge.svg)](https://github.com/zolex/ReactPhpBundle/actions)\n![Version](https://img.shields.io/packagist/v/zolex/reactphp-bundle)\n[![Integration](https://github.com/zolex/reactphp-bundle/workflows/Integration/badge.svg)](https://github.com/zolex/reactphp-bundle/actions)\n[![Code Coverage](https://codecov.io/gh/zolex/reactphp-bundle/graph/badge.svg?token=Swt3B6XMUw)](https://codecov.io/gh/zolex/reactphp-bundle)\n\n\n![License](https://img.shields.io/packagist/l/zolex/reactphp-bundle)\n![Downloads](https://img.shields.io/packagist/dt/zolex/reactphp-bundle)\n\n![ReactPhpBundle](docs/logo.jpg)\n\n![PHP](https://img.shields.io/badge/php-%23777BB4.svg?style=for-the-badge\u0026logo=php\u0026logoColor=white)\n![Symfony](https://img.shields.io/badge/symfony-%23000000.svg?style=for-the-badge\u0026logo=symfony\u0026logoColor=white)\n\nA Symfony Bundle providing a Runtime for [ReactPHP](https://github.com/reactphp/reactphp), a PSR-17 Kernel and a Router to serve assets.\n\nTurn any Symfony project into a \"self-serving\" application, no traditional webserver required.\n\n### Installation\n\n```bash\ncomposer require zolex/reactphp-bundle\n```\n\n### Start the server\n\n```bash\nAPP_RUNTIME=\"Zolex\\\\ReactPhpBundle\\\\Runtime\\\\ReactPhpRuntime\" php public/index.php\n```\n\nFor a very basic docker example, check the [Dockerfile](./docs/Dockerfile) in the docs folder.\n\n### Assets\n\nTo allow serving assets from the public directory through ReactPHP, add this file to your project `config/routes/react_bundle.yaml`\n```yaml\nreactphp_bundle:\n  type: reactphp_bundle\n  resource: .\n```\n\nBy default, only files in the `public/bundles` directory are served (like Swagger-UI in API-Platform).\nAdditional directories and files can be registered in the bundle config at `config/bundles/zolex_react_php.yaml`:\n\n```yaml\nzolex_react_php:\n    asset_paths:\n        - /bundles/\n        - /custom-dir/\n        - /single-file.js\n        - /another/single/file.css\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzolex%2Freactphp-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzolex%2Freactphp-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzolex%2Freactphp-bundle/lists"}