PHPackages                             doublespark/contao-search-screenshot - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. doublespark/contao-search-screenshot

ActiveContao-bundle[Utility &amp; Helpers](/categories/utility)

doublespark/contao-search-screenshot
====================================

Adds page preview screenshot to Contao search results

v1.0.8(5y ago)068MITPHPPHP &gt;=7.1

Since Sep 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/doublespark/contao-search-screenshot-bundle)[ Packagist](https://packagist.org/packages/doublespark/contao-search-screenshot)[ RSS](/packages/doublespark-contao-search-screenshot/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (10)Used By (0)

Contao Search Screenshot
========================

[](#contao-search-screenshot)

This module adds a screenshot preview of a page to the search results.

### PhantomJS

[](#phantomjs)

PhantomJS is required in order to capture the screenshots.

To automate installing PhantomJS you can use the package `jakoch/phantomjs-installer`. Once installed, add `PhantomInstaller\\Installer::installPhantomJS` to the post install and update commands of your project's composer.json:

```
"scripts": {
    "post-install-cmd": [
        "PhantomInstaller\\Installer::installPhantomJS"
    ],
    "post-update-cmd": [
        "PhantomInstaller\\Installer::installPhantomJS"
    ]
}

```

Now when you run `composer install`, PhantomJS will be automatically installed to `/vendor/bin/phantomjs`.

If you wish you can use a custom instance of PhantomJS by downloading it from . If you do this you may need to set a custom path for PhantomJS under Settings.

Usage
-----

[](#usage)

### Generating screenshots

[](#generating-screenshots)

In order to generate the screenshots, a server cron job must be set up that runs the following command every minute:

`vendor/bin/contao-console search-screenshot:generate`

If you don't wish to wait, you can manually trigger the generation of screenshots for all pages from the CMS backend under System &gt; Search screenshots.

Screenshots will be automatically updated every 7 days.

### Displaying screenshots in results

[](#displaying-screenshots-in-results)

The module makes a new variable `$this->screenshot` available in the search results template. This variable will hold the URL of the screenshot if it exists or be empty if not.

A template which includes the screenshot is included and can be selected when configuring the search module. Select `search_with_screenshot.html5` as the search template to use it.

### Configuration

[](#configuration)

Under System &gt; Settings you will find some configuration options for the module in the "Search screenshot configuration" section.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~75 days

Recently: every ~149 days

Total

9

Last Release

1867d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/087b3202681082c6c8e4585e50837691855d7943cd6ca2178a971b6ea5187acd?d=identicon)[jamesdevine](/maintainers/jamesdevine)

---

Top Contributors

[![jamesdevine](https://avatars.githubusercontent.com/u/1336721?v=4)](https://github.com/jamesdevine "jamesdevine (21 commits)")

### Embed Badge

![Health badge](/badges/doublespark-contao-search-screenshot/health.svg)

```
[![Health](https://phpackages.com/badges/doublespark-contao-search-screenshot/health.svg)](https://phpackages.com/packages/doublespark-contao-search-screenshot)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

41668.4k164](/packages/codefog-contao-haste)[terminal42/contao-node

Node bundle for Contao Open Source CMS

3177.0k5](/packages/terminal42-contao-node)[metamodels/core

MetaModels core

9956.1k68](/packages/metamodels-core)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3187.0k6](/packages/codefog-contao-news-categories)[terminal42/contao-folderpage

Provides a new page type for Contao that allows you to group pages into folders.

18153.4k10](/packages/terminal42-contao-folderpage)[terminal42/contao-url-rewrite

URL Rewrite bundle for Contao Open Source CMS

15100.0k3](/packages/terminal42-contao-url-rewrite)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
