{"id":20441746,"url":"https://github.com/mix-php/init","last_synced_at":"2025-08-31T15:10:41.073Z","repository":{"id":57017788,"uuid":"407738035","full_name":"mix-php/init","owner":"mix-php","description":"Help execute static initialization of the class, usually for preloading singletons / 帮助执行类的静态初始化，通常用于预加载单例","archived":false,"fork":false,"pushed_at":"2021-12-31T04:36:06.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T18:19:49.400Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mix-php.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}},"created_at":"2021-09-18T02:52:06.000Z","updated_at":"2024-12-16T15:02:01.000Z","dependencies_parsed_at":"2022-08-22T12:00:21.378Z","dependency_job_id":null,"html_url":"https://github.com/mix-php/init","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mix-php/init","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix-php%2Finit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix-php%2Finit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix-php%2Finit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix-php%2Finit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mix-php","download_url":"https://codeload.github.com/mix-php/init/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix-php%2Finit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272995566,"owners_count":25027958,"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-08-31T02:00:09.071Z","response_time":79,"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":"2024-11-15T09:34:33.497Z","updated_at":"2025-08-31T15:10:41.000Z","avatar_url":"https://github.com/mix-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e OpenMix 出品：[https://openmix.org](https://openmix.org/mix-php)\n\n# Mix Init\n\nHelp execute static initialization of the class, usually for preloading singletons\n\n帮助执行类的静态初始化，通常用于预加载单例\n\n## Installation\n\n```\ncomposer require mix/init\n```\n\n## Quick start\n\n定义类的静态初始化方法\n\n```php\nclass Example\n{\n    public static function init()\n    {\n        // do something\n    }\n}\n```\n\n从目录执行\n\n\u003e 可以通过定制方法名称，达到在不同的场景初始化的目的\n\n```php\nMix\\Init\\StaticInit::finder('/path/classdir')-\u003eexec('init');\n```\n\n## License\n\nApache License Version 2.0, http://www.apache.org/licenses/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmix-php%2Finit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmix-php%2Finit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmix-php%2Finit/lists"}