PHPackages                             unrealmanu/ez-content-field-filter - 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. [Search &amp; Filtering](/categories/search)
4. /
5. unrealmanu/ez-content-field-filter

ActiveEzplatform-bundle[Search &amp; Filtering](/categories/search)

unrealmanu/ez-content-field-filter
==================================

Filter field of ez Content

0.0.2(6y ago)01mitPHPPHP ^7.2

Since Mar 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/unrealmanu/ezFieldIterator)[ Packagist](https://packagist.org/packages/unrealmanu/ez-content-field-filter)[ Docs](https://github.com/unrealmanu/ezFieldIterator)[ RSS](/packages/unrealmanu-ez-content-field-filter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

ezFieldIterator
===============

[](#ezfielditerator)

Filter "Content Class -Fields-" with specific value type instance
-----------------------------------------------------------------

[](#filter-content-class--fields--with-specific-value-type-instance)

### Instructions

[](#instructions)

Create new Filters().

```
 $fieldHelper = new Filters();

```

Set the Content need to filter fields

- support only "eZ\\Publish\\API\\Repository\\Values\\Content\\Content"
- Single $content or Array \[$content, $content, $content\]

```
$fieldHelper->setContent($content);

```

Choose the filter "value class" instance

- Choose single or multiple instance of class for filtering the content

```
use eZ\Publish\Core\FieldType\Image\Value as ImageValue;
use eZ\Publish\Core\FieldType\RichText\Value as RichTextValue;
use eZ\Publish\Core\FieldType\TextBlock\Value as TextBlockValue;
use eZ\Publish\Core\FieldType\TextLine\Value as TextLineValue;

```

- Single Value::class or \[ValueA::class, ValueB::class, ValueC::class\]

```
$fieldHelper->setClass(ImageValue::class);

```

- Field name from get value (Required)

```
$fieldHelper->setValueField('uri');

```

### Example

[](#example)

```
use unrealmanu\ezFieldIterator\Filters as FieldHelper;

/**
* @return string|null
*/
function myFilter():?string
{
    $fieldHelper = new FieldHelper();
    $fieldHelper->setContent($content);
    $fieldHelper->setClass(ImageValue::class);
    $fieldHelper->setValueField('uri');

    return $fieldHelper->getFirstChildren();
    //return $fieldHelper->getChildren();
}

```

### Real World application

[](#real-world-application)

- Get all images of "contents array" for image-sitemap
- Get first image/text of "contents array" for search-indexing
- Get all text field of Content for generate list of Tag/Description etc
- Use your creativity :)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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 ~0 days

Total

2

Last Release

2243d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f981ced6addf7e792f200b8e4621b6d9effe3f895d29b179e2479358a43de8a8?d=identicon)[unrealmanu](/maintainers/unrealmanu)

---

Top Contributors

[![unrealmanu](https://avatars.githubusercontent.com/u/3137910?v=4)](https://github.com/unrealmanu "unrealmanu (10 commits)")

---

Tags

contentiteratorfilterfieldezpublishezplatformez

### Embed Badge

![Health badge](/badges/unrealmanu-ez-content-field-filter/health.svg)

```
[![Health](https://phpackages.com/badges/unrealmanu-ez-content-field-filter/health.svg)](https://phpackages.com/packages/unrealmanu-ez-content-field-filter)
```

###  Alternatives

[clue/stream-filter

A simple and modern approach to stream filtering in PHP

1.7k261.7M7](/packages/clue-stream-filter)[laminas/laminas-filter

Programmatically filter and normalize data and files

9428.0M150](/packages/laminas-laminas-filter)[dms/dms-filter-bundle

DMS Filter Bundle, makes Annotation based entity filtering available in Symfony

78351.6k1](/packages/dms-dms-filter-bundle)[kitpages/data-grid-bundle

Symfony DataGridBundle

7780.9k1](/packages/kitpages-data-grid-bundle)[rollerworks/search-bundle

RollerworksSearch Bundle

1015.8k1](/packages/rollerworks-search-bundle)

PHPackages © 2026

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