Skip to content

About

The base of the c975L ecosystem in a single package: ConfigBundle (database-backed configuration, EasyAdmin dashboard, user accounts, health check, sitemaps) and UiBundle (page blocks, media library, theme, legal models, forms, emails). Two bundles, one package, one release.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

c975L CoreBundle

GitHub Packagist Version PHP Version Codacy Grade

CoreBundle

Your site gets its settings, back-office dashboard, user accounts, page blocks, media library, forms and emails: the base every other c975L bundle builds on.

Bundle page · Tutorials · Block kinds · Live demo · Demo back-office

Watch the CoreBundle film

▶ Watch the film · CoreBundle's page

TL;DR — CoreBundle is the base of the c975L ecosystem: settings kept in the database, the back-office dashboard, user accounts and health check on one side, page blocks, media, theme, forms and emails on the other. It ships these as two bundles, ConfigBundle and UiBundle, in a single package with one release. Require the package and register both bundles.

What you get

  • Site settings kept in the database.
  • An EasyAdmin back-office dashboard.
  • User accounts, a health check and the sitemaps.
  • Page blocks to compose a page in the back office, with no template to write.
  • A media library, the site's theme and legal models.
  • Forms and emails.
  • One package and one release for both bundles, keeping the namespaces of the former c975l/config-bundle and c975l/ui-bundle.

Quick start

composer require c975l/core-bundle

Then register both bundles as shown in the full installation section below.

For AI agents

  • Skills, read straight from vendor/c975l/core-bundle/ by a coding agent:
  • MCP: ConfigBundle hosts the site's MCP endpoint, /api/mcp, where an AI agent works with the tools of every installed c975L bundle, with the rights of its token's account — see Opening the site to AI agents. UiBundle brings ui_media_list, ui_media_get and ui_media_edit for the media library — see its MCP tools.

Reference

Contents

One package, two bundles

This is not a merged bundle. A Composer package is not a Symfony bundle: this package ships the two bundles unchanged, each with its own namespace, its own services.yaml, its own configs.json, its own translation domain and its own dashboard section.

CoreBundle/
├── composer.json      ← the only one
├── ConfigBundle/      → c975L\ConfigBundle\
└── UiBundle/          → c975L\UiBundle\

There is no c975L\CoreBundle\ namespace. The name core-bundle exists on Packagist only.

Why they ship together

ConfigBundle and UiBundle referenced each other in their composer.json, in both directions:

  • Ui → Config is deep and deliberate: ConfigServiceInterface is read everywhere, and every *ProviderInterface of the generic registry mechanism is declared in ConfigBundle.
  • Config → Ui comes from the dashboard itself (FontRegistry, FormThemeRegistry, StylesheetManagementRegistry, ScriptAdminRegistry, WhatsNewRegistry) and from user accounts (Form/FormField + EmailService).

Two packages that require each other cannot be released independently, and neither can see the other's work-in-progress — only its last published version. They were never two layers; they were one layer billed as two. This package says so out loud.

Tip

If this project helps you save development time:

And if you'd like to support the work directly, the Sponsor button at the top of the GitHub page is there for that.

Installation

composer require c975l/core-bundle

Then register both bundles — they remain two entries:

// config/bundles.php
return [
    // ...
    c975L\ConfigBundle\c975LConfigBundle::class => ['all' => true],
    c975L\UiBundle\c975LUiBundle::class => ['all' => true],
];

What the blocks look like

UiBundle blocks

One tile per kind UiBundle ships, captured on the showcase at bundles.975l.com, where every one of them is rendered live. A page is composed out of them in the back-office, with no template written for it - see Built-in block kinds for what each one takes.

Documentation

Each bundle keeps its own README, unchanged:

Each also ships skills under its own skills/ directory, written for the coding agent of the site installing the package rather than for someone modifying it — four in ConfigBundle, five in UiBundle, linked into an application's .claude/skills/ by c975l:skills:install. See ConfigBundle and UiBundle.

Its history, on the other hand, is the package's: ChangeLog.md and UPGRADE.md carry both bundles from here on. Each bundle's own files stop at its last published release — v5.17.1 for ConfigBundle, v1.17.0 for UiBundle — and are kept as archives.

Quality checks

The nine checks the CI runs live in composer.json alone, as one list:

composer qa

composer run -l names what each one covers, and each is callable on its own (composer audit-deps, cs, fixer, stan, stan-scaffold, rector, lizard, test). The workflow calls those same scripts, so a check is never declared twice.

audit-deps is composer audit: it matches the resolved dependencies against the Packagist security advisories, which is where a known CVE in a dependency gets caught — before the push, not once a site has deployed it. Abandoned packages are reported without failing the run.

rector runs --dry-run, so it reports rather than rewrites, over the same sets SymfonyMigrate.sh gives a site. It covers scaffold/ next to each bundle's own code: what is left unmodernised here gets rewritten in the application, where the rewritten file no longer matches the hash ScaffoldInstaller recorded, and the site is then told forever it customized a file it never touched.

A development machine's vendor/ stays at the versions of its composer.lock, which can lag behind Packagist — where the CI resolves everything. bin/ci.sh replays composer qa on a copy of the repository whose dependencies are resolved from Packagist, uncommitted changes included, while the tests on each other PHP version it finds installed among 8.4, 8.5 and 8.6, those the CI runs them on, run in parallel in their own copy, their log shown only when they fail:

bin/ci.sh

The quality tools themselves are not dependencies of the bundle — PHPStan aside, which require-dev carries for its deprecation rules: the CI installs them with setup-php, which always takes the latest release, where a development machine keeps whatever it installed the day it installed it. bin/ci.sh installs them fresh too, and prints the versions it ran with, Lizard included, taking a tool from vendor/bin when require-dev carries it, as composer qa does: a rule removed upstream since is otherwise still enforced here, and a rule added since is missed.

Migrating from c975l/config-bundle / c975l/ui-bundle

See UPGRADE.md. In short: replace the two requirements with c975l/core-bundle. No PHP use, no @c975LUi/… template reference, no translation key and no bundles.php entry changes — the namespaces are the same ones.

License

MIT — see LICENSE.

About

The base of the c975L ecosystem in a single package: ConfigBundle (database-backed configuration, EasyAdmin dashboard, user accounts, health check, sitemaps) and UiBundle (page blocks, media library, theme, legal models, forms, emails). Two bundles, one package, one release.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages