Packagist · packagist:webmozart/assert
webmozart/assert active
Assertions to validate method input/output with nice error messages.
The latest stable version of webmozart/assert is 2.5.1, published on 2026-11-15. Verified by Vigia on 2026-11-27.
| Latest stable version | 2.5.1 |
|---|---|
| Published | 2026-11-15 13:41:13+00:00 |
| Install | composer require webmozart/assert |
| Required PHP version (composer.json) | PHP ^8.2 |
| License | MIT |
| Advisories on latest version | none known |
| Last verified | 2026-11-27 00:40:10 UTC |
| Sources | api.osv.dev, repo.packagist.org |
Ask your AI assistant to check this
AI models are trained up to a date, so they can be wrong about versions, deprecations and vulnerabilities. Paste this into Claude, ChatGPT, Perplexity or Cursor and it will answer with the verified data on this page:
Before answering about the packagist package "webmozart/assert", check Vigia (verified, dated facts): https://vigia.coredls.cloud/v1/packages/packagist/webmozart/assert . For my whole project use https://vigia.coredls.cloud/context
Using an AI coding agent every day? Connect Vigia once and it checks this by itself.
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-11-15 13:41:13 UTC · 11 days ago |
| Stable releases in the last 12 months | 14 |
| Published versions | 33 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
2.5.1 | 2026-11-15 13:41:13 UTC |
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 |
Showing the 20 most recent of 31 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
php 7.4 | 1.12.1 |
php 8.0 | 1.12.1 |
php 8.1 | 1.12.1 |
php 8.2 | 2.5.1 |
php 8.3 | 2.5.1 |
php 8.4 | 2.5.1 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of webmozart/assert?
The latest stable version of webmozart/assert is 2.5.1, published on 2026-11-15. Verified by Vigia on 2026-11-27.
How do I install the latest version of webmozart/assert?
Run composer require webmozart/assert. The latest stable version is 2.5.1 (verified 2026-11-27).
Is webmozart/assert deprecated?
No. webmozart/assert is not marked as deprecated in the registry.
Which PHP version does webmozart/assert require?
webmozart/assert 2.5.1 declares this requirement: PHP ^8.2.
Does webmozart/assert 2.5.1 have known vulnerabilities?
No known advisories affect webmozart/assert 2.5.1 according to the data Vigia checks.
Is webmozart/assert still maintained?
webmozart/assert published 14 stable releases in the last 12 months; the most recent was 11 days ago. Activity: active.
Observed changes
- Sun Nov 15 2026 14:34:57 GM +0000 (Coordinated Universal Time) — released 2.5.0 → 2.5.1
Related packages
- composer/pcre
- league/config
- laravel/framework
- nunomaduro/termwind
- phpstan/phpdoc-parser
- laravel/prompts
- tijsverkoyen/css-to-inline-styles
- guzzlehttp/uri-template
- paragonie/constant_time_encoding
- voku/portable-ascii
- psy/psysh
- composer/semver
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/packagist/webmozart/assert) [](https://vigia.coredls.cloud/packagist/webmozart/assert) [](https://vigia.coredls.cloud/packagist/webmozart/assert)
For agents
GET https://vigia.coredls.cloud/v1/packages/packagist/webmozart/assert
GET https://vigia.coredls.cloud/v1/packages/packagist/webmozart/assert/versions/{version}