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. [Image &amp; Media](/categories/media)
4. /
5. thelia/thelia-library-module

ActiveThelia-module[Image &amp; Media](/categories/media)

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

Add a media library to Thelia

1.4.0(2mo ago)016.7k—4.9%10[1 issues](https://github.com/thelia-modules/TheliaLibrary/issues)4LGPL-3.0-or-laterPHPCI passing

Since May 16Pushed 2w 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 today

READMEChangelog (10)Dependencies (8)Versions (38)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

55

—

FairBetter than 97% of packages

Maintenance92

Actively maintained with recent releases

Popularity30

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

Recently: every ~108 days

Total

29

Last Release

74d 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)")[![zawaze](https://avatars.githubusercontent.com/u/37273643?v=4)](https://github.com/zawaze "zawaze (3 commits)")[![leanormandon](https://avatars.githubusercontent.com/u/30038624?v=4)](https://github.com/leanormandon "leanormandon (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.5k5.9M738](/packages/sylius-sylius)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[kunstmaan/media-bundle

To build your perfect website you probably need images, video's or maybe even a presentation too. The Kunstmaan Media Bundle handles all those media assets and centralizes them so you can find your content just the way you like it: fast and efficiently. No central asset management module is useful without some pretty advanced image editing functionality. To provide this we have integrated the Aviary image editing service right from the interface.

41134.7k7](/packages/kunstmaan-media-bundle)[sylius/core-bundle

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

22111.4k69](/packages/sylius-core-bundle)[agence-adeliom/easy-media-bundle

A Symfony Media manager bundle for EasyAdmin

3017.9k2](/packages/agence-adeliom-easy-media-bundle)

PHPackages © 2026

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