Download the PHP package splashfrog/leap-legos without Composer

On this page you can find all versions of the php package splashfrog/leap-legos. 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 leap-legos

Splash Frog - LEAP Legos

Enterprise-grade, decoupled component building blocks for Drupal 11 Layout Builder.

The LEAP Legos ecosystem provides a modern, modular approach to site building. By leveraging Drupal 11 Recipes for configuration and Single Directory Components (SDCs) for markup, these modules provide instant, battle-tested UI components without polluting your active configuration or locking you into rigid, legacy templating structures.


✨ Architectural Philosophy

Legacy Drupal modules often bundle configuration (via config/install) and rigid .html.twig templates directly into the module. This creates massive headaches for site builders when updates occur or when they want to customize the frontend.

The LEAP Approach:

  1. Decoupled Configuration (Recipes): We do not force configuration on install. You enable the bridging module, and then manually apply the accompanying Drupal Recipe (drush recipe ...) to stamp the fields and block types into your active database. You own the config.
  2. Decoupled Markup (SDCs): The .module files act only as data mappers. They extract raw data from Block Content or Paragraph entities, sanitize it, and pass clean variable arrays to your Theme's SDCs.
  3. Framework Agnostic (Almost): While optimized for Bootstrap 5 via SDCs, the bridging logic maps data cleanly enough to be consumed by any frontend framework.

🛠️ Requirements


🚀 Installation & Setup

Because this is an ecosystem of sub-modules, you only enable what you need.

Step 1: Enable the bridging module

Step 2: Apply the Configuration Recipe Every LEAP Lego module requires its corresponding recipe to be applied to generate the fields and block types. The module will display a warning messenger after enablement with the exact command to run.


🧩 The Lego Modules

Accordions (leap_lego_accordions)

Provides a Block Type that references "Accordion Item" Paragraphs. The module's preprocess logic extracts the parent block ID to guarantee that HTML id attributes required for Bootstrap collapse logic remain globally unique on the page.

Cards (leap_lego_cards)

Provides a Block Type for rendering distinct content cards. The preprocess logic handles complex UI toggles, such as evaluating the field_card_link_wrap boolean to determine if the entire card DOM should be wrapped in an anchor tag, or just render a standalone CTA button.

Image Carousel (leap_lego_image_carousel)

Provides a Block Type referencing paragraph slides. The module programmatically renders the attached Media (Image) entities through Drupal's Entity View Builder before passing them to the SDC, ensuring responsive image styles (<picture> tags) are perfectly calculated.

Tabs (leap_lego_tabs)

Provides a Block Type referencing "Tab Item" Paragraphs. Similar to Accordions, it ensures deep DOM ID uniqueness so that Bootstrap 5 active state targeting functions flawlessly even when multiple tab blocks exist on the same page.

Video Carousel (leap_lego_video_carousel)

Unlike the Image Carousel, this module directly references Media (Video) entities. The preprocess logic forces the rendering of oEmbed (YouTube/Vimeo) logic or native HTML5 <video> tags so the frontend SDC simply receives the final iframe/video DOM.

Simple Navigation (leap_lego_simple_nav)

Provides a Block Type for rendering distinct lists of links. It flattens multi-value link fields into a clean, iterable array (url and title) for effortless Twig consumption.

Sibling / Smart Navigation (leap_lego_sibling_nav)

The most complex of the Legos. It leverages embedded Views to build dynamic navigation trees.


👨‍💻 Developer Information

The Preprocess Pattern

All LEAP Legos follow a strict preprocess mapping pattern in their .module files:

  1. Extract the #block_content entity.
  2. Initialize default scalar variables.
  3. Validate field existence ($block->hasField(...)).
  4. Sanitize and extract data (e.g., check_markup() on rich text).
  5. Inject a clean array (e.g., accordion_items) into the $variables array.

You will never find raw database queries or hardcoded HTML wrappers inside a LEAP Lego .module file.


🛡️ License

This module is part of the Splash Frog Ecosystem, the Drupal Ecosystem, and is provided under the GPL-2.0-or-later License.


All versions of leap-legos with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
drupal/core Version ^11.3
drupal/link_attributes Version ^2.1
drupal/linkit Version ^7.0
drupal/paragraphs Version ^1.17
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 splashfrog/leap-legos contains the following files

Loading the files please wait ...