PHPackages                             thelia/thelia-library-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. thelia/thelia-library-module

ActiveThelia-module

thelia/thelia-library-module
============================

Add a media library to Thelia

1.3.1(1y ago)014.5k↑115.8%10[1 issues](https://github.com/thelia-modules/TheliaLibrary/issues)4LGPL-3.0-or-laterPHPCI failing

Since May 16Pushed 1mo ago6 watchersCompare

[ Source](https://github.com/thelia-modules/TheliaLibrary)[ Packagist](https://packagist.org/packages/thelia/thelia-library-module)[ RSS](/packages/thelia-thelia-library-module/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (37)Used By (4)

Thelia Library
==============

[](#thelia-library)

Add a media library on Thelia.

### Composer

[](#composer)

Add it in your main thelia composer.json file

```
composer require thelia/thelia-library-module:~1.0.0

```

Usage
-----

[](#usage)

For now this module doesn't have an interface, only an api documented on {your\_website\_url}/open\_api/doc

**Using Plugins**
-----------------

[](#using-plugins)

You can use the `getImages` and `getImagesData` plugins. Both of them are available with Smarty and Twig. Use this plugins instead the traditional loop (in case you have to deal with smarty).

- `getImagesData` return an array of processed images, depends of your liip\_imagine configuration.
- `getImages` use the same service that `getImagesData` and render image(s) in a html tag

Here’s the params :

ParamRequiredDescriptionExempleimg\_idfalseif you have the id of the current image, you can use this param with `source_type`/source\_typetruesourcecontent, product, category, library, page or foldersource\_idfalseThe identifier of the object provided in the "source" parameter/*filters*truethe liip\_imagine filter’ identifier you want to use on the imagecould be a simple value like `product_filter` or a array, if you want to render several images in a picture html tag `*filters=*['1440px' =>'hero_large_desktop', 'default' => 'hero_default'`img\_attrsfalse/`img_attrs=['width' => '768px','height' => '660px','class' => "test-class-img"]`altfalsestring to render as alt an title attribute. If you have a alt entry in your `img_attrs` this one will be overrided./wrapperfalseAn html wrapper tag for the rendered image. If filterscount &gt; 1, image will be wrapped by a picture html tag.wrapper\_attrsfalsehtml attributes for wrapper`wrapper_attrs=['class' => "test-class-picture"]`img\_stylefalsecss propreties rended in the image style attribute`img_style=['display' => 'block','margin' => '10px']`placeholderfalsefallback image to return. if no set, plugin will return `null``{encore_manifest_file *file=*"dist/images/placeholder.webp"}`positionfalseposition of the image1limitfalselimited number of result1offsetfalse/1containerAn html wrapper tag for wrappe the list of rendered images/ul, div, sectioncontainer\_attrssame as wrapper\_attrs/`container_attrs=['class' => "test-class-container"]`Here’s the exemple :

```
{getImages
  source_type="content"
  source_id=2
  filters=[
    '1440px' => 'hero_large_desktop',
    '1280px' => 'hero_small_desktop',
    '1024px' => 'hero_tablette',
    '768px' => 'hero_mobile',
    'default' => 'hero_default'
  ]
  img_attrs=[
    'width' => '768px',
    'height' => '660px',
    'class' => "test-class-img"
  ]
  wrapper="picture"
  wrapper_attrs=[
    'class' => "test-class-picture"
  ]
  img_style=[
    'display' => 'block'
  ]
  limit=1
  placeholder={encore_manifest_file file="dist/images/placeholder.webp"}
}
```

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance71

Regular maintenance activity

Popularity29

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~85 days

Total

28

Last Release

391d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2196919?v=4)[thelia](/maintainers/thelia)[@thelia](https://github.com/thelia)

---

Top Contributors

[![Lucanis](https://avatars.githubusercontent.com/u/6052481?v=4)](https://github.com/Lucanis "Lucanis (35 commits)")[![lopes-vincent](https://avatars.githubusercontent.com/u/6057206?v=4)](https://github.com/lopes-vincent "lopes-vincent (34 commits)")[![Neox63](https://avatars.githubusercontent.com/u/60252816?v=4)](https://github.com/Neox63 "Neox63 (10 commits)")[![robinallezard](https://avatars.githubusercontent.com/u/32717550?v=4)](https://github.com/robinallezard "robinallezard (5 commits)")[![leanormandon](https://avatars.githubusercontent.com/u/30038624?v=4)](https://github.com/leanormandon "leanormandon (2 commits)")[![zawaze](https://avatars.githubusercontent.com/u/37273643?v=4)](https://github.com/zawaze "zawaze (2 commits)")[![ArthurLashermes](https://avatars.githubusercontent.com/u/76913541?v=4)](https://github.com/ArthurLashermes "ArthurLashermes (1 commits)")

### Embed Badge

![Health badge](/badges/thelia-thelia-library-module/health.svg)

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

###  Alternatives

[sylius/sylius

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

8.4k5.6M651](/packages/sylius-sylius)[sylius/core-bundle

Sylius core bundle. It integrates all other bundles into full stack Symfony ecommerce solution.

22100.0k46](/packages/sylius-core-bundle)

PHPackages © 2026

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