PHPackages                             iwedmak/helper - 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. iwedmak/helper

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

iwedmak/helper
==============

Some personal helpfull functons

0.0.5(6y ago)0204[1 issues](https://github.com/iWedmak/laravel-5-helper/issues)1MITPHPPHP &gt;=5.5.0

Since Feb 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/iWedmak/laravel-5-helper)[ Packagist](https://packagist.org/packages/iwedmak/helper)[ RSS](/packages/iwedmak-helper/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (6)Used By (1)

laravel-5-helper
================

[](#laravel-5-helper)

**FormatResponce**

To return json or html on same route. Register Middleware, add this to app/Http/Kernel.php in middlewareGroups array in web, as last one of them:

```
iWedmak\Helper\Middleware\FormatResponce::class,
```

now you can return array from your controllers this way:

```
return ['data'=>$data, 'view'=>'someview'];
```

check looks like that:

```
$response = $next($request);
try
{
    if (method_exists($response, 'getOriginalContent'))
    {
        $data = $response->getOriginalContent();
        if(isset($data['data']) && !empty($data['data']))
        {
            if ($request->wantsJson())
            {
                $response=response()->json($data['data']);
                $response->header('Content-Length',mb_strlen($response->getContent()));
            }
            else
            {
                $response=response()->view($data['view'], $data['data']);
            }
        }
    }

}
catch(BadMethodCallException $e)
{

}
return $response;
```

**xCache**

Register provider, add this to config/app.php in providers array:

```
iWedmak\Helper\Providers\CacheServiceProvider::class,
```

Register xcache driver, add this to config/cache.php in stores array:

```
'xcache' => [
    'driver' => 'xcache',
],

```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Every ~232 days

Total

5

Last Release

2487d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/994005?v=4)[iWedmak Om](/maintainers/iWedmak)[@iWedmak](https://github.com/iWedmak)

---

Top Contributors

[![iWedmak](https://avatars.githubusercontent.com/u/994005?v=4)](https://github.com/iWedmak "iWedmak (15 commits)")

---

Tags

laravelxcachemate

### Embed Badge

![Health badge](/badges/iwedmak-helper/health.svg)

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

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.2k](/packages/unopim-unopim)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[creasi/laravel-nusa

A Laravel package that aim to provide Indonesia' Administrative Data

997.7k2](/packages/creasi-laravel-nusa)[team-nifty-gmbh/tall-datatables

Server-side rendered datatables for Laravel and Livewire

1319.7k3](/packages/team-nifty-gmbh-tall-datatables)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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