Download the PHP package daun/statamic-bard-mutators without Composer

On this page you can find all versions of the php package daun/statamic-bard-mutators. 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 statamic-bard-mutators

🧱  Statamic Bard Mutators

A collection of mutators for transforming Statamic Bard content.

Mutators are implemented as plugins for Jack Sleight's Bard Mutator Addon.

Mutators

See the full list of mutators β†’

Installation

Install the package via composer:

Registration

Register any mutators you want to use from the Mutator facade. Options can be passed as arguments to the constructor. You can read more about class-based mutator plugins in the addon readme.

All Mutators

Mark External Links

Mark external links with target="_blank" and rel="external".

Mark Asset Links

Mark links to assets with download="filename.ext".

Generate Heading IDs

Adds an id attribute to headings based on their content.

Insert Heading Permalinks

Insert a permalink inside each heading pointing to its own id. Permalinks are only added to headings that already have an id β€” register GenerateHeadingIds beforehand if you want every heading to get a permalink.

The icon is wrapped in <span aria-hidden="true"> so a screen reader announces only the link's aria-label, not the icon.

Semantic Blockquotes

Wraps blockquotes in a figure element and moves the author/source into a figcaption element.

Wrap Tables

Wraps tables in a div element to allow for horizontal scrolling on smaller screens.

Normalize Heading Levels

Close skip-level gaps in the heading hierarchy by pulling deep headings up (e.g. <h2> followed by <h4> becomes <h2> followed by <h3>). The first heading is left at whatever level it starts, and going back up to a shallower level is always allowed.

This pairs naturally with ShiftHeadingLevels β€” register NormalizeHeadingLevels first to clean the hierarchy, then ShiftHeadingLevels to position the cleaned tree (e.g. min: 2 to keep <h1> reserved for the page title).

Shift Heading Levels

Shift heading levels up or down. Useful when a Bard field is rendered under a page <h1> and headings inside the field should start lower in the outline.

Lazy Load Images

Add loading="lazy" and decoding="async" to images for better page performance.

Remove List Item Paragraphs

Remove the paragraphs that tiptap automatically adds inside list items.

License

MIT


All versions of statamic-bard-mutators with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
jacksleight/statamic-bard-mutator Version ^3.0
statamic/cms Version ^5.0 || ^6.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 daun/statamic-bard-mutators contains the following files

Loading the files please wait ...