[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8584":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":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":16,"starSnapshotCount":16,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},8584,"ca-bundle","composer\u002Fca-bundle","composer","Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.","",null,"PHP",2962,40,12,1,0,56.84,"MIT License",false,"main",true,[],"2026-06-12 04:00:40","composer\u002Fca-bundle\n==================\n\nSmall utility library that lets you find a path to the system CA bundle,\nand includes a fallback to the Mozilla CA bundle.\n\nOriginally written as part of [composer\u002Fcomposer](https:\u002F\u002Fgithub.com\u002Fcomposer\u002Fcomposer),\nnow extracted and made available as a stand-alone library.\n\n\nInstallation\n------------\n\nInstall the latest version with:\n\n```bash\n$ composer require composer\u002Fca-bundle\n```\n\n\nRequirements\n------------\n\n* PHP 5.3.2 is required but using the latest version of PHP is highly recommended.\n\n\nBasic usage\n-----------\n\n### `Composer\\CaBundle\\CaBundle`\n\n- `CaBundle::getSystemCaRootBundlePath()`: Returns the system CA bundle path, or a path to the bundled one as fallback\n- `CaBundle::getBundledCaBundlePath()`: Returns the path to the bundled CA file\n- `CaBundle::validateCaFile($filename)`: Validates a CA file using openssl_x509_parse only if it is safe to use\n- `CaBundle::isOpensslParseSafe()`: Test if it is safe to use the PHP function openssl_x509_parse()\n- `CaBundle::reset()`: Resets the static caches\n\n\n#### To use with curl\n\n```php\n$curl = curl_init(\"https:\u002F\u002Fexample.org\u002F\");\n\n$caPathOrFile = \\Composer\\CaBundle\\CaBundle::getSystemCaRootBundlePath();\nif (is_dir($caPathOrFile)) {\n    curl_setopt($curl, CURLOPT_CAPATH, $caPathOrFile);\n} else {\n    curl_setopt($curl, CURLOPT_CAINFO, $caPathOrFile);\n}\n\n$result = curl_exec($curl);\n```\n\n#### To use with php streams\n\n```php\n$opts = array(\n    'http' => array(\n        'method' => \"GET\"\n    )\n);\n\n$caPathOrFile = \\Composer\\CaBundle\\CaBundle::getSystemCaRootBundlePath();\nif (is_dir($caPathOrFile)) {\n    $opts['ssl']['capath'] = $caPathOrFile;\n} else {\n    $opts['ssl']['cafile'] = $caPathOrFile;\n}\n\n$context = stream_context_create($opts);\n$result = file_get_contents('https:\u002F\u002Fexample.com', false, $context);\n```\n\n#### To use with Guzzle\n\n```php\n$client = new \\GuzzleHttp\\Client([\n    \\GuzzleHttp\\RequestOptions::VERIFY => \\Composer\\CaBundle\\CaBundle::getSystemCaRootBundlePath()\n]);\n```\n\nLicense\n-------\n\ncomposer\u002Fca-bundle is licensed under the MIT License, see the LICENSE file for details.\n","composer\u002Fca-bundle 是一个小型的 PHP 库，用于查找系统 CA 证书包路径，并在必要时提供 Mozilla CA 证书包作为备用。其核心功能包括获取系统或内置的 CA 证书路径、验证 CA 文件的有效性以及检查 openssl_x509_parse 函数的安全使用条件。该库适用于需要安全地处理 HTTPS 请求的场景，如使用 cURL、PHP 流或 Guzzle 发送请求时确保 SSL\u002FTLS 通信的安全性。通过提供可靠的 CA 证书路径，它简化了开发人员在配置 SSL 验证时的工作。",2,"2026-06-11 03:18:43","top_language"]