PHPackages                             mapsight/pulp - 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. mapsight/pulp

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

mapsight/pulp
=============

Core library providing the stream-based processing engine.

v1.0.1(2w ago)0147proprietaryPHPPHP ^8.2

Since May 22Pushed 2w agoCompare

[ Source](https://github.com/open-mapsight/pulp)[ Packagist](https://packagist.org/packages/mapsight/pulp)[ Docs](https://github.com/open-mapsight/mapsight-pulp)[ RSS](/packages/mapsight-pulp/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (7)Versions (3)Used By (7)

Pulp
====

[](#pulp)

Stream-based file processing library for PHP, inspired by Gulp.

Features
--------

[](#features)

- **Stream-based processing:** Handle files through a pipeline of handlers.
- **Fluent API:** Easily chain operations with a simple and intuitive syntax.
- **Extensible:** Create custom handlers or use format-specific packages.
- **File globbing:** Support for multiple glob patterns to select source files.

API
---

[](#api)

### Pulp::start()

[](#pulpstart)

a shortcut for `new Pulp()`

### Pulp::src($patterns)

[](#pulpsrcpatterns)

- string|array&lt; string &gt; *$patterns* one or more glob patterns or file paths

Adds a new File object for every matching file

### Pulp::dest($directory)

[](#pulpdestdirectory)

- string *$directory* target directory

Writes all File objects into the *$directory* target directory

### Pulp::map($callback)

[](#pulpmapcallback)

- callable(File) *$callback* will be called for every File object. The File object is passed as the first argument to the callback. The callback should **return** a File object or null. The File object will be passed to the next handler. In case of a null the File will be dropped.

### Pulp::merge($pulps...)

[](#pulpmergepulps)

- Pulp *$pulps*Merges two or more Pulp streams together.

### Pulp::shadow($callback)

[](#pulpshadowcallback)

- callable(Pulp $pulp) *$callback*

Creates a "shadow" Pulp stream and pass it to the callback. Every File in the stream can be modified without affecting the main stream.

### Pulp::results($callback)

[](#pulpresultscallback)

- callable(array&lt; File &gt;) *$callback*

Waits until the stream ends and pass an array with all Files to $callback.

### Pulp::fileSwitch($patterns, $defaultCb)

[](#pulpfileswitchpatterns-defaultcb)

- hash&lt; string, callable(Pulp $pulp) &gt; *$patterns*
- callable *$defaultCb*

```
->pipe(Pulp::fileSwitch(
	array(
		'*.php' => function($p) {
			//...
		},
		'*.js' => function($p) {
			//...
		}
	),
	function($p) {
		// default
	}
))

```

Examples
--------

[](#examples)

```
use \OpenMapsight\Pulp;

Pulp::start()
	->pipe(Pulp::src('mydir/*.txt'))
	->pipe(Pulp::map(function($f) {
		$f->content .= 'fo';
		return $f;
	}))
	->pipe(Pulp::dest('myotherdir'))
	->run();

```

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance97

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.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 ~3 days

Total

2

Last Release

15d ago

### Community

Maintainers

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

---

Top Contributors

[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")[![pjeweb](https://avatars.githubusercontent.com/u/684458?v=4)](https://github.com/pjeweb "pjeweb (1 commits)")

---

Tags

streamprocessingenginemapsightpulp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mapsight-pulp/health.svg)

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.7k532.1M19.2k](/packages/laravel-framework)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

744284.3k34](/packages/civicrm-civicrm-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M506](/packages/shopware-core)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[illuminate/collections

The Illuminate Collections package.

27075.6M1.0k](/packages/illuminate-collections)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21764.8M1.6k](/packages/drupal-core)

PHPackages © 2026

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