Download the PHP package thelia/thelia-library-module without Composer

On this page you can find all versions of the php package thelia/thelia-library-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package thelia-library-module

Thelia Library

Add a media library on Thelia.

Composer

Add it in your main thelia composer.json file

Usage

For now this module doesn't have an interface, only an api documented on {your_website_url}/open_api/doc

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).

Here’s the params :

Param Required Description Exemple
img_id false if you have the id of the current image, you can use this param with source_type /
source_type true source content, product, category, library, page or folder
source_id false The identifier of the object provided in the "source" parameter /
filters true the liip_imagine filter’ identifier you want to use on the image could 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_attrs false / img_attrs=['width' => '768px','height' => '660px','class' => "test-class-img"]
alt false string to render as alt an title attribute. If you have a alt entry in your img_attrs this one will be overrided. /
wrapper false An html wrapper tag for the rendered image. If filters count > 1, image will be wrapped by a picture html tag. “picture” or “figure” or “div” ex.
wrapper_attrs false html attributes for wrapper wrapper_attrs=['class' => "test-class-picture"]
img_style false css propreties rended in the image style attribute img_style=['display' => 'block','margin' => '10px']
placeholder false fallback image to return. if no set, plugin will return null {encore_manifest_file *file=*"dist/images/placeholder.webp"}
position false position of the image 1
limit false limited number of result 1
offset false / 1
container An html wrapper tag for wrappe the list of rendered images / ul, div, section
container_attrs same as wrapper_attrs / container_attrs=['class' => "test-class-container"]

Here’s the exemple :


All versions of thelia-library-module with dependencies

PHP Build Version
Package Version
Requires thelia/installer Version ~1.3
thelia/open-api-module Version ^2.1.1
liip/imagine-bundle Version ^2.9
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package thelia/thelia-library-module contains the following files

Loading the files please wait ....