PHPackages                             paktdigital/focus-point-bundle - 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. [Image &amp; Media](/categories/media)
4. /
5. paktdigital/focus-point-bundle

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

paktdigital/focus-point-bundle
==============================

Symfony bundle for third774's image focus, for image cropping based on a focus point.

1.0.3(4y ago)35902[16 PRs](https://github.com/pakt-digital/FocusPointBundle/pulls)PHPPHP ^8.0

Since Apr 23Pushed 3y ago2 watchersCompare

[ Source](https://github.com/pakt-digital/FocusPointBundle)[ Packagist](https://packagist.org/packages/paktdigital/focus-point-bundle)[ RSS](/packages/paktdigital-focus-point-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (9)Versions (21)Used By (0)

[Pakt.digital](https://www.pakt.digital/)

FocusPointBundle
================

[](#focuspointbundle)

This Symfony bundle provides an liip/imagine-bundle filter extension, a form type (using VichImageType) and an optional Twig extension for [third774's image focus](https://github.com/third774/image-focus).

Requires:

- liip/imagine-bundle
- vich/uploader-bundle

Usage
-----

[](#usage)

### Image entity

[](#image-entity)

Implement `ImageInterface` in the entity you use for your images

```
use PaktDigital\FocusPointBundle\Entity\ImageInterface;

class Image implements ImageInterface
```

and add

```
/**
  * @ORM\Column(type="json_array")
  */
private $focusPoint = [];

public function getFocusPoint(): ?array
{
    return $this->focusPoint;
}

public function setFocusPoint(array $focusPoint): self
{
    $this->focusPoint = $focusPoint;

    return $this;
}
```

Configure `image_entity` in the yaml file with your image entity

```
paktdigital_focus_point:
    image_entity: '\App\Entity\Media\Image'
```

### The filter

[](#the-filter)

You can apply the filter to an image by adding `paktdigital.focuspoint` to the image's filters in the `liip_image.yml` configuration

```
exampleImage:
    quality: 100
    filters:
        paktdigital.focuspoint:
            size: [500, 500]
```

### Field type

[](#field-type)

Add `ImageFocusType` to your form and add the css class `js-focus-picker`, e.g. in EasyAdmin

```
Page:
    class: App\Entity\Page
    form:
        fields:
            - { property: 'image', type: 'PaktDigital\FocusPointBundle\Form\ImageFocusType', css_class: 'js-focus-picker' }
            - active
            - title
            - intro
            - active
```

and add the assets

```
assets:
    js:
    - '/bundles/paktdigitalfocuspoint/main.js'
    css:
    - '/bundles/paktdigitalfocuspoint/main.css'
```

### In Twig

[](#in-twig)

Twig filter extension

```

```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 78.6% 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 ~146 days

Total

4

Last Release

1821d ago

PHP version history (2 changes)1.0.0PHP ^7.4.3

1.0.3PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19774619?v=4)[Hugo Hulsebosch](/maintainers/hugohulsebosch)[@hugohulsebosch](https://github.com/hugohulsebosch)

---

Top Contributors

[![hugohulsebosch](https://avatars.githubusercontent.com/u/19774619?v=4)](https://github.com/hugohulsebosch "hugohulsebosch (11 commits)")[![ceesvanegmond](https://avatars.githubusercontent.com/u/883497?v=4)](https://github.com/ceesvanegmond "ceesvanegmond (3 commits)")

---

Tags

image-croppingsymfony-bundle

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/paktdigital-focus-point-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/paktdigital-focus-point-bundle/health.svg)](https://phpackages.com/packages/paktdigital-focus-point-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M733](/packages/sylius-sylius)[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M563](/packages/shopware-core)

PHPackages © 2026

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