PHPackages                             linderp/sulu-base-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. linderp/sulu-base-bundle

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

linderp/sulu-base-bundle
========================

Helper classes and functions for sulu

0.1.6(1mo ago)0761MITPHPPHP ^8.2

Since Jan 16Pushed 1mo agoCompare

[ Source](https://github.com/pascallinder/SuluBaseBundle)[ Packagist](https://packagist.org/packages/linderp/sulu-base-bundle)[ RSS](/packages/linderp-sulu-base-bundle/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (30)Versions (7)Used By (1)

SuluBaseBundle
==============

[](#sulubasebundle)

Shared Sulu CMS utilities for admin CRUD scaffolding, locale-aware repositories/controllers, and custom admin field types. Use this bundle from your app code to avoid reimplementing standard Sulu admin patterns.

What This Bundle Provides
-------------------------

[](#what-this-bundle-provides)

- **Admin CRUD base**: `Admin/AdminCrud.php` plus config value objects for list/form/navigation setup.
- **Enable toggle**: `Admin/AdminEnableToggle.php` + `Controller/Admin/EnableSwitch.php` for standard on/off actions.
- **Locale-aware stack**: `Entity/LocaleTrait.php`, `Repository/LocaleRepositoryUtil.php`, and `Controller/Admin/LocaleController.php`.
- **List builder helper**: `Common/DoctrineListRepresentationFactory.php` for paginated list responses.
- **Content types**: `Content/Types/*` registered in `Resources/config/services.yaml`.
- **Admin React fields**: `Resources/js/src/components/content/types/*` registered in `Resources/js/src/app.js`.

Quick Start: Add a New Admin CRUD
---------------------------------

[](#quick-start-add-a-new-admin-crud)

1. **Admin class** (extend `AdminCrud`):
    - Implement `define()` using `AdminCrudConfig` + `AdminCrudNavigationConfig` + `AdminCrudListConfig` + `AdminCrudFormConfig`.
    - Implement `AdminEnableToggle` if the entity has an `enabled` flag.
2. **Controller** (extend `BaseController` or `LocaleController`):
    - Implement `getDataForEntity()`, `mapDataToEntity()`, `load()`, `create()`, `save()`, `remove()`.
    - Use `EnableSwitch` trait if you added the enable toggle.
3. **Repository**:
    - Extend `BaseRepositoryUtil` for plain entities or `LocaleRepositoryUtil` for localized entities.
    - For `LocaleRepositoryUtil`, implement `append()` and `appendSortByJoins()` for list/smart content.

Example: Minimal Admin Definition
---------------------------------

[](#example-minimal-admin-definition)

```
final class EventAdmin extends AdminCrud
{
    public static function define(): AdminCrudConfig
    {
        return new AdminCrudConfig(
            'events',
            new AdminCrudNavigationConfig('app.events', 10, 'su-calendar'),
            new AdminCrudListConfig('app.events', 'events', 'app.events_list'),
            new AdminCrudFormConfig('title', 'app.events_add', 'app.events_edit', 'event_form')
        );
    }
}
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance92

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community11

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

Total

6

Last Release

40d ago

### Community

Maintainers

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

---

Top Contributors

[![pascallinder](https://avatars.githubusercontent.com/u/14151956?v=4)](https://github.com/pascallinder "pascallinder (11 commits)")

### Embed Badge

![Health badge](/badges/linderp-sulu-base-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/linderp-sulu-base-bundle/health.svg)](https://phpackages.com/packages/linderp-sulu-base-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

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

Shopware platform is the core for all Shopware ecommerce products.

585.6M578](/packages/shopware-core)[sylius/sylius

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

8.5k5.9M739](/packages/sylius-sylius)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k185.6M2.4k](/packages/symfony-security-bundle)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)

PHPackages © 2026

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