Vigia

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.02026-10-05 23:14:19 UTC
2.4.12026-06-15 15:31:57 UTC
2.4.02026-05-20 13:07:01 UTC
2.3.02026-04-11 10:33:05 UTC
2.2.02026-04-09 16:54:47 UTC
2.1.62026-02-27 10:28:38 UTC
2.1.52026-02-18 14:09:36 UTC
2.1.42026-02-17 12:17:51 UTC
2.1.32026-02-13 21:01:40 UTC
2.1.22026-01-13 14:02:24 UTC
2.1.12026-01-08 11:28:40 UTC
2.1.02026-01-07 17:29:08 UTC
2.0.02025-12-16 21:36:00 UTC
1.12.12025-10-29 15:56:20 UTC
1.12.02025-10-20 12:43:39 UTC
1.11.02022-06-03 18:03:27 UTC
1.10.02021-03-09 10:59:23 UTC
1.9.12020-07-08 17:02:28 UTC
1.9.02020-06-16 10:16:42 UTC
1.8.02020-04-18 12:12:48 UTC

显示 30 个版本中最新的 20 个。 JSON

版本兼容性

声明支持各运行时版本的最新稳定版本(依据每个版本发布的要求)。

运行时最新兼容版本
php 7.41.12.1
php 8.01.12.1
php 8.11.12.1
php 8.22.5.0
php 8.32.5.0
php 8.42.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" } } }

智能体技能(SKILL.md):告诉智能体何时使用 Vigia · 用于拉取请求的 GitHub Action

常见问题

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 开始跟踪此软件包以来,尚未观察到变更。

相关软件包

用于 README 的徽章

展示此软件包的最新版本、维护状态以及是否已弃用。复制 Markdown:

[![version](https://vigia.coredls.cloud/badge/packagist/webmozart/assert/version.svg)](https://vigia.coredls.cloud/packagist/webmozart/assert)
[![maintained](https://vigia.coredls.cloud/badge/packagist/webmozart/assert/maintained.svg)](https://vigia.coredls.cloud/packagist/webmozart/assert)
[![status](https://vigia.coredls.cloud/badge/packagist/webmozart/assert/status.svg)](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}