PHPackages                             pixelmairie/sulu-eventbundle - 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. pixelmairie/sulu-eventbundle

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

pixelmairie/sulu-eventbundle
============================

Manage events for Sulu

2.7.0(2mo ago)0197MITPHPPHP ^8.1CI failing

Since Jun 30Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Pixel-Mairie/sulu-eventbundle)[ Packagist](https://packagist.org/packages/pixelmairie/sulu-eventbundle)[ Docs](https://github.com/Pixel-Mairie/sulu-eventbundle)[ RSS](/packages/pixelmairie-sulu-eventbundle/feed)WikiDiscussions develop Synced today

READMEChangelog (7)Dependencies (24)Versions (11)Used By (0)

Event Bundle
============

[](#event-bundle)

[![GitHub release (with filter)](https://camo.githubusercontent.com/a1e483d7b41adba16b0cea7b165a41fdaac0b088cbe40035cbee4b7744cd3bfb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f506978656c2d4d61697269652f73756c752d6576656e7462756e646c653f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/a1e483d7b41adba16b0cea7b165a41fdaac0b088cbe40035cbee4b7744cd3bfb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f506978656c2d4d61697269652f73756c752d6576656e7462756e646c653f7374796c653d666f722d7468652d6261646765)[![Dependency](https://camo.githubusercontent.com/6362382a72181d18c5ae371f75fdc3a09be1ef1e767e84164bca61ce59590aad/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73756c752d322e362d6363613030302e7376673f7374796c653d666f722d7468652d6261646765)](https://sulu.io/)

Presentation
------------

[](#presentation)

This bundle allows to manage events for the Sulu CMS

Features
--------

[](#features)

- Events management
- List of events (via smart content)
- Preview
- Translation
- Settings
- SEO
- Activity log
- Trash

Requirement
-----------

[](#requirement)

- PHP &gt;= 8.1
- Symfony &gt;= 5.4
- Composer

Installation
------------

[](#installation)

### Install the bundle

[](#install-the-bundle)

Execute the following [composer](https://getcomposer.org/) command to add the bundle to the dependencies of your project:

```
composer require pixelmairie/sulu-eventbundle
```

### Enable the bundle

[](#enable-the-bundle)

Enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
return [
    /* ... */
    Pixel\EventBundle\EventBundle::class => ['all' => true],
];
```

### Update schema

[](#update-schema)

```
bin/console do:sch:up --force
```

Bundle Config
-------------

[](#bundle-config)

Define the Admin Api Route in `routes_admin.yaml`

```
event.events_api:
  type: rest
  prefix: /admin/api
  resource: pixel_event.events_route_controller
  name_prefix: event.

event.settings_api:
  type: rest
  prefix: /admin/api
  resource: pixel_event.settings_route_controller
  name_prefix: event.
```

Use
---

[](#use)

### Add/Edit an event

[](#addedit-an-event)

Go to the "Events" section in the administration interface. Then, click on "Add". Fill the fields that are needed for your use.

Here is the list of the fields:

- Name (mandatory)
- Start date (mandatory)
- End date
- URL (mandatory and filled automatically according to the title)
- Website
- Email
- Phone number
- Logo
- Cover
- Images gallery
- PDF
- Description (mandatory)
- Location

Once you finished, click on "Save"

Your event is not visible on the website yet. In order to do that, click on "Activate?". It should be now visible for visitors.

To edit an event, simply click on the pencil at the left of the event you wish to edit.

### Remove/Restore an event

[](#removerestore-an-event)

There are two ways to remove an event:

- Check every event you want to remove and then click on "Delete"
- Go to the detail of an event (see the "Add/Edit a news" section) and click on "Delete".

In both cases, the event will be put in the trash.

To access the trash, go to the "Settings" and click on "Trash". To restore an event, click on the clock at the left. Confirm the restore. You will be redirected to the detail of the event you restored.

To remove permanently an event, check all the events you want to remove and click on "Delete".

Settings
--------

[](#settings)

This bundle comes with settings. To access the bundle settings, go to "Settings &gt; Events management".

Here is the list of the different settings:

- Default image
- Events limit on homepage

The default image is helpful when an event has no cover for example.

The events limit on home page allows you to choose the number of events you want to display on the homepage

Twig extension
--------------

[](#twig-extension)

This bundle comes with only one twig function:

**event\_settings()**: returns the settings of the bundle. No parameters are required.

Example of use:

```
{% set settings = event_settings() %}
{% if settings.defaultImage is defined %}
    {% set defaultImage = sulu_resolve_media(settings.defaultImage.id, 'fr') %}
{% endif %}
```

Display event on homepage
-------------------------

[](#display-event-on-homepage)

As you saw in the "Settings" section, a bunch of events are displayed on the homepage. By default, the number of events is 6. However, you can change this limit by editing the "Events limit on homepage" settings.

To retrieve this limit, you can add the following code:

```
{% block javascripts %}
    {{ parent() }}
    {% set settings = event_settings() %}
    {% set limitSetting = settings.limitBlockEvent ? settings.limitBlockEvent : 6 %}

        const EVENTS_URL = "{{ path('events_block', {limit: limitSetting}) }}";

{% endblock %}
```

Contributing
------------

[](#contributing)

You can contribute to this bundle. The only thing you must do is respect the coding standard we implements. You can find them in the `ecs.php` file.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance88

Actively maintained with recent releases

Popularity13

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

Recently: every ~223 days

Total

7

Last Release

60d ago

PHP version history (2 changes)2.4.9PHP ^8.0

2.6.3PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/56179468?v=4)[Angel Miranda](/maintainers/pixeldev)[@pixeldev](https://github.com/pixeldev)

---

Top Contributors

[![matthieu2607](https://avatars.githubusercontent.com/u/14790414?v=4)](https://github.com/matthieu2607 "matthieu2607 (20 commits)")

---

Tags

sulu-bundleeventsulu

###  Code Quality

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pixelmairie-sulu-eventbundle/health.svg)

```
[![Health](https://phpackages.com/badges/pixelmairie-sulu-eventbundle/health.svg)](https://phpackages.com/packages/pixelmairie-sulu-eventbundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)

PHPackages © 2026

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