[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8269":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":15,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":16,"starSnapshotCount":16,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},8269,"exporter","sebastianbergmann\u002Fexporter","sebastianbergmann","Provides the functionality to export PHP variables for visualization","",null,"PHP",6820,36,8,1,0,3,35.7,"BSD 3-Clause \"New\" or \"Revised\" License",false,"main",[],"2026-06-12 02:01:51","[![Latest Stable Version](https:\u002F\u002Fposer.pugx.org\u002Fsebastian\u002Fexporter\u002Fv)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fsebastian\u002Fexporter)\n[![CI Status](https:\u002F\u002Fgithub.com\u002Fsebastianbergmann\u002Fexporter\u002Fworkflows\u002FCI\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fsebastianbergmann\u002Fexporter\u002Factions)\n[![codecov](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fsebastianbergmann\u002Fexporter\u002Fbranch\u002Fmain\u002Fgraph\u002Fbadge.svg)](https:\u002F\u002Fcodecov.io\u002Fgh\u002Fsebastianbergmann\u002Fexporter)\n\n# sebastian\u002Fexporter\n\nThis component provides the functionality to export PHP variables for visualization.\n\n## Installation\n\nYou can add this library as a local, per-project dependency to your project using [Composer](https:\u002F\u002Fgetcomposer.org\u002F):\n\n```\ncomposer require sebastian\u002Fexporter\n```\n\nIf you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency:\n\n```\ncomposer require --dev sebastian\u002Fexporter\n```\n\n## Usage\n\nExporting:\n\n```php\n\u003C?php\nuse SebastianBergmann\\Exporter\\Exporter;\n\n$exporter = new Exporter;\n\n\u002F*\nException Object &0000000078de0f0d000000002003a261 (\n    'message' => ''\n    'string' => ''\n    'code' => 0\n    'file' => '\u002Fhome\u002Fsebastianbergmann\u002Ftest.php'\n    'line' => 34\n    'previous' => null\n)\n*\u002F\n\nprint $exporter->export(new Exception);\n```\n\n## Data Types\n\nExporting simple types:\n\n```php\n\u003C?php\nuse SebastianBergmann\\Exporter\\Exporter;\n\n$exporter = new Exporter;\n\n\u002F\u002F 46\nprint $exporter->export(46);\n\n\u002F\u002F 4.0\nprint $exporter->export(4.0);\n\n\u002F\u002F 'hello, world!'\nprint $exporter->export('hello, world!');\n\n\u002F\u002F false\nprint $exporter->export(false);\n\n\u002F\u002F NAN\nprint $exporter->export(acos(8));\n\n\u002F\u002F -INF\nprint $exporter->export(log(0));\n\n\u002F\u002F null\nprint $exporter->export(null);\n\n\u002F\u002F resource(13) of type (stream)\nprint $exporter->export(fopen('php:\u002F\u002Fstderr', 'w'));\n\n\u002F\u002F Binary String: 0x000102030405\nprint $exporter->export(chr(0) . chr(1) . chr(2) . chr(3) . chr(4) . chr(5));\n```\n\nExporting complex types:\n\n```php\n\u003C?php\nuse SebastianBergmann\\Exporter\\Exporter;\n\n$exporter = new Exporter;\n\n\u002F*\nArray &0 (\n    0 => Array &1 (\n        0 => 1\n        1 => 2\n        2 => 3\n    )\n    1 => Array &2 (\n        0 => ''\n        1 => 0\n        2 => false\n    )\n)\n*\u002F\n\nprint $exporter->export(array(array(1,2,3), array(\"\",0,FALSE)));\n\n\u002F*\nArray &0 (\n    'self' => Array &1 (\n        'self' => Array &1\n    )\n)\n*\u002F\n\n$array = array();\n$array['self'] = &$array;\nprint $exporter->export($array);\n\n\u002F*\nstdClass Object &0000000003a66dcc0000000025e723e2 (\n    'self' => stdClass Object &0000000003a66dcc0000000025e723e2\n)\n*\u002F\n\n$obj = new stdClass();\n$obj->self = $obj;\nprint $exporter->export($obj);\n```\n\nCompact exports:\n\n```php\n\u003C?php\nuse SebastianBergmann\\Exporter\\Exporter;\n\n$exporter = new Exporter;\n\n\u002F\u002F Array ()\nprint $exporter->shortenedExport(array());\n\n\u002F\u002F Array (...)\nprint $exporter->shortenedExport(array(1,2,3,4,5));\n\n\u002F\u002F stdClass Object ()\nprint $exporter->shortenedExport(new stdClass);\n\n\u002F\u002F Exception Object (...)\nprint $exporter->shortenedExport(new Exception);\n\n\u002F\u002F this\\nis\\na\\nsuper\\nlong\\nstring\\nt...\\nspace\nprint $exporter->shortenedExport(\n\u003C\u003C\u003CLONG_STRING\nthis\nis\na\nsuper\nlong\nstring\nthat\nwraps\na\nlot\nand\neats\nup\na\nlot\nof\nspace\nLONG_STRING\n);\n```\n","sebastian\u002Fexporter 是一个用于将 PHP 变量导出以便于可视化的库。其核心功能是能够处理各种数据类型，包括简单类型（如整数、浮点数、字符串等）和复杂类型（如数组、对象等），并以一种易于阅读的格式输出。该库支持详细的导出模式，也提供了紧凑型导出选项，使得即使是循环引用或非常大的数据结构也能被有效展示。适用于开发和调试阶段，特别是当需要快速查看变量内容或者分析测试结果时。通过 Composer 即可轻松集成到项目中，无论是作为生产依赖还是仅在开发环境中使用都非常方便。",2,"2026-06-11 03:17:06","top_language"]