Download the PHP package humanmade/modal-block without Composer

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

HM Modal Block

Simple modal block for the WordPress block editor.

Description

This plugin provides a modal component with two blocks:

Features

Installation

For Development

  1. Clone or download to /wp-content/plugins/modal-block/
  2. Run npm install && npm run build
  3. Activate the plugin in WordPress

For Production

  1. Download a release bundle or clone the release branch
  2. Upload to /wp-content/plugins/modal-block/
  3. Activate the plugin in WordPress

Usage

  1. Add the Modal Trigger block to your page
  2. Inside it, you'll see:
    • A placeholder paragraph (replace this with your trigger: button, image, text, etc.)
    • A Modal Content block (automatically added)
  3. Add your modal content inside the "Modal Content" block
  4. On the front-end, clicking the trigger opens the modal overlay

Tip: Add the class modal-trigger to your trigger element for explicit targeting, or the first block before Modal Content will automatically become the trigger.

Development

If you have nvm installed you can run nvm use in the repository root to activate the correct version of Node.

Setup

Build

Development Mode

Requirements

Release Process

Merges to main will automatically build to the release branch. A project may be set up to track the release branch using composer to pull in the latest built beta version.

Commits on the release branch may be tagged for installation via packagist and marked as releases in GitHub for manual download using a manually-dispatched "Tag and Release" GH Actions workflow.

To tag a new release,

  1. Review the unreleased features in the semantic versioning
  2. Checkout a prepare-v#.#.# branch. In that branch,
    • Add a new header into CHANGELOG.md for any unreleased features
    • Bump the version number in the modal-block.php file's PHPDoc header
  3. Open a pull request from your branch titled "Prepare release v#.#.#"
  4. Review and merge your "Prepare release" pull request
  5. Wait for the release branch to update with the build that includes the new version number
  6. On the "Tag and Release" GH Action page],
    • Click the "Run workflow" button in the "workflow_dispatch" notification banner (see screenshot below)
    • Fill out the "Version tag" field with your target version number
      • This version must match the version in modal-block.php and your newest Changelog section
      • Use the format v#.#.# for your version tag
    • Leave the "Branch to tag" field as release (we will add the tag on the release branch containing the latest built code)
    • Click "Run workflow"

Once the workflow completes, your new version should be tagged and available in the list of releases

License

GPL-2.0-or-later

Author

Human Made Limited - https://humanmade.com


All versions of modal-block with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
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 humanmade/modal-block contains the following files

Loading the files please wait ...