Download the PHP package fork/craft-altify without Composer

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

Alt text generator plugin for Craft CMS

Generates alt texts for images using different services that can be chosen from.

Requirements

This plugin requires Craft CMS 4.5.0 or later, and PHP 8.0.2 or later.

In order to use an alt text generator service, you'll need an api key or other credentials depending on the authentication method used.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “alt”. Then press “Install”.

With Composer

Open your terminal and run the following commands:

Usage

By default, this plugin uses the BLIP Model via Hugging Face Inference API. You will need an API Key to be able to use it. It is receommended to set it via ENV variable, but it is also possible to set it directly in the plugin's settings.

In order to use another model, go to the plugin settings and choose one of those available. You can also set the model via ENV variable. This can be a class name, or one of the following names.

Out-of-the-box Available models

Model name Link
BLIP (large) https://huggingface.co/Salesforce/blip-image-captioning-large
BLIP (base) https://huggingface.co/Salesforce/blip-image-captioning-base
... ...

Out-of-the-box Available translation services

Model name Link
DeepL API https://developers.deepl.com/docs
OPUS MT (EN → DE) https://huggingface.co/Helsinki-NLP/opus-mt-en-de
Google T5 small (EN → DE) https://huggingface.co/google-t5/t5-small
... ...

Implementing own alt text generators and translators

You can implement your own alt text generator service by implementing the interface fork\alt\connectors\alttextgeneration\AltTextGeneratorInterface and registering it via the EVENT_REGISTER_GENERATORS event like this:

The same goes for translator services. Implement fork\altify\connectors\translation\TranslatorInterface and register your translator like this:


TODO


Brought to you by Fork Unstable Media GmbH

All versions of craft-altify with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.2
craftcms/cms Version ^4.5.0
deeplcom/deepl-php Version ^1.7
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 fork/craft-altify contains the following files

Loading the files please wait ....