Download the PHP package bmd/button-block-enhancements without Composer

On this page you can find all versions of the php package bmd/button-block-enhancements. 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 button-block-enhancements

Button Block Enhancements

WordPress PHP Latest Release License

Lint PHP PHPStan PHPUnit CSS Lint JS Lint

Want to give it a test drive? Try it in the WP Playground: Try it in the WordPress Playground

Add icons and hover/focus colors to the WordPress Button block (core/button) in both the editor and frontend.

Features

Icons

Hover/Focus Colors

Architecture

Requirements

Installation

Install as a plugin

  1. Download the latest release zip from GitHub releases.
  2. In WordPress admin, go to Plugins -> Add New Plugin -> Upload Plugin.
  3. Upload the zip and activate Button Block Enhancements.

Install via Composer (library usage)

If you are embedding this into your own project:

Then bootstrap from your plugin or theme:

The path and url values must point to the Button Block Enhancements dependency root, not the file where you call it. The package value is used for extension filters/actions so the package can inherit your parent plugin namespace when embedded. The package's own script and style handles remain fixed as button-block-enhancements-* to avoid collisions with the parent plugin's handles.

You may omit path and url when WordPress can resolve the dependency location automatically, but passing them explicitly is safest for Composer-embedded plugins and themes. Container compilation is only enabled automatically when environment is production and a writable package cache is available.

Usage

Using Icons

  1. Add a Button block.
  2. Open the block sidebar.
  3. Open the Icon panel.
  4. Choose an icon library (WordPress, MUI, MUI Outlined/Rounded/Sharp, or Custom SVG).
  5. Pick an icon. Click it again to remove it.
  6. Open the Icon Styles panel to set icon size and position (left/right).
  7. Save and view the post.

Using Hover/Focus Colors

  1. Add a Button block.
  2. Open the block sidebar.
  3. Open the Color panel.
  4. Use the Text: Focus and Background: Focus controls to pick hover/focus colors.
  5. Save and view the post.

CSS Custom Properties

The following CSS custom properties are available for theming:

Property Default Description
--bmd-button-icon-size 1em Icon width and height
--bmd-button-icon-gap 0.75em Gap between icon and button text
--bmd-button-focus-color Text color on hover/focus (set per-block)
--bmd-button-focus-background-color Background color on hover/focus (set per-block)

Custom Icon Families

Developers can register additional static JSON icon families with the button_block_enhancements_icon_families filter. Each JSON file should contain an array of picker-compatible icon objects with name, label, and source properties.

Changelog

1.2.1

1.1.1

1.1.0


All versions of button-block-enhancements with dependencies

PHP Build Version
Package Version
Requires php-di/php-di Version ^7.1
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 bmd/button-block-enhancements contains the following files

Loading the files please wait ...