PHPackages                             ezsystems/ez-matrix-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. ezsystems/ez-matrix-bundle

ActiveEzplatform-bundle

ezsystems/ez-matrix-bundle
==========================

EzMatrix FieldType for eZ Publish Platform

0.2.1(7y ago)559.0k↓25%14GPL-2.0PHPPHP ^5.6 | ^7.0

Since Nov 18Pushed 6y ago10 watchersCompare

[ Source](https://github.com/ezcommunity/EzMatrixFieldTypeBundle)[ Packagist](https://packagist.org/packages/ezsystems/ez-matrix-bundle)[ RSS](/packages/ezsystems-ez-matrix-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

EzMatrixFieldTypeBundle
=======================

[](#ezmatrixfieldtypebundle)

[![Build Status](https://camo.githubusercontent.com/cb718ea184cdd8c695c93c11aee8a759c55b4105c00d26b131abc88c8f220f24/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f657a636f6d6d756e6974792f457a4d61747269784669656c645479706542756e646c652e7376673f7374796c653d666c61742d737175617265266272616e63683d6d6173746572)](https://travis-ci.org/ezcommunity/EzMatrixFieldTypeBundle)[![Downloads](https://camo.githubusercontent.com/40e33b1039a737d111bb048b21fe8eb1c10ae7785ee5cfc29ea4687287c4ecab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f657a73797374656d732f657a2d6d61747269782d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ezsystems/ez-matrix-bundle)[![Latest version](https://camo.githubusercontent.com/efac2094f9dd3192acc979bdd13f4dfc4e50479f3242d172633fec536f133efb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f657a636f6d6d756e6974792f457a4d61747269784669656c645479706542756e646c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/ezcommunity/EzMatrixFieldTypeBundle/releases)[![License](https://camo.githubusercontent.com/623b04f6442f7c1f065db6d45edfa3fec128917b3bf7e24c1faab6f989c1f0ea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f657a636f6d6d756e6974792f457a4d61747269784669656c645479706542756e646c652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Bundle provides ezmatrix field type for eZ Publish Platform 5.x and higher

⛔️ **Status DEPRECATED:** As of 2.5 there is now bundled a [newer version](https://github.com/ezsystems/ezplatform-matrix-fieldtype) avaiable from eZ with full support, migration, UI editing and more. ⛔️

*This bundle can and should be used on earlier versions, but will not recive support for use in 1.x or 2.x UI or full API support, so UI editing is limited to use via legacy bridge/bundle.*

### Install

[](#install)

From your [eZ Publish Platform](https://doc.ez.no/display/EZP/Installing+eZ+Publish+on+a+Linux-UNIX+based+system) install root with [composer installed](https://doc.ez.no/display/EZP/Using+Composer):

```
php -d memory_limit=-1 composer.phar require --prefer-dist ezsystems/ez-matrix-bundle:dev-master

```

Add the following in your `app/AppKernel.php` file:

```
public function registerBundles()
{
    ...

    $bundles[] = new EzSystems\MatrixBundle\EzSystemsMatrixBundle();

    return $bundles;
}
```

### How to update content programmatically

[](#how-to-update-content-programmatically)

Here's an example on how to update the value of a matrix field for a content item. The field has two columns, and we are creating two rows of content:

```
$repository = $this->getContainer()->get( 'ezpublish.api.repository' );
$contentService = $repository->getContentService();

// This example for setting a current user is valid for 5.x and early versions of 6.x installs
// This is deprecated from 6.6, and you should use PermissionResolver::setCurrentUserReference() instead
$repository->setCurrentUser( $repository->getUserService()->loadUser( 14 ) );

$contentId = 26926;
$newTitle = 'My updated title 2';

try
{
    // create a content draft from the current published version
    $contentInfo = $contentService->loadContentInfo( $contentId );
    $contentDraft = $contentService->createContentDraft( $contentInfo );

    // instantiate a content update struct and set the new fields
    $contentUpdateStruct = $contentService->newContentUpdateStruct();
    $contentUpdateStruct->initialLanguageCode = 'eng-US'; // set language for new version
    $matrixValue = new \EzSystems\MatrixBundle\FieldType\Matrix\Value(
        array(
            new \EzSystems\MatrixBundle\FieldType\Matrix\Row( array( 'col1' => 'row1col1', 'col2' => 'row1col2' ) ),
            new \EzSystems\MatrixBundle\FieldType\Matrix\Row( array( 'col1' => 'row2col2', 'col2' => 'row2col2' ) ),
        ),
        array(
            new \EzSystems\MatrixBundle\FieldType\Matrix\Column( array( 'name' => 'Column 1', 'id' => 'col1', 'num' => 0 ) ),
            new \EzSystems\MatrixBundle\FieldType\Matrix\Column( array( 'name' => 'Column 2', 'id' => 'col2', 'num' => 1 ) ),
        )
    );
    $contentUpdateStruct->setField( 'title', $newTitle );
    $contentUpdateStruct->setField( 'matrix', $matrixValue );
    // update and publish draft
    $contentDraft = $contentService->updateContent( $contentDraft->versionInfo, $contentUpdateStruct );
    $content = $contentService->publishVersion( $contentDraft->versionInfo );
}
catch ( \eZ\Publish\API\Repository\Exceptions\NotFoundException $e )
{
    $output->writeln( $e->getMessage() );
}
catch( \eZ\Publish\API\Repository\Exceptions\ContentFieldValidationException $e )
{
    $output->writeln( $e->getMessage() );
}
catch( \eZ\Publish\API\Repository\Exceptions\ContentValidationException $e )
{
    $output->writeln( $e->getMessage() );
}
```

### License &amp; Copyright

[](#license--copyright)

See LICENSE file.

### Contributors

[](#contributors)

###  Health Score

34

—

LowBetter than 78% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

3

Last Release

2569d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.3.3

0.2.0PHP ^5.6 | ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/235928?v=4)[Bertrand Dunogier](/maintainers/bdunogier)[@bdunogier](https://github.com/bdunogier)

![](https://avatars.githubusercontent.com/u/681611?v=4)[Ibexa Bot](/maintainers/ezrobot)[@ezrobot](https://github.com/ezrobot)

![](https://avatars.githubusercontent.com/u/130489?v=4)[Łukasz Serwatka](/maintainers/lserwatka)[@lserwatka](https://github.com/lserwatka)

---

Top Contributors

[![andrerom](https://avatars.githubusercontent.com/u/289757?v=4)](https://github.com/andrerom "andrerom (12 commits)")[![crevillo](https://avatars.githubusercontent.com/u/306215?v=4)](https://github.com/crevillo "crevillo (8 commits)")[![blankse](https://avatars.githubusercontent.com/u/998558?v=4)](https://github.com/blankse "blankse (4 commits)")[![MarioBlazek](https://avatars.githubusercontent.com/u/6605175?v=4)](https://github.com/MarioBlazek "MarioBlazek (3 commits)")[![iherak](https://avatars.githubusercontent.com/u/5854428?v=4)](https://github.com/iherak "iherak (2 commits)")[![SofLesc](https://avatars.githubusercontent.com/u/10260380?v=4)](https://github.com/SofLesc "SofLesc (1 commits)")[![joekepley](https://avatars.githubusercontent.com/u/29961?v=4)](https://github.com/joekepley "joekepley (1 commits)")[![peterkeung](https://avatars.githubusercontent.com/u/575638?v=4)](https://github.com/peterkeung "peterkeung (1 commits)")[![scaule](https://avatars.githubusercontent.com/u/2795512?v=4)](https://github.com/scaule "scaule (1 commits)")

---

Tags

ezpublishezmatrix

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ezsystems-ez-matrix-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ezsystems-ez-matrix-bundle/health.svg)](https://phpackages.com/packages/ezsystems-ez-matrix-bundle)
```

###  Alternatives

[kaliop/ezmigrationbundle

Kaliop eZ-Migration Bundle

54357.8k9](/packages/kaliop-ezmigrationbundle)[netgen/admin-ui-bundle

Netgen Admin UI implements an alternate administration UI for eZ Platform, based on eZ Publish Legacy administration interface

3325.4k4](/packages/netgen-admin-ui-bundle)[netgen/information-collection-bundle

Information collection alike feature for Ibexa Platform

1945.0k6](/packages/netgen-information-collection-bundle)[netgen/remote-media-bundle

Remote media field type implementation

189.3k3](/packages/netgen-remote-media-bundle)[heliopsis/ezforms-bundle

Symfony forms handling within eZPublish contents

132.7k](/packages/heliopsis-ezforms-bundle)

PHPackages © 2026

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