Download the PHP package vitordiniz22/craft-lens without Composer

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

Lens

Describe it. Find it.

Craft CMS 5.0+ PHP 8.2+ Tests

Lens runs every image in your asset library through an AI model and fills in the metadata that should have been there: alt text in each of your site's languages, a descriptive title, a focal point on the actual subject, and flags for NSFW content, visible watermarks, named brand logos, and people in the shot. It also audits each image for blur, exposure, contrast, compression, and color profile issues. All of that is free in the Lite edition.

Pro makes the library searchable by what's actually in each image: long descriptions, semantic tags, and OCR'd text are indexed into Craft's native search and every image picker, so editors find photos by content instead of filenames or folder structure. Pro also bulk-processes entire volumes, catches visually duplicate uploads, and tracks AI spend.

Bring your own API key for OpenAI, Google Gemini, or Anthropic Claude, and switch whenever. You pay the provider directly; there's no middleman.

How It Works

  1. Drop in images. Lens analyzes them automatically on upload, on demand from the asset editor, or in bulk across entire volumes.
  2. Get rich metadata in one pass. Alt text in every site language, descriptions, 35+ semantic tags, focal points, NSFW and watermark flags, and OCR'd text, all from a single AI call per image.
  3. Find everything, immediately. Lens metadata feeds Craft's native search, pre-built sources, and condition rules across the asset browser and every image picker.

Features

Search & Discovery

Automatic Tagging & Descriptions

Editorial Control

Content Detection

Image Assessment

Bulk Processing [Pro]

Language & Multisite

Editions

Lite, for single editors and small libraries

Every image gets AI-generated alt text, focal points, NSFW and watermark flags, brand recognition and much more. Craft's asset library gets 9 pre-built filtered views and 11 condition rules so you can navigate by what's actually in the picture, not just the filename. Free. Always.

Lite includes:

Pro, for teams and libraries that grow

Pro turns your image library into a searchable knowledge base. Search across alt text, descriptions, semantic tags, and OCR'd text, in Craft's asset browser and inside every image picker. Bulk-process entire volumes with cost preview and retry. Catch duplicates before they multiply.

Pro adds:

Available on the Craft Plugin Store.

Requirements

Installation

From the Plugin Store

  1. Go to SettingsPlugins in your Craft control panel
  2. Search for "Lens"
  3. Click Install

With Composer

Getting Started

  1. Navigate to LensSettings in the control panel
  2. Select your AI provider (OpenAI, Gemini, or Claude)
  3. Enter your API key (supports environment variables like $OPENAI_API_KEY, $GEMINI_API_KEY, or $ANTHROPIC_API_KEY) and choose a model
  4. Choose which volumes to enable for analysis
  5. In each enabled volume's field layout (SettingsAssets[Volume]Field Layout), drag the Lens Analysis UI component into the layout so AI results appear on the asset editor
  6. Upload an image. Lens analyzes it automatically and displays results in the Lens Analysis panel on the asset editor.

Documentation

Full documentation is available on the GitHub Wiki, including:

Support

License

This plugin is distributed under the Craft License. See LICENSE.md for the full terms.


All versions of craft-lens with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
craftcms/cms Version ^5.0.0
wamania/php-stemmer Version 4.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 vitordiniz22/craft-lens contains the following files

Loading the files please wait ...