PHPackages                             phdevutils/business - 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. phdevutils/business

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

phdevutils/business
===================

Philippine SEC company/partnership registration-number validator and parser — recognizes the CS/CN/A/FS/FN/PG prefix + year + sequence formats and labels the entity type. Zero-dependency. Pairs with phdevutils/psic.

v0.1.0(1mo ago)00MITPHPPHP &gt;=8.1

Since Jun 3Pushed 1mo agoCompare

[ Source](https://github.com/kon2raya24/ph-business-php)[ Packagist](https://packagist.org/packages/phdevutils/business)[ RSS](/packages/phdevutils-business/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

phdevutils/business
===================

[](#phdevutilsbusiness)

[![Packagist Version](https://camo.githubusercontent.com/8a6efd65f71c2117d2f8ac3c908dcd04d956e58375033633d671be368d6a94da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70686465767574696c732f627573696e6573733f6c6162656c3d5061636b616769737426636f6c6f723d663238643161266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/phdevutils/business)[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

Validate and parse **Philippine SEC registration numbers** in PHP — recognizes the `CS` / `CN` / `A` / `FS` / `FN` / `PG` prefix + year + sequence formats and labels the entity type. Zero-dependency. PHP companion to the npm package `@ph-dev-utils/business`.

> **Format-level only.** This checks the *structure* of a registration number and infers the entity type from the prefix. It is **not** a registry lookup — always confirm a company against the [SEC verification portal](https://www.sec.gov.ph).

```
composer require phdevutils/business
```

Quick start
-----------

[](#quick-start)

```
use PhDevUtils\Business\Sec;

Sec::validate('CS2019-12345');   // true
Sec::validate('cs201912345');    // true  (dashes/spaces/case ignored)
Sec::validate('12345678');       // false (purely numeric legacy certs are out of scope)

Sec::parse('CS2019-12345');
// [
//   'prefix' => 'CS', 'entityType' => 'corporation',
//   'entityLabel' => 'Stock or non-stock corporation (unified)', 'era' => '2013–present',
//   'year' => 2019, 'sequence' => '12345', 'formatted' => 'CS2019-12345', 'raw' => 'CS2019-12345'
// ]

Sec::entityType('PG2018-00042'); // 'partnership'
Sec::format('cs 2019 12345');    // 'CS2019-12345'  (canonical form)
```

API
---

[](#api)

MethodReturns`Sec::validate($input)``bool` — matches a recognized SEC reg-number structure`Sec::parse($input)``array | null` — prefix, entity type, year, sequence, canonical form`Sec::entityType($input)``string | null``Sec::format($input)``string | null` — canonical `PREFIX + YEAR-SEQUENCE``Sec::prefixes()`the documented prefix table (`prefix`, `entityType`, `label`, `era`)### Recognized prefixes

[](#recognized-prefixes)

PrefixEntity typeEra`CS`Stock or non-stock corporation (unified)2013–present`CN`Non-stock corporation (legacy)1986–2012`A`Stock corporation (legacy)pre-2000`FS`Foreign stock corporation / branch2000–present`FN`Foreign non-stock corporation2000–present`PG`Partnership2017–presentThe recognized structure is **prefix + 4-digit year (19xx/20xx) + 3–8 digit sequence**, e.g. `CS2019-12345`. Entity-type labels are a best-effort reading of public SEC guidance — prefixes and their meanings have shifted across eras, so treat them as indicative.

Industry classification
-----------------------

[](#industry-classification)

To tag a company's industry, pair this with `phdevutils/psic` (Philippine Standard Industrial Classification — sections + divisions).

License
-------

[](#license)

MIT. SEC registration-number formats are factual public information; not affiliated with the Philippine SEC.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance90

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

52d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea8892a6c7ba804d12cac27e5927f4b7695d3fc63fec0ecd512d07c117246d6a?d=identicon)[kon2raya24](/maintainers/kon2raya24)

---

Top Contributors

[![kon2raya24](https://avatars.githubusercontent.com/u/167972097?v=4)](https://github.com/kon2raya24 "kon2raya24 (2 commits)")

---

Tags

business-registrationcomposerphilippinesphpsecvalidatorbusinessphilippinescorporationfilipinopartnershippsicseccompany-registration

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phdevutils-business/health.svg)

```
[![Health](https://phpackages.com/badges/phdevutils-business/health.svg)](https://phpackages.com/packages/phdevutils-business)
```

###  Alternatives

[respect/validation

The most awesome validation engine ever created for PHP

6.0k39.9M418](/packages/respect-validation)[seld/jsonlint

JSON Linter

1.3k228.7M274](/packages/seld-jsonlint)[composer/spdx-licenses

SPDX licenses list and validation library.

1.4k193.5M40](/packages/composer-spdx-licenses)[opis/json-schema

Json Schema Validator for PHP

65543.6M320](/packages/opis-json-schema)[intervention/validation

Additional validation rules for the Laravel framework

6827.2M20](/packages/intervention-validation)[laminas/laminas-validator

Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria

16048.2M222](/packages/laminas-laminas-validator)

PHPackages © 2026

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