PHPackages                             tada/template-entity - 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. [Templating &amp; Views](/categories/templating)
4. /
5. tada/template-entity

ActiveMagento2-module[Templating &amp; Views](/categories/templating)

tada/template-entity
====================

The template for creating Enity

00PHP

Since Jul 21Pushed 4y agoCompare

[ Source](https://github.com/tada-tech/tada-template-entity)[ Packagist](https://packagist.org/packages/tada/template-entity)[ RSS](/packages/tada-template-entity/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

tada-template-entity
====================

[](#tada-template-entity)

[![Container diagram for Template Entity](https://camo.githubusercontent.com/df36ed23c4d4fff46b59e9d20924855d7d24eadf9a376d89ec76f3f834d9bba9/687474703a2f2f7777772e706c616e74756d6c2e636f6d2f706c616e74756d6c2f706e672f444f6e313361385833304e74646138467945645572527a41584b5038736142574453525259756b5f63616163634e4531397942717a635955444f6834723769356e6465494a567761547145444c6f6f506b4a6c34614e38743058532d3842625550614350536b705579324e5a7663497a583465515f5f69664e5a505f)](https://camo.githubusercontent.com/df36ed23c4d4fff46b59e9d20924855d7d24eadf9a376d89ec76f3f834d9bba9/687474703a2f2f7777772e706c616e74756d6c2e636f6d2f706c616e74756d6c2f706e672f444f6e313361385833304e74646138467945645572527a41584b5038736142574453525259756b5f63616163634e4531397942717a635955444f6834723769356e6465494a567761547145444c6f6f506b4a6c34614e38743058532d3842625550614350536b705579324e5a7663497a583465515f5f69664e5a505f)

Template\_Entity
================

[](#template_entity)

Template for creating simple Entity.

Generate Schema Whitelist:

- bin/magento setup:db-declaration:generate-whitelist --module-name=Tada\_TemplateEntity

Test note:

- Require-dev: "mockery/mockery": "^0.9.9"
- Run Unit test: ./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist app/code/Tada/TemplateEntity/Test/Unit
- Run Integration test:
    - cd dev/tests/integration
    - ../../../vendor/bin/phpunit ../../../app/code/Tada/TemplateEntity/Test/Integration

Replace Instruction:

- Copy this module folder to another folder at the same vendor with name is &lt;ModuleName&gt;.
- Replacing in files of &lt;ModuleName&gt; folder :
    - TemplateEntity to &lt;ModuleName&gt; : replace module name, and namespace
    - Tada\_TemplateEntity to &lt;Vendor&gt;\_&lt;ModuleName&gt; : replace Registration's module name.
    - template\_entity to &lt;module\_name&gt; : replac $\_eventPrefix="template\_entity" in model class
    - tada\_template\_entity to &lt;vendor&gt;\_&lt;module\_name&gt; : replace table name
- Rename some files below:
    - Api folder:
        - Data/TemplateEntityInterface.php to Data/&lt;ModuleName&gt;Interface.php
        - TemplateEntityRepositoryInterface.php to &lt;ModuleName&gt;RepositoryInterface.php
    - Model folder:
        - TemplateEntity.php to &lt;ModuleName&gt;.php
        - TemplateEntityRepository.php to &lt;ModuleName&gt;Repository.php
        - ResourceModel/TemplateEntity.php to ResourceModel/&lt;ModuleName&gt;.php
        - Rename ResourceModel/TemplateEntity folder to ResourceModel/&lt;ModuleName&gt; folder
    - Test folder:
        - Integration folder:
            - rename TemplateEntityRepositoryTest.php to &lt;ModuleName&gt;RepositoryTest.php
            - rename TemplateEntityTest.php to &lt;ModuleName&gt;Test.php
        - Unit folder:
            - rename TemplateEntityRepositoryTest.php to &lt;ModuleName&gt;RepositoryTest.php
    - Replace name attribute in composer.json:
        - tada/template-entity to &lt;vendor&gt;/

Changelog
=========

[](#changelog)

- 1.0.0 Initial version

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e139a48d10690ae915238e3d813c45d614cdfc4ae69e2c812215cbe3ba1f484?d=identicon)[huy-tadatech](/maintainers/huy-tadatech)

---

Top Contributors

[![huy-tadatech](https://avatars.githubusercontent.com/u/84437109?v=4)](https://github.com/huy-tadatech "huy-tadatech (3 commits)")[![nghiadang-tada](https://avatars.githubusercontent.com/u/86757589?v=4)](https://github.com/nghiadang-tada "nghiadang-tada (3 commits)")

---

Tags

magento-template

### Embed Badge

![Health badge](/badges/tada-template-entity/health.svg)

```
[![Health](https://phpackages.com/badges/tada-template-entity/health.svg)](https://phpackages.com/packages/tada-template-entity)
```

###  Alternatives

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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