Download the PHP package kanopi/shrubs without Composer

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

shrubs

Shrubs (Drupal Cypress Support Commands)

Common support commands for Cypress when interacting with Drupal.

Table of Contents

Requirements

Installation

Install/update composer installers.

Add two entries in composer.json for an install-type and its path:

Tell Cypress where to import the tests

In the support folder for where your Cypress tests are located, edit commands.js and add the following:

Requiring Shrubs using Composer

The Shrubs repository is available via Packagist.

Once you have completed the steps above, run the following command:

composer require kanopi/shrubs

Update your CI process to...

@TODO (See what Paul did on Parks)

Available Commands

Drupal Cypress autocomplete

Will select the first match from an autocomplete field.

Drupal Cypress ckEditor get

Gets the value of a ckeditor instance.

Drupal Cypress ckEditor type

Set the value of a ckeditor instance.

Drupal Cypress drush

Runs Drush commands in multiple environments

Support running commands against Pantheon multidev environments as well.

Drupal Cypress login

Sets a default login but also passing custom login details

Assuming there is some other process to create the user.

Drupal Cypress logout

Logs out of the current session

Ajax Click

There a clicks that can generate a blocking ajax request. I.E. Opening modals or slideouts that load content with an ajax request.

The function will wrap an intercept/wait combination around the click to make sure the tests don't continue until the ajax request as completed.

It's also meant to deal with the anti-pattern of using wait() for clicks that trigger ajax requests.

Example

This replaces code that would look like this.

or

Drupal Cypress add item to media library

Uploads a file to the media library and selects it in the field.

Can optionally set the type of media uploaded if there is more than one type available.

Files are expected to be in the fixtures folder at the same level as support and e2e. In most cases, that will be /tests/cypress/cypress/fixtures.

Drupal Cypress select item in the media library

Open a media browser modal and selects an existing media item

Can optionally set the type of media uploaded if there is more than one type available.

Files are expected to be in the fixtures folder.

Drupal Cypress upload file

Upload a file through a file field Files should be in the fixtures folder.

Issues

For issues and support, please use the issue queue at https://www.drupal.org/project/issues/shrubs?categories=All

Maintainers

Current maintainers:

This project is sponsored by:


All versions of shrubs with dependencies

PHP Build Version
Package 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 kanopi/shrubs contains the following files

Loading the files please wait ....