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. paktdigital/focus-point-bundle

ActiveSymfony-bundle

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 1mo ago

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 74% 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

1767d ago

PHP version history (2 changes)1.0.0PHP ^7.4.3

1.0.3PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/aacad86b1f2a0c7029499dce1f185821ea9427df1a09ec0f50770d84fbe63956?d=identicon)[hugohulsebosch](/maintainers/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

[sylius/sylius

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

8.4k5.6M647](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M308](/packages/easycorp-easyadmin-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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