PHPackages                             cyvelnet/laravel5-inputpipe - 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. cyvelnet/laravel5-inputpipe

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

cyvelnet/laravel5-inputpipe
===========================

A simple way to format user input for laravel 5

v1.0.0(10y ago)2151MITPHPPHP &gt;=5.5.9

Since Oct 25Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Cyvelnet/Laravel5-InputPipes)[ Packagist](https://packagist.org/packages/cyvelnet/laravel5-inputpipe)[ RSS](/packages/cyvelnet-laravel5-inputpipe/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Laravel5-InputPipes
===================

[](#laravel5-inputpipes)

[![Build Status](https://camo.githubusercontent.com/f62b90842b5b42a1923386ae38555f535c70fcddacad1f951f9389264fd23657/68747470733a2f2f7472617669732d63692e6f72672f437976656c6e65742f4c61726176656c352d496e70757450697065732e737667)](https://travis-ci.org/Cyvelnet/Laravel5-InputPipes)[![Latest Stable Version](https://camo.githubusercontent.com/a1baaf6f3917f3483672103cc612db1c7b4bb8abe926051d5c0fce834034cff6/68747470733a2f2f706f7365722e707567782e6f72672f637976656c6e65742f6c61726176656c352d696e707574706970652f762f737461626c65)](https://packagist.org/packages/cyvelnet/laravel5-inputpipe)[![Latest Unstable Version](https://camo.githubusercontent.com/58c651ac13cd24d614096277410303a7a3b547f4e2d86d958e09c8cce2497e83/68747470733a2f2f706f7365722e707567782e6f72672f637976656c6e65742f6c61726176656c352d696e707574706970652f762f756e737461626c65)](https://packagist.org/packages/cyvelnet/laravel5-inputpipe)[![License](https://camo.githubusercontent.com/47cecb4b0af7aad7619be123833241d3a0a6a2ae9177b35f8b28914dbdb2fcff/68747470733a2f2f706f7365722e707567782e6f72672f637976656c6e65742f6c61726176656c352d696e707574706970652f6c6963656e7365)](https://packagist.org/packages/cyvelnet/laravel5-inputpipe)

We all face the problems when user submit a form, and all these form data is a mess, sometime we even wanted to trim the inputs, cast them, and reformat them, in fact it is not the hardest thing in the world, but these small tasks really make our code look lengthy, and InputPipes comes into play.

`$inputs = Pipe::make(Input::all(), ['email' => 'trim|lower', 'name' => 'trim|ucword'])->get();`

This single line of code simply the time we spend on formatting input.

Require this package with composer with the following command:

`composer require cyvelnet/laravel5-inputpipe`

Add the ServiceProvider to the providers array in config/app.php

`Cyvelnet\InputPipe\InputPipeServiceProvider::class`

and register Facade

`Cyvelnet\InputPipe\Facades\PipeFacade::class`

##### Available Pipes

[](#available-pipes)

- trim
- snake (snake case)
- camel (camel case)
- lower (lower case)
- upper (upper case)
- ucword
- slug
- ... and more coming soon or a PR to add general pipes

##### Extend functionality

[](#extend-functionality)

Sometime we wanted to add some logic which is currently not provided or not a general scope, no worry you can extend it to match you usage

`Pipe::extend('sample', function ($data, $parameters) { return $data; }); `

The above scenario is perfectly fine, if only a small number of extra functionality to add on. When extensions get crowded, it is better to organize them into class.

```
class CustomPipes extends \Cyvelnet\InputPipe\Pipes {
     public function pipeFoo ($data, $parameters) {
         // process your logic;
     }
     public function pipeBar($data, $parameters) {
         // process another logic;
     }
}
```

Then register you class with

`Pipe::extra(function($data, $pipes) { return new CustomPipes($data, $pipes); }); `

Finally trigger your pipes

`$inputs = Pipe::make(Input::only('foo', 'bar'), ['foo', 'bar'])->get();`

### To Do

[](#to-do)

- Laravel5 FormRequest like class to store the rules ?

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

3859d ago

### Community

Maintainers

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

---

Top Contributors

[![Cyvelnet](https://avatars.githubusercontent.com/u/11516087?v=4)](https://github.com/Cyvelnet "Cyvelnet (28 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cyvelnet-laravel5-inputpipe/health.svg)

```
[![Health](https://phpackages.com/badges/cyvelnet-laravel5-inputpipe/health.svg)](https://phpackages.com/packages/cyvelnet-laravel5-inputpipe)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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