PHPackages                             imagina/ihelpers-module - 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. imagina/ihelpers-module

ActiveAsgard-module[Utility &amp; Helpers](/categories/utility)

imagina/ihelpers-module
=======================

10.0.0(2y ago)12.1k7[1 PRs](https://github.com/imagina/imaginacms-ihelpers/pulls)10MITPHPPHP ^8.1CI failing

Since May 18Pushed 1y ago2 watchersCompare

[ Source](https://github.com/imagina/imaginacms-ihelpers)[ Packagist](https://packagist.org/packages/imagina/ihelpers-module)[ RSS](/packages/imagina-ihelpers-module/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (4)Versions (20)Used By (10)

asgardcms-ihelpers
==================

[](#asgardcms-ihelpers)

Based in:  (For file cache redirections)

To activate the Cache System

Modify

```
// config/app.php

'providers' => [
    ...
    Modules\Ihelpers\Other\ImResponseCache\ImResponseCacheServiceProvider::class,
];
```

This package also comes with a facade.

```
// config/app.php

'aliases' => [
    ...
   'ResponseCache' => Modules\Ihelpers\Other\ImResponseCache::class,
];
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Modules\Ihelpers\Other\ImResponseCache\ImResponseCacheServiceProvider"
```

Command available to clear cache

```
php artisan pagecache:clear
```

### URL rewriting

[](#url-rewriting)

In order to serve the static files directly once they've been cached, you need to properly configure your web server to check for those static files.

- **For nginx:**

    Update your `location` block's `try_files` directive to include a check in the `page-cache` directory:

    ```
    location / {
        try_files $uri $uri/ /page-cache/$uri.html /index.php?$query_string;
    }
    ```
- **For apache:**

    Open `public/.htaccess` and add the following before the block labeled `Handle Front Controller`:

    ```
    # Serve Cached Page If Available...
    RewriteCond %{REQUEST_URI} ^/?$
    RewriteCond %{DOCUMENT_ROOT}/page-cache/pc__index__pc.html -f
    RewriteRule .? page-cache/pc__index__pc.html [L]
    RewriteCond %{DOCUMENT_ROOT}/page-cache%{REQUEST_URI}%{QUERY_STRING}.html -f
    RewriteRule . page-cache%{REQUEST_URI}.html [L]
    ```

### CUSTOM include and relationship features:

[](#custom-include-and-relationship-features)

You can set custom includes and relationships in any entity from any module as follows:

- **In Modules\\Imodule\\Config\\config.php:**

    ```
    'includes'=>[
        'EntityTransformer'=>[
          'otherEntity'=>[
            'path'=>'Modules\Iothermodule\Transformers\OtherEntityTransformer', //this is the transformer path
            'multiple'=>false, //if the relationship is one-to-many, multiple must be set to true
          ],
        ],
        ...
    ],
    'relations' =>[
      'entity'=>[
        'otherEntity' => function () {
          return $this->hasOne(
            \Modules\Iothermodule\Entities\OtherEntity::class, 'model_id');
        },
      ],
      ...
    ],
    ```
- **In Modules\\Imodule\\Entities\\Entity.php:**

    You must be use the trait for use the custom relations as follows:

    ```
    use Modules\Ihelpers\Traits\Relationable;
    class Entity extends Model{
      use Relationable;
    ```
- **In Modules\\Imodule\\Transformers\\EntityTransformer.php:**

    You must be use the trait for use the custom includes as follows:

    ```
      use Modules\Ihelpers\Traits\Transformeable;
      class EntityTransformer extends JsonResource{
        use Transformeable;
    ```

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~173 days

Recently: every ~555 days

Total

18

Last Release

381d ago

Major Versions

2.0 → 3.0.02017-09-27

3.1.1 → 10.0.02024-06-11

v8.x-dev → v10.x-dev2025-06-13

PHP version history (3 changes)2.0PHP &gt;=5.6

3.0.0PHP &gt;=7.0.0

10.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bc4bd5d733cfbe7e145670fbb1539bdb8d33f43c2cca4f26a119d37dfbad62f?d=identicon)[imagina](/maintainers/imagina)

---

Top Contributors

[![JCEC007](https://avatars.githubusercontent.com/u/7571125?v=4)](https://github.com/JCEC007 "JCEC007 (27 commits)")[![imagina](https://avatars.githubusercontent.com/u/758247?v=4)](https://github.com/imagina "imagina (23 commits)")[![ImaginaMarcsor](https://avatars.githubusercontent.com/u/39388591?v=4)](https://github.com/ImaginaMarcsor "ImaginaMarcsor (13 commits)")[![msolanogithub](https://avatars.githubusercontent.com/u/38920570?v=4)](https://github.com/msolanogithub "msolanogithub (11 commits)")[![CristianMarin19](https://avatars.githubusercontent.com/u/54483189?v=4)](https://github.com/CristianMarin19 "CristianMarin19 (6 commits)")[![msolanoimagina](https://avatars.githubusercontent.com/u/121646384?v=4)](https://github.com/msolanoimagina "msolanoimagina (4 commits)")[![odchunzag](https://avatars.githubusercontent.com/u/43626463?v=4)](https://github.com/odchunzag "odchunzag (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/imagina-ihelpers-module/health.svg)

```
[![Health](https://phpackages.com/badges/imagina-ihelpers-module/health.svg)](https://phpackages.com/packages/imagina-ihelpers-module)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[mautic/core

Mautic Open Source Distribution

9.8k2.6k9](/packages/mautic-core)[mediawiki/maps

Adds various mapping features to MediaWiki

78149.7k3](/packages/mediawiki-maps)[rainlab/blog-plugin

Blog plugin for October CMS

17158.6k](/packages/rainlab-blog-plugin)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19246.3k2](/packages/civicrm-civicrm-drupal-8)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3355.8k](/packages/starcitizentools-citizen-skin)

PHPackages © 2026

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