Download the PHP package n-ramos/celebrimbor-bundle without Composer

On this page you can find all versions of the php package n-ramos/celebrimbor-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package celebrimbor-bundle

Celebrimbor Bundle

Symfony bundle that connects a Doctrine entity to the Celebrimbor headless visual page builder. It ships no blocks — you bring your own JS block registry. The bundle provides the PHP plumbing:

The JavaScript half (the <my-page-builder> web component, the Stimulus controller, your block registry) lives in the npm package @n-ramos/celebrimbor-symfony, installed via AssetMapper/importmap.

Install

Register your blocks once in your AssetMapper entry (e.g. assets/app.js):

1. The model

Implement the contract and use the trait. The trait maps a nullable JSON document column and stores the editor payload raw.

Override pageBuilderFormat() to return PageBuilderFormat::Document if you store the full PageDocument instead of the default portable block list.

2. The form

The field renders <my-page-builder> with the celebrimbor--page-builder Stimulus controller and transforms the document array ⇄ JSON automatically. The bundle auto-registers its form theme; if you disabled auto theming, add @Celebrimbor/form/celebrimbor_form_theme.html.twig to twig.form_themes.

3. The preview

A preview is just a controller calling the bundle. Two strategies:

For strategy A, create one template per block type under your configured prefix (default blocks/), e.g. templates/blocks/hero.html.twig:

Each block template receives the block fields spread at top level, plus fields, settings, children (pre-rendered) and block.

For strategy B, override templates/bundles/CelebrimborBundle/preview/js_preview.html.twig to add an AssetMapper entry that calls mountCelebrimborPreview({ registry }).

Configuration

License

MIT.


All versions of celebrimbor-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
symfony/config Version ^6.4|^7.0|^8.0
symfony/dependency-injection Version ^6.4|^7.0|^8.0
symfony/http-kernel Version ^6.4|^7.0|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package n-ramos/celebrimbor-bundle contains the following files

Loading the files please wait ...