Packagist · packagist:webmozart/assert
webmozart/assert active
Assertions to validate method input/output with nice error messages.
| Latest stable version | 2.5.0 |
|---|---|
| Published | 2026-10-05 23:14:19+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-10-08 18:59:31 UTC |
| Sources | api.osv.dev, repo.packagist.org |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-10-05 23:14:19 UTC · 2 days ago |
| Stable releases in the last 12 months | 15 |
| Published versions | 32 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
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 |
Showing the 20 most recent of 30 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.0 |
php 8.3 | 2.5.0 |
php 8.4 | 2.5.0 |
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.0, published on 2026-10-05. Verified by Vigia on 2026-10-08.
How do I install the latest version of webmozart/assert?
Run composer require webmozart/assert. The latest stable version is 2.5.0 (verified 2026-10-08).
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.0 declares this requirement: PHP ^8.2.
Does webmozart/assert 2.5.0 have known vulnerabilities?
No known advisories affect webmozart/assert 2.5.0 according to the data Vigia checks.
Is webmozart/assert still maintained?
webmozart/assert published 15 stable releases in the last 12 months; the most recent was 2 days ago. Activity: active.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- dflydev/dot-access-data
- psr/cache
- nette/schema
- tijsverkoyen/css-to-inline-styles
- laravel/framework
- psy/psysh
- voku/portable-ascii
- laravel/prompts
- league/uri
- league/config
- league/commonmark
- phpstan/phpdoc-parser
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}