Download the PHP package kerasai/behat-tokenizer without Composer

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

The Behat Tokenizer allows you to set and utilize tokens in your Behat test suite.

Installing Behat Tokenizer

Install the Behat tokenizer using Composer:

Configuring Behat Tokenizer

Add the TokenizerExtension class to the behat.yml file and tokens will be processed.

Using Behat Tokenizer in Contexts

To utilize the Behat Tokenizer in context classes, simple implement \Kerasai\Behat\Tokenizer\TokenizerAwareInterface and the context will have its ::setTokenizer method called with the tokenizer.

Additionally you may use \Kerasai\Behat\Tokenizer\TokenizerAwareTrait to easily implement the interface.

From there you may access the tokenizer within the context:

The token will be processed for all arguments within Behat features:

Custom Token Replacers

In addition to explicit token setting and replacement, custom replacer classes may be implemented to perform token replacement.

Replacer classes must implement \Kerasai\Behat\Tokenizer\Replacer\ReplacerInterface and may extend \Kerasai\Behat\Tokenizer\Replacer\ReplacerBase for convenience.

See \Kerasai\Behat\Tokenizer\Replacer\TimestampReplacer.

In order to utilize the custom replacer classes, they must be exposed to the Behat Tokenizer in the behat.yml configuration. In the simplest form, just the class name may be utilized.


All versions of behat-tokenizer with dependencies

PHP Build Version
Package Version
Requires behat/behat Version ^3.5
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 kerasai/behat-tokenizer contains the following files

Loading the files please wait ....