PHPackages                             orisai/source-map - 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. orisai/source-map

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

orisai/source-map
=================

Generate, validate and serialize source maps

1.0.3(1y ago)336.4k—7.7%1MPL-2.0PHPPHP 7.4 - 8.4CI passing

Since Jan 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/orisai/source-map)[ Packagist](https://packagist.org/packages/orisai/source-map)[ Docs](https://github.com/orisai/source-map)[ RSS](/packages/orisai-source-map/feed)WikiDiscussions v1.x Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (1)

 [![Orisai](https://github.com/orisai/.github/raw/main/images/repo_title.png?raw=true)](https://github.com/orisai/.github/blob/main/images/repo_title.png?raw=true)
 Source Map
=================================================================================================================================================================================

[](#source-map)

 Generate, validate and serialize source maps

 📄 Check out our [documentation](docs/README.md).

 💸 If you like Orisai, please [make a donation](https://orisai.dev/sponsor). Thank you!

 [![](https://github.com/orisai/source-map/actions/workflows/ci.yaml/badge.svg?branch=v1.x)](https://github.com/orisai/source-map/actions?query=workflow:CI+branch:v1.x) [![](https://camo.githubusercontent.com/068a038814affd32eeea665bd3131a022ce5aebf0b27867e8e5a265f73d12bb9/68747470733a2f2f62616467656e2e6e65742f636f766572616c6c732f632f6769746875622f6f72697361692f736f757263652d6d61702f76312e783f63616368653d333030)](https://coveralls.io/github/orisai/source-map?branch=v1.x) [![](https://camo.githubusercontent.com/8cf1fe8098e404b3660f14efaf8f732ae49837316b1f2af9c9095ccedf18d19a/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d68747470733a2f2f62616467652d6170692e737472796b65722d6d757461746f722e696f2f6769746875622e636f6d2f6f72697361692f736f757263652d6d61702f76312e78)](https://dashboard.stryker-mutator.io/reports/github.com/orisai/source-map/v1.x) [![](https://camo.githubusercontent.com/e883d5a50774f8f3d9ae978601fa14d664aa79ce50fce4df4ea97a694b49022d/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f6f72697361692f736f757263652d6d61703f63616368653d33363030)](https://packagist.org/packages/orisai/source-map) [![](https://camo.githubusercontent.com/60057e0f2943006cd61c8c0a6f87c4d95e4587a29c3162bafaeef78c9e2461e0/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6f72697361692f736f757263652d6d61703f63616368653d33363030)](https://packagist.org/packages/orisai/source-map) [![](https://camo.githubusercontent.com/40b2374865c7727b1568a7b77cc1a8068979ac265d85d659fe73b2d337b458e6/68747470733a2f2f62616467656e2e6e65742f62616467652f6c6963656e73652f4d504c2d322e302f626c75653f63616368653d33363030)](https://choosealicense.com/licenses/mpl-2.0/)

```
use Orisai\SourceMap\AnnotationSource;
use Orisai\SourceMap\ClassSource;
use ReflectionClass;

// Generate (and self-validate)
$source = new AnnotationSource(new ClassSource(new ReflectionClass(AnnotatedClass::class)));

// Print source
echo $source->toString(); // 'AnnotatedClass annotation'

// Serialize and un-serialize
$serialized = serialize($source);
$source = unserialize($serialized);
assert($source instanceof AnnotationSource);

// Ensure source is still valid after un-serialization
$source->isValid(); // bool

// Check last time source has changed
$source->getLastChange(); // DateTimeImmutable
```

###  Health Score

41

—

FairBetter than 88% of packages

Maintenance46

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~192 days

Total

5

Last Release

448d ago

PHP version history (3 changes)1.0.0PHP &gt;=7.4.0 &lt;8.3.0

1.0.1PHP 7.4 - 8.3

1.0.2PHP 7.4 - 8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20974277?v=4)[Marek Bartoš](/maintainers/mabar)[@mabar](https://github.com/mabar)

---

Top Contributors

[![mabar](https://avatars.githubusercontent.com/u/20974277?v=4)](https://github.com/mabar "mabar (33 commits)")

---

Tags

generatingmaporisaiphpserializationsourcevalidationvalidationserializationmapsourceorisaigenerating

### Embed Badge

![Health badge](/badges/orisai-source-map/health.svg)

```
[![Health](https://phpackages.com/badges/orisai-source-map/health.svg)](https://phpackages.com/packages/orisai-source-map)
```

###  Alternatives

[composer/semver

Version comparison library that offers utilities, version constraint parsing and validation.

3.3k489.6M670](/packages/composer-semver)[giggsey/libphonenumber-for-php

A library for parsing, formatting, storing and validating international phone numbers, a PHP Port of Google's libphonenumber.

5.0k148.7M414](/packages/giggsey-libphonenumber-for-php)[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M381](/packages/respect-validation)[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M106](/packages/propaganistas-laravel-phone)[opis/json-schema

Json Schema Validator for PHP

64236.9M185](/packages/opis-json-schema)[giggsey/libphonenumber-for-php-lite

A lite version of giggsey/libphonenumber-for-php, which is a PHP Port of Google's libphonenumber

8412.9M47](/packages/giggsey-libphonenumber-for-php-lite)

PHPackages © 2026

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