{"id":19458829,"url":"https://github.com/leafsphp/eien","last_synced_at":"2025-04-25T06:30:34.851Z","repository":{"id":61043058,"uuid":"546357715","full_name":"leafsphp/eien","owner":"leafsphp","description":"Leaf's very own high-speed, high-performance server","archived":false,"fork":false,"pushed_at":"2024-08-25T02:21:43.000Z","size":28,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T23:28:53.017Z","etag":null,"topics":["php","swoole"],"latest_commit_sha":null,"homepage":"https://leafphp.dev/modules/eien","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leafsphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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},"funding":{"open_collective":"leaf","github":"leafsphp"}},"created_at":"2022-10-06T00:40:04.000Z","updated_at":"2025-04-14T14:55:19.000Z","dependencies_parsed_at":"2025-04-22T04:51:36.810Z","dependency_job_id":null,"html_url":"https://github.com/leafsphp/eien","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafsphp%2Feien","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafsphp%2Feien/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafsphp%2Feien/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafsphp%2Feien/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leafsphp","download_url":"https://codeload.github.com/leafsphp/eien/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250766975,"owners_count":21483898,"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":["php","swoole"],"created_at":"2024-11-10T17:28:40.678Z","updated_at":"2025-04-25T06:30:34.832Z","avatar_url":"https://github.com/leafsphp.png","language":"PHP","readme":"\u003c!-- markdownlint-disable no-inline-html --\u003e\n\u003cp align=\"center\"\u003e\n  \u003cbr\u003e\u003cbr\u003e\n  \u003cimg src=\"https://leafphp.dev/logo-circle.png\" height=\"100\"/\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e[WIP] Leaf Eien Server\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\t\u003ca href=\"https://packagist.org/packages/leafs/eien\"\n\t\t\u003e\u003cimg\n\t\t\tsrc=\"https://poser.pugx.org/leafs/eien/v/stable\"\n\t\t\talt=\"Latest Stable Version\"\n\t/\u003e\u003c/a\u003e\n\t\u003ca href=\"https://packagist.org/packages/leafs/eien\"\n\t\t\u003e\u003cimg\n\t\t\tsrc=\"https://poser.pugx.org/leafs/eien/downloads\"\n\t\t\talt=\"Total Downloads\"\n\t/\u003e\u003c/a\u003e\n\t\u003ca href=\"https://packagist.org/packages/leafs/eien\"\n\t\t\u003e\u003cimg\n\t\t\tsrc=\"https://poser.pugx.org/leafs/eien/license\"\n\t\t\talt=\"License\"\n\t/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\nEien is Leaf's implementation of a high-speed, high-performance server based on powerful tools like [Open Swoole](https://swoole.co.uk/) and [Swoole](https://github.com/swoole/swoole-src). Eien loads your app in memory and shares a state between requests to achieve amazing speeds.\n\nWhen serving Leaf apps with Eien, you gain additional performance improvements due to Leaf's lightweight and super fast nature.\n\n\u003e Note that Eien runs on Swoole, so you need to have the swoole extension installed.\n\u003e - [Swoole Installation docs](https://openswoole.com/docs/get-started/installation)\n\u003e - [In case you have errors installing swoole on Mac](https://parsinta.com/articles/setup-php-swoole-in-your-mac-os)\n\n## Installation\n\nYou can easily install Eien using the [Leaf CLI](https://cli.leafphp.dev):\n\n```sh\nleaf install eien\n```\n\nOr with [Composer](https://getcomposer.org/).\n\n```bash\ncomposer require leafs/eien\n```\n\n## Basic Usage\n\nJust like with the rest of Leaf, Eien is built to work out of the box without configuring anything or writing any extra code. Once Leaf detects Eien, it will automatically set everything up for you.\n\nTo run your app, you will need to open your project root file as a PHP script. You can do this with:\n\n```sh\nphp \u003cfilename\u003e\n```\n\nThis however would need you to quit and re-run this script everytime you make a change to your Leaf app. To solve this problem, we've added a watch script to Leaf CLI. You can run your Eien based apps like this:\n\n```sh\nleaf serve \u003cfilename\u003e\n```\n\n## Contributing\n\nWe are glad to have you. All contributions are welcome! To get started, familiarize yourself with our [contribution guide](https://leafphp.dev/community/contributing.html) and you'll be ready to make your first pull request 🚀.\n\nTo report a security vulnerability, you can reach out to [@mychidarko](https://twitter.com/mychidarko) or [@leafphp](https://twitter.com/leafphp) on twitter. We will coordinate the fix and eventually commit the solution in this project.\n\n### Code contributors\n\n\u003ctable\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd align=\"center\"\u003e\n\t\t\t\u003ca href=\"https://github.com/mychidarko\"\u003e\n\t\t\t\t\u003cimg src=\"https://avatars.githubusercontent.com/u/26604242?v=4\" width=\"120px\" alt=\"\"/\u003e\n\t\t\t\t\u003cbr /\u003e\n\t\t\t\t\u003csub\u003e\n\t\t\t\t\t\u003cb\u003eMichael Darko\u003c/b\u003e\n\t\t\t\t\u003c/sub\u003e\n\t\t\t\u003c/a\u003e\n\t\t\u003c/td\u003e\n\t\u003c/tr\u003e\n\u003c/table\u003e\n\n## Sponsoring Leaf\n\nYour cash contributions go a long way to help us make Leaf even better for you. You can sponsor Leaf and any of our packages on [open collective](https://opencollective.com/leaf) or check the [contribution page](https://leafphp.dev/support/) for a list of ways to contribute.\n\nAnd to all our existing cash/code contributors, we love you all ❤️\n\n### Cash contributors\n\nYou can view all sponsors @ [https://leafphp.dev/#sponsors](https://leafphp.dev/#sponsors)\n","funding_links":["https://opencollective.com/leaf","https://github.com/sponsors/leafsphp"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafsphp%2Feien","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleafsphp%2Feien","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafsphp%2Feien/lists"}