PHPackages                             jhnbrn90/cas-validator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. jhnbrn90/cas-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

jhnbrn90/cas-validator
======================

Parse and validate a given CAS number

079↓85.7%1PHP

Since Oct 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Jhnbrn90/CasValidator)[ Packagist](https://packagist.org/packages/jhnbrn90/cas-validator)[ RSS](/packages/jhnbrn90-cas-validator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CAS number validator
--------------------

[](#cas-number-validator)

This PHP package allows easy parsing and [validation of CAS numbers](https://chejunkie.com/knowledge-base/validate-cas-registry-numbers) as dictated by the ACS.

### Usage

[](#usage)

To use this package, first require it:

```
composer require jhnbrn90/cas-validator
```

Validating a CAS number is performed as follows:

```
use Jhnbrn90\CasValidator\CasNumberValidator;

$validatedCas = CasNumberValidator::validate('100-39-0');

// This will yield a `ValidCasNumber` or `InvalidCasNumber` DTO

$isValid = $validatedCas->isValid(); // boolean
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/64d71fc44580793131c4b50b5eabafb509511060b73316de3c84606b62acf3d6?d=identicon)[Jhnbrn90](/maintainers/Jhnbrn90)

---

Top Contributors

[![Jhnbrn90](https://avatars.githubusercontent.com/u/24190396?v=4)](https://github.com/Jhnbrn90 "Jhnbrn90 (3 commits)")[![hlecorche](https://avatars.githubusercontent.com/u/188749?v=4)](https://github.com/hlecorche "hlecorche (2 commits)")

### Embed Badge

![Health badge](/badges/jhnbrn90-cas-validator/health.svg)

```
[![Health](https://phpackages.com/badges/jhnbrn90-cas-validator/health.svg)](https://phpackages.com/packages/jhnbrn90-cas-validator)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
