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 2mo ago

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 37% 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

2440d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1d737ae01ccc67b63f77770a9fd18a6ef6aaaa47196242ec141d1240f0f1788?d=identicon)[iWedmak](/maintainers/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

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)

PHPackages © 2026

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