Download for Google Chrome (opens in a new tab)
Download for Edge (opens in a new tab)
Download for Firefox (opens in a new tab)Newsletter
New laws and deadlines, court rulings, enforcement and WCAG changes. A short summary once a week, and an e-mail straight away when something important happens. Unsubscribe at any time.
A Composer bundle that brings the alt generator to Symfony: the AltText service, console commands and generating with Messenger.
Packagist (Composer)
The dockcodes/dockaccess-alt-generator-symfony bundle works with Symfony 6.4, 7.4 and 8 on PHP 8.2+. It gives your application the AltText service, console commands to connect and check the connection, and generating with Symfony Messenger.
After installing and registering the bundle, run php bin/console dockaccess:alt:connect and give the site token, the public address of the application and the e-mail address and password of your DockAccess account.
Install the bundle with Composer:
composer require dockcodes/dockaccess-alt-generator-symfony
Connect the application and check its status. When asked, enter the site token, the public address of the application and the e-mail address and password of your DockAccess account.
php bin/console dockaccess:alt:connect php bin/console dockaccess:alt:status
The password is used only to connect and is not stored. The address must be one of the site's domains in DockAccess.
Generate alt texts with the AltText service, for example for an upload:
use Dock\AltGenerator\Symfony\AltText; $alt = $altText->generate($request->files->get('photo'))->alt()->text();
Inject the AltText service: $altText->generate($request->files->get('photo'))->alt()->text() returns the description of an image. For more images, generate them with Messenger and save the result in your application.
The free plan describes 10 images a day on one site. Paid plans count images a month: Starter 500, Pro 2,000 and Agency 20,000. The limit counts the images described in your DockAccess account and by every integration together.
Check a generated description before you publish it, especially names, numbers and the text visible in the picture. A decorative image should have an empty alt, and an image that is the only content of a link describes where the link goes.
To write a description, the AI service gets the image, the language and the context and tone you set.
The AI generator writes alt texts for your images in your CMS or in your own code.
See the installationFree up to 10 images a day.