{"id":24752569,"url":"https://github.com/shengyou/20190811-php-puzzlers","last_synced_at":"2025-10-10T23:30:35.088Z","repository":{"id":42948524,"uuid":"202488996","full_name":"shengyou/20190811-php-puzzlers","owner":"shengyou","description":"PHPCon China 2019 分享主题 - PHP 机制问答","archived":false,"fork":false,"pushed_at":"2023-02-02T07:26:45.000Z","size":219,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T03:41:13.167Z","etag":null,"topics":["2019","china","php","phpcon","puzzlers"],"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/shengyou.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}},"created_at":"2019-08-15T06:47:55.000Z","updated_at":"2025-02-20T15:58:23.000Z","dependencies_parsed_at":"2025-01-28T10:50:26.952Z","dependency_job_id":"aabe1f6e-4eff-4f74-9420-2bdb9b9cb3db","html_url":"https://github.com/shengyou/20190811-php-puzzlers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shengyou/20190811-php-puzzlers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shengyou%2F20190811-php-puzzlers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shengyou%2F20190811-php-puzzlers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shengyou%2F20190811-php-puzzlers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shengyou%2F20190811-php-puzzlers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shengyou","download_url":"https://codeload.github.com/shengyou/20190811-php-puzzlers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shengyou%2F20190811-php-puzzlers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005573,"owners_count":26083919,"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-10-10T02:00:06.843Z","response_time":62,"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":["2019","china","php","phpcon","puzzlers"],"created_at":"2025-01-28T10:50:23.396Z","updated_at":"2025-10-10T23:30:35.083Z","avatar_url":"https://github.com/shengyou.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP 机制问答\n\n受邀在 [PHPCon China 2019](http://www.phpconchina.com/) 进行 PHP 机制问答活动，通过精心设计的问答题带给大家一场直接面向代码的有趣体验。\n\n## 相关材料\n\n* 简报档：https://www.slideshare.net/shengyou/php-puzzlers\n* 源代码：https://github.com/shengyou/20190811-php-puzzlers\n\n## 如何看题目及取得解答？\n\n* 先将环境建置起来\n  - 确认本机有 `PHP 7.3` 及 `Swoole 4.4.3` \n  - `composer install`\n  - `composer run-script post-autoload-dump`\n  - `composer run-script post-root-package-install`\n  - `composer run-script post-create-project-cmd`\n* 所有题目都放在 `app/Console/Commands/Puzzle*.php` 里\n* 验证答案：\n  - `artisan warmup` (韩老师热身题)\n  - `artisan puzzle:{题号}` (题号请用 1~13 取代)\n\n## 警告\n\n设计这些题目的目标，只是为了呈现 PHP 语法在某些特定场景的特性 (或说是坑)。而题目在设计过程中也故意安插了许多陷阱，仅是为了增加活动的趣味性。请千万不要在您的生产代码里这样写程式！会坑到别人也会害到自己的！\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshengyou%2F20190811-php-puzzlers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshengyou%2F20190811-php-puzzlers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshengyou%2F20190811-php-puzzlers/lists"}