{"id":18345787,"url":"https://github.com/hyperf/swow-skeleton","last_synced_at":"2025-04-06T08:31:59.925Z","repository":{"id":44912694,"uuid":"304487088","full_name":"hyperf/swow-skeleton","owner":"hyperf","description":"Skeleton for Swow","archived":false,"fork":false,"pushed_at":"2024-04-09T04:44:24.000Z","size":189,"stargazers_count":45,"open_issues_count":8,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T20:51:15.164Z","etag":null,"topics":["coroutine","hyperf","php","swow"],"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/hyperf.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}},"created_at":"2020-10-16T01:23:23.000Z","updated_at":"2025-02-27T07:38:00.000Z","dependencies_parsed_at":"2023-02-03T04:50:13.702Z","dependency_job_id":null,"html_url":"https://github.com/hyperf/swow-skeleton","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fswow-skeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fswow-skeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fswow-skeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fswow-skeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperf","download_url":"https://codeload.github.com/hyperf/swow-skeleton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457399,"owners_count":20941901,"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":["coroutine","hyperf","php","swow"],"created_at":"2024-11-05T21:09:30.098Z","updated_at":"2025-04-06T08:31:59.583Z","avatar_url":"https://github.com/hyperf.png","language":"PHP","readme":"# 介绍\n\nHyperf 是基于 `Swoole/Swow` 实现的高性能、高灵活性的 PHP 持久化框架，内置协程服务器及大量常用的组件，性能较传统基于 `PHP-FPM` 的框架有质的提升，提供超高性能的同时，也保持着极其灵活的可扩展性，标准组件均以最新的 [PSR 标准](https://www.php-fig.org/psr) 实现，基于强大的依赖注入设计可确保框架内的绝大部分组件或类都是可替换的。\n   \n框架组件库除了常见的协程版的 `MySQL 客户端`、`Redis 客户端`，还为您准备了协程版的 `Eloquent ORM`、`GRPC 服务端及客户端`、`Zipkin (OpenTracing) 客户端`、`Guzzle HTTP 客户端`、`Elasticsearch 客户端`、`Consul 客户端`、`ETCD 客户端`、`AMQP 组件`、`Apollo 配置中心`、`基于令牌桶算法的限流器`、`通用连接池` 等组件的提供也省去了自己去实现对应协程版本的麻烦，并提供了 `依赖注入`、`注解`、`AOP 面向切面编程`、`中间件`、`自定义进程`、`事件管理器`、`简易的 Redis 消息队列和全功能的 RabbitMQ 消息队列` 等非常便捷的功能，满足丰富的技术场景和业务场景，开箱即用。\n\n# 框架初衷\n\n尽管现在基于 PHP 语言开发的框架处于一个百花争鸣的时代，但仍旧没能看到一个优雅的设计与超高性能的共存的完美框架，亦没有看到一个真正为 PHP 微服务铺路的框架，此为 Hyperf 及其团队成员的初衷，我们将持续投入并为此付出努力，也欢迎你加入我们参与开源建设。\n\n# 设计理念\n\n`Hyperspeed + Flexibility = Hyperf`，从名字上我们就将 `超高速` 和 `灵活性` 作为 Hyperf 的基因。\n   \n- 对于超高速，我们基于 Swow 协程并在框架设计上进行大量的优化以确保超高性能的输出。   \n- 对于灵活性，我们基于 Hyperf 强大的依赖注入组件，组件均基于 [PSR 标准](https://www.php-fig.org/psr) 的契约和由 Hyperf 定义的契约实现，达到框架内的绝大部分的组件或类都是可替换的。   \n\n基于以上的特点，Hyperf 将存在丰富的可能性，如实现 Web 服务，网关服务，分布式中间件，微服务架构，游戏服务器，物联网（IOT）等。\n\n# 文档\n\n[https://hyperf.wiki/](https://hyperf.wiki/)\n\n## Gitlab CI\n\n如果需要使用 `Gitlab CI`，可以通过以下方式创建 `Gitlab Runner`。\n\n```shell\nsudo gitlab-runner register -n \\\n--url https://gitlab.com/ \\\n--clone-url http://your-ip/ \\\n--registration-token REGISTRATION_TOKEN \\\n--executor docker \\\n--description \"Unit Runner\" \\\n--docker-image \"hyperf/docker-ci:latest\" \\\n--docker-volumes /var/run/docker.sock:/var/run/docker.sock \\\n--docker-volumes /builds:/builds:rw \\\n--docker-privileged \\\n--tag-list \"unit\" \\\n--docker-pull-policy \"if-not-present\"\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf%2Fswow-skeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperf%2Fswow-skeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf%2Fswow-skeleton/lists"}