Packagist · packagist:webmozart/assert
webmozart/assert 活跃
Assertions to validate method input/output with nice error messages.
| 最新稳定版本 | 2.5.0 |
|---|---|
| 发布时间 | 2026-10-05 23:14:19+00:00 |
| 安装 | composer require webmozart/assert |
| 所需 PHP 版本 (composer.json) | PHP ^8.2 |
| 许可证 | MIT |
| 最新版本的安全公告 | 暂无已知 |
| 最近核实 | 2026-10-08 19:59:32 UTC |
| 来源 | api.osv.dev, repo.packagist.org |
维护情况
| 活跃度 | 活跃 |
|---|---|
| 最近的稳定版本 | 2026-10-05 23:14:19 UTC · 2 天前 |
| 过去 12 个月的稳定版本数 | 15 |
| 已发布版本数 | 32 |
仅根据发布时间估算,不反映对 issue 或安全问题的响应速度。
版本历史
| 版本 | 发布时间 |
|---|---|
2.5.0 | 2026-10-05 23:14:19 UTC |
2.4.1 | 2026-06-15 15:31:57 UTC |
2.4.0 | 2026-05-20 13:07:01 UTC |
2.3.0 | 2026-04-11 10:33:05 UTC |
2.2.0 | 2026-04-09 16:54:47 UTC |
2.1.6 | 2026-02-27 10:28:38 UTC |
2.1.5 | 2026-02-18 14:09:36 UTC |
2.1.4 | 2026-02-17 12:17:51 UTC |
2.1.3 | 2026-02-13 21:01:40 UTC |
2.1.2 | 2026-01-13 14:02:24 UTC |
2.1.1 | 2026-01-08 11:28:40 UTC |
2.1.0 | 2026-01-07 17:29:08 UTC |
2.0.0 | 2025-12-16 21:36:00 UTC |
1.12.1 | 2025-10-29 15:56:20 UTC |
1.12.0 | 2025-10-20 12:43:39 UTC |
1.11.0 | 2022-06-03 18:03:27 UTC |
1.10.0 | 2021-03-09 10:59:23 UTC |
1.9.1 | 2020-07-08 17:02:28 UTC |
1.9.0 | 2020-06-16 10:16:42 UTC |
1.8.0 | 2020-04-18 12:12:48 UTC |
显示 30 个版本中最新的 20 个。 JSON
版本兼容性
声明支持各运行时版本的最新稳定版本(依据每个版本发布的要求)。
| 运行时 | 最新兼容版本 |
|---|---|
php 7.4 | 1.12.1 |
php 8.0 | 1.12.1 |
php 8.1 | 1.12.1 |
php 8.2 | 2.5.0 |
php 8.3 | 2.5.0 |
php 8.4 | 2.5.0 |
把这些数据交给你的 AI 智能体
Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
添加到 Cursor添加到 VS Code★ 在 GitHub 上加星
任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }常见问题
webmozart/assert 的最新版本是什么?
webmozart/assert 的最新稳定版本是 2.5.0,发布于 2026-10-05。Vigia 于 2026-10-08 核实。
如何安装 webmozart/assert 的最新版本?
运行 composer require webmozart/assert。最新稳定版本是 2.5.0(2026-10-08 核实)。
webmozart/assert 是否已弃用?
否。注册表中 webmozart/assert 未被标记为已弃用。
webmozart/assert 需要哪个版本的 PHP?
webmozart/assert 2.5.0 声明的要求为:PHP ^8.2。
webmozart/assert 2.5.0 是否存在已知漏洞?
根据 Vigia 检查的数据,没有已知安全公告影响 webmozart/assert 2.5.0。
webmozart/assert 是否仍在维护?
webmozart/assert 在过去 12 个月内发布了 15 个稳定版本,最近一次在 2 天前。活跃度:活跃。
观察到的变更
自 Vigia 开始跟踪此软件包以来,尚未观察到变更。
相关软件包
- dflydev/dot-access-data
- psr/cache
- nette/schema
- tijsverkoyen/css-to-inline-styles
- psy/psysh
- laravel/framework
- voku/portable-ascii
- laravel/prompts
- league/config
- league/uri
- league/commonmark
- phpstan/phpdoc-parser
用于 README 的徽章
展示此软件包的最新版本、维护状态以及是否已弃用。复制 Markdown:
[](https://vigia.coredls.cloud/packagist/webmozart/assert) [](https://vigia.coredls.cloud/packagist/webmozart/assert) [](https://vigia.coredls.cloud/packagist/webmozart/assert)
供智能体使用
GET https://vigia.coredls.cloud/v1/packages/packagist/webmozart/assert
GET https://vigia.coredls.cloud/v1/packages/packagist/webmozart/assert/versions/{version}