Download the PHP package in2code/imager without Composer

On this page you can find all versions of the php package in2code/imager. 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 imager

Imager - AI generated images in TYPO3 with Google Gemini (Nano Banana)

Table of Contents

Introduction

This allows editors to generate AI-generated images directly in the TYPO3 backend. This works using Google Gemini (with Nano Banana).

Example photo from Gemini:

Example backend integration:

Example graphic in frontend:

Google Gemini with Nano Banana

Installation

After that, you have to set some initial configuration in Extension Manager configuration:

Title Default value Description
promptPlaceholder LLL:EXT:imager/Resources/Private/Language/Backend/locallang.xlf:prompt.placeholder LLL path to a label for placeholder for prompt field in backend
promptValue LLL:EXT:imager/Resources/Private/Language/Backend/locallang.xlf:prompt.value LLL path for a default value for prompt field in backend
promptPrefix - Prefix text that should be always added to the prompt at the beginning
combinedIdentifier 1:/_imager/ Define where to store new ai generated images
aspectRatio 16:9 Default ratio for new ai images. Must be one of this values: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
geminiModel - Gemini model. If empty the default model gemini-3-pro-image:generateContent is used. Add a specific model or use the GOOGLE_GEMINI_MODEL environment variable instead
apiKey - Google Gemini API key. You can let this value empty and simply use ENV_VAR "GOOGLE_API_KEY" instead if you want to use CI pipelines for this setting

Note: It's recommended to use ENV vars for in2code/imager instead of saving the API-Key in Extension Manager configuration

Extendability

There are some events in EXT:imager that can be used to

Custom LLM Integration (like DALL-E, Stable Diffusion, Midjourney, etc.)

Imager uses a factory pattern to allow custom LLM providers. By default, it uses Google Gemini, but you can easily integrate other AI services (OpenAI DALL-E, Stable Diffusion, Midjourney, etc.).

Implementing a Custom LLM Repository

  1. Create a custom repository class implementing RepositoryInterface - see example for OpenAI DALL-E:

  2. Register your custom repository in ext_localconf.php:

  3. Don't forget to:
    • Register your Repository in your Services.yaml
    • Set the required API key (e.g., OPENAI_API_KEY environment variable)
    • Flush TYPO3 caches after registration

Hint: The AbstractRepository base class provides methods for file storage, folder management, and temporary file handling, so you only need to implement the image generation logic specific to your LLM provider.

Changelog and breaking changes

Version Date State Description
2.1.0 2026-07-05 Feature Make model overwritable via extension configuration or ENV variable
2.0.1 2026-02-02 Task Add funding section to composer.json file
2.0.0 2026-01-01 Feature Support overruling of LlmRepository with a custom repository
1.4.0 2025-12-07 Feature Support TYPO3 14
1.3.0 2025-12-04 Feature Add ddev as local environment
1.2.0 2025-11-29 Feature Add event to manipulate the rendered button in the backend
1.1.0 2025-11-27 Task Add extension icon
1.0.0 2025-11-27 Task Initial release of in2code/imager

Contribution with ddev

This repository provides a DDEV-backed development environment. If DDEV is installed, simply run the following commands to quickly set up a local environment with example usages:

Backend Login:

Installation hint:

  1. Install ddev before, see: https://ddev.readthedocs.io/en/stable/#installation
  2. Install git-lfs before, see: https://git-lfs.github.com/
  3. You can add the gemini API key in .ddev/.env:

All versions of imager with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2.0
typo3/cms-core Version ^13.4 || ^14.0
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 in2code/imager contains the following files

Loading the files please wait ...