PHPackages                             pt1602/getproductbyid - 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. pt1602/getproductbyid

ActiveShopware-platform-plugin[Templating &amp; Views](/categories/templating)

pt1602/getproductbyid
=====================

PT1602 getProductByID(id, context)

0.0.1(3y ago)312MITPHP

Since Mar 7Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/pt1602/ShopwareGetProductById)[ Packagist](https://packagist.org/packages/pt1602/getproductbyid)[ RSS](/packages/pt1602-getproductbyid/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

[![PHP](https://camo.githubusercontent.com/4d14a64c5e25601652d523c5b6354fa9735ffed4cdcee7ebcec69171bb18aba8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d2d626c75653f6c6f676f3d706870266c6f676f436f6c6f723d666666)](https://www.php.net/)[![Maintenance](https://camo.githubusercontent.com/27e64f1921cdc160bdbda7138686f9c0867ca688664c5303cc1b718c54cf655a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d61696e7461696e65642533462d7965732d626c75652e737667)](https://github.com/pt1602/ShopwareGetProductById/graphs/commit-activity)[![github forks](https://camo.githubusercontent.com/030c6688c4c96ce475e1678a6a2785241129037cd07a502412da232b05cbc665/68747470733a2f2f62616467656e2e6e65742f6769746875622f666f726b732f7074313630322f53686f707761726547657450726f64756374427949642f)](https://github.com/pt1602/ShopwareGetProductById/network/)[![PRs Welcome](https://camo.githubusercontent.com/34333459bb5580902d0eb612e850249dc0418004e857ccd46c5b4aa87f7742f5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d626c75652e737667)](http://makeapullrequest.com)[![github stars](https://camo.githubusercontent.com/718217211cfd4b693675d9a4cee3597a08cd4a37dba08740cb075221ae49e745/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7074313630322f53686f707761726547657450726f64756374427949642e7376673f7374796c653d736f6369616c266c6162656c3d53746172266d61784167653d32353932303030)](https://github.com/pt1602/ShopwareGetProductById/stargazers/)

---

Twig *getProductByID*-Function for Shopware 6
=============================================

[](#twig-getproductbyid-function-for-shopware-6)

A simple Shopware 6 plugin which adds a twig function to get the all about information about the product when you only got the id.

**This plugin is only a demo for quick tests.**

---

Installation
------------

[](#installation)

### Git

[](#git)

Clone this repository into custom/plugins of your Shopware 6 installation.

```
git clone https://github.com/pt1602/ShopwareGetProductById.git
```

### Composer

[](#composer)

```
composer require pt1602/getproductbyid
```

Example
-------

[](#example)

```
{{ getProductByID('86da6b3c52064b928ee19c2cab2698be', context).name|raw }}
```

---

[![MIT license](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://lbesson.mit-license.org/)[![Open Source? Yes!](https://camo.githubusercontent.com/33dfddb9625820bb8277bc598e5aae0c2e4c3e8f5bd0c0c958ae28502e4250bc/68747470733a2f2f62616467656e2e6e65742f62616467652f4f70656e253230536f757263652532302533462f5965732532312f626c75653f69636f6e3d676974687562)](https://camo.githubusercontent.com/33dfddb9625820bb8277bc598e5aae0c2e4c3e8f5bd0c0c958ae28502e4250bc/68747470733a2f2f62616467656e2e6e65742f62616467652f4f70656e253230536f757263652532302533462f5965732532312f626c75653f69636f6e3d676974687562)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1159d ago

### Community

Maintainers

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

---

Top Contributors

[![pt1602](https://avatars.githubusercontent.com/u/57329320?v=4)](https://github.com/pt1602 "pt1602 (9 commits)")

---

Tags

getproductbyidpluginshopwaretwigshopware-platform-pluginpt1602getproductbyid

### Embed Badge

![Health badge](/badges/pt1602-getproductbyid/health.svg)

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

###  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)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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