Download the PHP package yard/brave-components without Composer

On this page you can find all versions of the php package yard/brave-components. 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 brave-components

Brave components

Code Style PHPStan Tests Code Coverage Badge Lines of Code Badge

Collection of logic-heavy components used in Brave projects.

Requirements

Installation

To install this package using Composer, follow these steps:

  1. Install this package with Composer:

  2. Run the Acorn WP-CLI command to discover this package:

You can publish the config file with:

To only publish the views, run:

Components

Back Button

Shows a back button that determines its link and text by checking the parent page. If the post has no parent, it sets the link to a predefined parent page slug or defaults to "javascript:history.back();".

Usage:

Breadcrumb

Generate a breadcrumb based on the current page. Also adds posts added through the parent-page supports feature. Usage:

Or pass your own collection of items to show a custom breadcrumb:

Dialog

Usage:

Pattern Content

Shows the content of a pattern by its slug. You can find the slug (post name) using the wp post get CLI command and providing the post ID.

Usage:

Configure the admin behavior of each pattern in the components.php config file to automatically save them as drafts (thus hiding them from the pattern inserter), prevent their deletion, and add custom labels in the admin view.

Read Speaker

Adds a ReadSpeaker button on specific places with the component and automatically adds it to the content of H1 blocks in the post content. Make sure to configure the readSpeaker settings in the components.php config file to set your customer ID and other options.

Usage:

Nav

Navigation component with optional dropdowns. Provides the right ARIA attributes and keyboard navigation for accessibility.

Dropdown visibility is controlled via aria-expanded. Use it in combination with the group class on the parent item and group-has-aria-expanded variants to show/hide the dropdown.

Dropdown modes

For accessibility, the <x-brave::nav> component requires an aria-label.

Example usage with Navi:

Usage without Navi:

Tooltip

Usage:

About us

banner


All versions of brave-components with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
roots/acorn Version ^4.3
spatie/laravel-package-tools Version ^1.16
yard/wp-hook-registrar Version *
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 yard/brave-components contains the following files

Loading the files please wait ...