PHPackages                             gettonline/pipeit - 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. gettonline/pipeit

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

gettonline/pipeit
=================

The missing pipe operator for PHP 7 and up

1.0.0(4y ago)41MITPHPPHP ^7

Since Jul 29Pushed 4y agoCompare

[ Source](https://github.com/gettonline/pipeit)[ Packagist](https://packagist.org/packages/gettonline/pipeit)[ RSS](/packages/gettonline-pipeit/feed)WikiDiscussions master Synced 6d ago

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

Pipe IT (pipe operator)
=======================

[](#pipe-it-pipe-operator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5177a710a725400944aaf8539710a0fe533dae5866660e5cea1914f6d21f4db3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676574746f6e6c696e652f7069706569742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gettonline/pipeit)[![GitHub Tests Action Status](https://camo.githubusercontent.com/263366e919db7637815a6b9429c1d6555b5ee28349534b4e9663b8417824325f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f676574746f6e6c696e652f7069706569742f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/gettonline/pipeit/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f6b54234844d7847d91bbb00f3ee8b2f80d65592047926f229fce061959be8b6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f676574746f6e6c696e652f7069706569742f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/gettonline/pipeit/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/66a8f3b3bb7e23477ad5408186b7b66fcfa63c8a23ba8a5f57ee058832b6fa6a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676574746f6e6c696e652f7069706569742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gettonline/pipeit)

The missing pipe operator for PHP 7 and up.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require gettonline/pipeit
```

Usage
-----

[](#usage)

### Simple

[](#simple)

```
pipe('foo bar')
    ->strtoupper()
    ->value

// FOO BAR
```

### With value on a different position

[](#with-value-on-a-different-position)

Not all functions require the value as the first argument, with `PIPE_IT` you can move the value argument.

```
pipe('  hello there')
    ->trim()
    ->str_replace('there', 'world', PIPE_IT)
    ->ucwords()
    ->value

// Hello World
```

### With a closures

[](#with-a-closures)

```
pipe('gettonline.com')
    (function ($v) {
        return 'https://' . $v;
    })
    ->value

// https://gettonline.com
```

### Automatically cast to string

[](#automatically-cast-to-string)

```
print pipe([1,2,3])
    ->array_sum()

// 6
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Thijs Simonis](https://github.com/gett-thijssimonis)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

1753d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0feb4f0feca1c1205d0372e71a5ceafe2b1f7a416270058309df88276ebb834c?d=identicon)[gett-thijssimonis](/maintainers/gett-thijssimonis)

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/gettonline-pipeit/health.svg)

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

###  Alternatives

[nowendwell/laravel-terms

A tool for adding terms and conditions to your project

2517.6k](/packages/nowendwell-laravel-terms)[soul/address-parse

收货地址解析，成功率99%以上，支持（身份证号，电话，座机，区号，省市区街道地址)

405.4k](/packages/soul-address-parse)

PHPackages © 2026

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