[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8197":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":8,"language":10,"languages":8,"totalLinesOfCode":8,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":18,"rankGlobal":8,"rankLanguage":8,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":8,"pushedAt":8,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":15,"starSnapshotCount":15,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},8197,"ReflectionDocBlock","phpDocumentor\u002FReflectionDocBlock","phpDocumentor",null,"","PHP",9384,136,16,10,0,1,3,60.21,"MIT License",false,"6.x",[23],"docblocks","2026-06-12 04:00:38","[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-yellow.svg)](https:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT)\n[![Integrate](https:\u002F\u002Fgithub.com\u002FphpDocumentor\u002FReflectionDocBlock\u002Factions\u002Fworkflows\u002Fintegrate.yaml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FphpDocumentor\u002FReflectionDocBlock\u002Factions\u002Fworkflows\u002Fintegrate.yaml)\n[![Scrutinizer Code Coverage](https:\u002F\u002Fimg.shields.io\u002Fscrutinizer\u002Fcoverage\u002Fg\u002FphpDocumentor\u002FReflectionDocBlock.svg)](https:\u002F\u002Fscrutinizer-ci.com\u002Fg\u002FphpDocumentor\u002FReflectionDocBlock\u002F?branch=master)\n[![Scrutinizer Code Quality](https:\u002F\u002Fimg.shields.io\u002Fscrutinizer\u002Fg\u002FphpDocumentor\u002FReflectionDocBlock.svg)](https:\u002F\u002Fscrutinizer-ci.com\u002Fg\u002FphpDocumentor\u002FReflectionDocBlock\u002F?branch=master)\n[![Stable Version](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fv\u002Fphpdocumentor\u002Freflection-docblock.svg?label=stable)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fphpdocumentor\u002Freflection-docblock)\n[![Unstable Version](https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fv\u002Fphpdocumentor\u002Freflection-docblock.svg?include_prereleases&label=unstable)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fphpdocumentor\u002Freflection-docblock)\n\nReflectionDocBlock \n==================\n\nIntroduction\n------------\n\nThe ReflectionDocBlock component of phpDocumentor provides a DocBlock parser\nthat is 100% compatible with the [PHPDoc standard](http:\u002F\u002Fphpdoc.org\u002Fdocs\u002Flatest).\n\nWith this component, a library can provide support for annotations via DocBlocks\nor otherwise retrieve information that is embedded in a DocBlock.\n\nInstallation\n------------\n\n```bash\ncomposer require phpdocumentor\u002Freflection-docblock\n```\n\nUsage\n-----\n\nIn order to parse the DocBlock one needs a DocBlockFactory that can be\ninstantiated using its `createInstance` factory method like this:\n\n```php\n$factory  = \\phpDocumentor\\Reflection\\DocBlockFactory::createInstance();\n```\n\nThen we can use the `create` method of the factory to interpret the DocBlock.\nPlease note that it is also possible to provide a class that has the\n`getDocComment()` method, such as an object of type `ReflectionClass`, the\ncreate method will read that if it exists.\n\n```php\n$docComment = \u003C\u003C\u003CDOCCOMMENT\n\u002F**\n * This is an example of a summary.\n *\n * This is a Description. A Summary and Description are separated by either\n * two subsequent newlines (thus a whiteline in between as can be seen in this\n * example), or when the Summary ends with a dot (`.`) and some form of\n * whitespace.\n *\u002F\nDOCCOMMENT;\n\n$docblock = $factory->create($docComment);\n```\n\nThe `create` method will yield an object of type `\\phpDocumentor\\Reflection\\DocBlock`\nwhose methods can be queried:\n\n```php\n\u002F\u002F Contains the summary for this DocBlock\n$summary = $docblock->getSummary();\n\n\u002F\u002F Contains \\phpDocumentor\\Reflection\\DocBlock\\Description object\n$description = $docblock->getDescription();\n\n\u002F\u002F You can either cast it to string\n$description = (string) $docblock->getDescription();\n\n\u002F\u002F Or use the render method to get a string representation of the Description.\n$description = $docblock->getDescription()->render();\n```\n\n> For more examples it would be best to review the scripts in the [`\u002Fdocs\u002Fexamples` folder](\u002Fdocs\u002Fexamples).\n","phpDocumentor\u002FReflectionDocBlock 是一个用于解析 PHP 代码中 DocBlock 的库，完全符合 PHPDoc 标准。其核心功能包括提供一个 DocBlock 解析器，支持通过注解提取嵌入在 DocBlock 中的信息。该组件采用工厂模式创建 DocBlock 对象，并提供了多种方法来获取和处理 DocBlock 内容，如获取摘要、描述等。适用于需要对 PHP 项目进行文档生成、代码分析或自定义注解处理的场景。",2,"2026-06-11 03:16:42","top_language"]