PHPackages                             erenkucukersoftware/powerful-php - 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. erenkucukersoftware/powerful-php

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

erenkucukersoftware/powerful-php
================================

⚡ Laravel Helpers, Collections and Js like object oriented chaining for Native PHP

v1.0.0(4y ago)525MITPHP ^7.4|^8.0

Since Jun 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/erenkucukersoftware/powerful-php)[ Packagist](https://packagist.org/packages/erenkucukersoftware/powerful-php)[ RSS](/packages/erenkucukersoftware-powerful-php/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (22)Versions (2)Used By (0)

Welcome to Powerful PHP 🦾
=========================

[](#welcome-to-powerful-php-)

 [ ![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667) ](https://opensource.org/licenses/MIT) [ ![Twitter: yerenkucuker](https://camo.githubusercontent.com/6d1dd2f44f4af5827aa09a1715f3baba332652750d9f59550572e429db40410c/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f796572656e6b7563756b65722e7376673f7374796c653d736f6369616c) ](https://twitter.com/yerenkucuker)

> ⚡ Laravel Helpers, Collections and Js like object oriented chaining for Native PHP

Install
-------

[](#install)

```
composer require erenkucukersoftware/powerful-php
```

🚀 Usage
-------

[](#-usage)

### Object Oriented Chaining

[](#object-oriented-chaining)

#### Example 1 :

[](#example-1-)

##### Functional Approach

[](#functional-approach)

```
$snakeCase = strtolower(
    preg_replace('/(.)(?=[A-Z])/u', '$1_',
        preg_replace('/\s+/u', '',
            ucwords('HelloWorld')
        )
    )
);

var_dump($snakeCase); // "hello_world"
```

##### Object Oriented Approach

[](#object-oriented-approach)

```
//powerfulphp

$snakeCase =
    pipe('Hello World')
    ->ucwords(_)
    ->preg_replace('/\s+/u', '', _)
    ->preg_replace('/(.)(?=[A-Z])/u', '$1_', _)
    ->strtolower(_)
    ->var_dump;
//
// string(11) "hello_world"
//
```

#### Example 2 :

[](#example-2-)

##### Passing Value Between Pipes

[](#passing-value-between-pipes)

To pass a value as an argument to a function, use the underscore (\_) character :

```
pipe('hello')
    ->str_replace('o', '', _)
    ->var_dump; // "hell"
```

#### Example 3 :

[](#example-3-)

##### One Parameter Usage

[](#one-parameter-usage)

You can omit parentheses if only one argument is used:

```
pipe('some')
    ->is_array
    ->dd; // bool(false)
```

#### Example 4 :

[](#example-4-)

##### Values

[](#values)

```
$context = pipe('hello')->strtoupper;

var_dump($context);
// object(Fun\Pipe\Pipe)#8 (1) { ... }

var_dump($context());
// string(5) "HELLO"
```

#### Example 5 :

[](#example-5-)

##### Namespaces

[](#namespaces)

Calling single function from namespace

```
pipe()
    ->use('Some\\Namespace')->foo // Call "\Some\Namespace\foo()"
    ->foo // Call "\foo()"
;
```

Calling multiple function from namespace

```
pipe()
    ->use('Some\\Namespace', fn($pipe) =>
        $pipe
            ->a // Call "\Some\Namespace\a()"
            ->b // Call "\Some\Namespace\b()"
    )
    ->a // Call "a()"
;
```

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

[](#contributing)

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

Author
------

[](#author)

👤 **Eren Küçüker**

- Website: [www.erenkucuker.com](http://www.erenkucuker.com)
- Twitter: [@yerenkucuker](https://twitter.com/yerenkucuker)
- Github: [@erenkucukersoftware](https://github.com/erenkucukersoftware)
- LinkedIn: [@yunus-eren-küçüker-609716168](https://linkedin.com/in/yunus-eren-k%C3%BC%C3%A7%C3%BCker-609716168)

Show your support
-----------------

[](#show-your-support)

Give a ⭐️ if this project helped you!

[ ![](https://camo.githubusercontent.com/56529e692201ddc4f9a8911f23e3d9cc7e9e7536b2c99114d4971f185eaaa6be/68747470733a2f2f63352e70617472656f6e2e636f6d2f65787465726e616c2f6c6f676f2f6265636f6d655f615f706174726f6e5f627574746f6e4032782e706e67)](https://www.patreon.com/erenkucuker)📝 License
---------

[](#-license)

Copyright © 2021 [Eren Küçüker](https://github.com/erenkucukersoftware).
This project is [MIT](https://opensource.org/licenses/MIT) licensed.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

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

1793d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/651a524505bd2b0480474f36f0147579e63453c141f494e68448306f6ba19b42?d=identicon)[erenka](/maintainers/erenka)

---

Tags

helper-functionslaravellaravel-frameworknative-phpphppipeline

### Embed Badge

![Health badge](/badges/erenkucukersoftware-powerful-php/health.svg)

```
[![Health](https://phpackages.com/badges/erenkucukersoftware-powerful-php/health.svg)](https://phpackages.com/packages/erenkucukersoftware-powerful-php)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)

PHPackages © 2026

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