Ross ROSS = Recommend OSS · open-source software intelligence for agents

beberlei/assert

Thin assertion library for use in libraries and business-model observed · 2026-10-08

github.com/beberlei/assert · PHP · NOASSERTION (other) observed · 2026-10-08

Health v2 · maintenance only

72/100

  • Activity 78
  • Release rhythm 48
  • Longevity 100

Flags: no_license

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.

  • gap_med: 588
  • age_days: 5266
  • days_rel: 132
  • days_push: 132
  • n_releases_24m: 2

Full methodology

Adoption not part of the score

2434 stars · 186 forks observed · 2026-10-08

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A thin PHP assertion library providing assertions and guard methods for input validation in business models, libraries, and low-level application code. Failed assertions throw exceptions, eliminating the need for verbose if-clause validation code.

Use cases

  • validate function arguments in php
  • assert preconditions in business model
  • throw exception on invalid input instead of if checks
  • guard methods for library input validation
  • check file exists and value is digit in php
  • lightweight alternative to symfony validator

When to choose

  • you need fast, low-level, dependency-free input assertions in PHP
  • you want exception-based validation without instantiating validator objects
  • you are writing business-model or library code needing pre/post-condition checks

When to avoid

  • you need filtering or sanitization, not just validation
  • you need localized validation messages or complex validation rules
  • you are not working in PHP

Facets

library · maturity stable

testing error-handling developer-tools web-development backend php assertions input-validation guard-clauses preconditions php-library

1 source

Member repositories

RepositoryRoleHealth v2
beberlei/assertmain72

For agents

markdown · JSON · MCP: product_card(name="beberlei/assert")

Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem