PHPackages                             koala-framework/sourcemaps - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. koala-framework/sourcemaps

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

koala-framework/sourcemaps
==========================

Sourcemaps Utities

v0.5.1(9y ago)1563.5k↓46.3%12BSD-2-ClausePHP

Since Nov 5Pushed 9y ago17 watchersCompare

[ Source](https://github.com/koala-framework/sourcemaps)[ Packagist](https://packagist.org/packages/koala-framework/sourcemaps)[ Docs](http://www.koala-framework.org/)[ RSS](/packages/koala-framework-sourcemaps/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (8)Used By (2)

Source Maps Utilities Php Library[![Build Status](https://camo.githubusercontent.com/cf2068615eb4673a2eb46960a00385f605658e7f4a3a2bbf2d7656da767d2de7/68747470733a2f2f7472617669732d63692e6f72672f6b6f616c612d6672616d65776f726b2f736f757263656d6170732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/koala-framework/sourcemaps)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#source-maps-utilities-php-library)

### Features

[](#features)

- creating mappings
- reading mappings
- source map aware string replace for existing mapping
- concat maps (optimized for best performance)

### Requirements

[](#requirements)

- Php 5.2+

### Installation

[](#installation)

Install using composer:

```
composer require koala-framework/sourcemaps

```

### Example Usage

[](#example-usage)

```
//read
$map = new Kwf_SourceMaps_SourceMap($mapContents, $minimiedFileContents);
$map->getMappings()

//create new map
$map = Kwf_SourceMaps_SourceMap::createEmptyMap($minimiedFileContents);
$map->addMapping(2, 3, 10, 12, 'foo.js'); //$generatedLine, $generatedColumn, $originalLine, $originalColumn, $originalSource, $originalName = null)
$map->getMapContents();

//merge two maps
$map1->concat($map2);

//perform string replacement
$map->stringReplace('foo', 'bar');

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~166 days

Recently: every ~180 days

Total

6

Last Release

3381d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/395b4eb64319fa0febc26d2105ba5d7989eab16a9e8b1bb245f8705d1fb9ddac?d=identicon)[nsams](/maintainers/nsams)

![](https://avatars.githubusercontent.com/u/1013756?v=4)[Franz Unger](/maintainers/fraxachun)[@fraxachun](https://github.com/fraxachun)

---

Top Contributors

[![nsams](https://avatars.githubusercontent.com/u/50764?v=4)](https://github.com/nsams "nsams (44 commits)")[![kaufmo](https://avatars.githubusercontent.com/u/1416828?v=4)](https://github.com/kaufmo "kaufmo (2 commits)")[![kornelski](https://avatars.githubusercontent.com/u/72159?v=4)](https://github.com/kornelski "kornelski (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

koala-frameworkkwfphpsourcemapsourcemaps

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/koala-framework-sourcemaps/health.svg)

```
[![Health](https://phpackages.com/badges/koala-framework-sourcemaps/health.svg)](https://phpackages.com/packages/koala-framework-sourcemaps)
```

###  Alternatives

[patricktalmadge/bootstrapper

Twitter Bootstrap markup generator

557407.2k4](/packages/patricktalmadge-bootstrapper)

PHPackages © 2026

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