{"id":18345838,"url":"https://github.com/hyperf/scan-manager-incubator","last_synced_at":"2025-09-02T15:14:13.404Z","repository":{"id":56987745,"uuid":"388838894","full_name":"hyperf/scan-manager-incubator","owner":"hyperf","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-23T15:54:33.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-04-26T00:42:47.411Z","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/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}},"created_at":"2021-07-23T15:03:48.000Z","updated_at":"2023-12-27T16:44:04.000Z","dependencies_parsed_at":"2022-08-21T12:50:28.510Z","dependency_job_id":null,"html_url":"https://github.com/hyperf/scan-manager-incubator","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/hyperf%2Fscan-manager-incubator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fscan-manager-incubator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fscan-manager-incubator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperf%2Fscan-manager-incubator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperf","download_url":"https://codeload.github.com/hyperf/scan-manager-incubator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223245061,"owners_count":17112572,"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":[],"created_at":"2024-11-05T21:09:43.704Z","updated_at":"2024-11-05T21:09:44.495Z","avatar_url":"https://github.com/hyperf.png","language":"PHP","readme":"# ScanManager\n\n```\ncomposer require hyperf/scan-manager-incubator\n```\n\n## 如何在 Hyperf v2.2 版本及以上使用 Swoole Compiler\n\n`Hyperf` 项目线上运行时，务必开启 `SCAN_CACHEABLE`，这样在项目启动时，只要缓存存在时，就不会再次扫描注解。\n\n所以，在我们要加密代码时，务必按照以下步骤进行：\n\n1. 开启 `SCAN_CACHEABLE`\n2. 执行 `composer dump-autoload -o` 优化索引的同时删除 `runtime/container` 目录\n3. 执行 `php bin/hyperf.php scan:cache` 生成 `runtime/container`\n4. 打包代码后进行加密，需要注意以下问题：\n5. 设置加密文件黑名单，不加密vendor、test、config等文件夹\n6. 选择保留注释\n7. 安装好扩展后即可正常运行代码\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf%2Fscan-manager-incubator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperf%2Fscan-manager-incubator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperf%2Fscan-manager-incubator/lists"}