PHPackages                             habanatech/business-model - 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. habanatech/business-model

AbandonedArchivedLibrary

habanatech/business-model
=========================

A package to group the diferent pieces of a common project

v1.0.7.3(5y ago)132MITPHPPHP &gt;=7.4.0

Since Mar 11Pushed 5y agoCompare

[ Source](https://github.com/habana-tech/business-model)[ Packagist](https://packagist.org/packages/habanatech/business-model)[ RSS](/packages/habanatech-business-model/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (10)Versions (12)Used By (0)

HabanaTech/BusinessModel
========================

[](#habanatechbusinessmodel)

A package to group the diferent pieces of a common project.

\##Install

```
composer require habanatech/business-model

```

Dynamic Metadata Field
----------------------

[](#dynamic-metadata-field)

Add a field to hold any metadata on an Entity at DB.

- Use the `HabanaTech\BusinessModel\ORM\Traits\MetadataFieldTrait` trait.

Dynamic translations
--------------------

[](#dynamic-translations)

Add a field to hold any translation as metadata on an Entity at DB.

- Use the `HabanaTech\BusinessModel\ORM\Traits\MetadataFieldTrait` trait.
- Use the `HabanaTech\BusinessModel\ORM\Traits\TranslationTrait` trait.
- Implement the `HabanaTech\BusinessModel\ORM\Interfaces\TranslationInterface` interface.

Use the `HabanaTech\BusinessModel\Form\MetadataTranslationType` type onyour forms and configure it example: `- { property: 'title', type: 'HabanaTech\BusinessModel\Form\MetadataTranslationType', type_options: { field: 'title'} }`

Add the Allowed languages as constants on your `services.yml`, example:

```
default_locale: en
locale: '%default_locale%'
app_locales: ch|en|fr|de|es

```

Optionally, use the form theme for bootstrap 4 `'@HabanaTech_BusinessModel\metadata_translation_bootstrap_4_layout.html.twig'`add to your `twig.yaml` file

```
paths:
    '%kernel.project_dir%/vendor/habanatech/business-model/BusinessModel/templates': HabanaTech_BusinessModel

```

To read, `$entity->translate('fr')` returns an array with the translated properties.

You'll need add the services:

```
HabanaTech\BusinessModel\Form\MetadataTranslationType:  ~ `
HabanaTech\BusinessModel\EventSubscriber\TranslationsSubscriber: ~`

```

Or you can add all the services:

```
HabanaTech\BusinessModel\:
    resource: '../vendor/habanatech/business-model/BusinessModel/*'
    exclude: '../vendor/habanatech/business-model/BusinessModel/{DependencyInjection,Entity,templates}'

```

Entities
--------

[](#entities)

**Image, FilterTag, DescriptionFragment**

These entities can be useful, remember add a listener to doctrine ORM for your relations [https://symfony.com/doc/current/doctrine/resolve\_target\_entity.html](https://symfony.com/doc/current/doctrine/resolve_target_entity.html)

example: in file doctrine.yaml

```
orm:
    resolve_target_entities:
        HabanaTech\BusinessModel\ORM\Entity\Image: App\Entity\Service

```

To adding all entities and ORM mapping

```
    orm:
    resolve_target_entities:
        BusinessModel:
            is_bundle: false
            type: annotation
            dir: '%kernel.project_dir%/vendor/habanatech/business-model/BusinessModel/ORM/Entity/'
            prefix: HabanaTech\BusinessModel\ORM\Entity
            alias: BusinessModel

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~35 days

Total

11

Last Release

2098d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dbad6f5bf385f7941183769796b40c00f5100ce703bae5dacd8cbc05068e3b8f?d=identicon)[jomiguilar](/maintainers/jomiguilar)

---

Top Contributors

[![josmiguel92](https://avatars.githubusercontent.com/u/3094343?v=4)](https://github.com/josmiguel92 "josmiguel92 (22 commits)")

### Embed Badge

![Health badge](/badges/habanatech-business-model/health.svg)

```
[![Health](https://phpackages.com/badges/habanatech-business-model/health.svg)](https://phpackages.com/packages/habanatech-business-model)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M650](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M309](/packages/easycorp-easyadmin-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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