Download the PHP package bex/behat-extension-driver-locator without Composer

On this page you can find all versions of the php package bex/behat-extension-driver-locator. 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-extension-driver-locator

Behat-ExtensionDriverLocator

Scrutinizer Code Quality Build Status Build Status

Behat-ExtensionDriverLocator helps you load external drivers/services (like image uploaders, output formatters, etc) dinamically. The DriverLocator can find you a service in a preconfigured namespace by a given driverkey.

Installation

Install by adding to your composer.json:

Usage

  1. In your behat extension's configure method use the Driver Node Builder to build the drivers configuration node:

    where:

    • the $driverNamespace is the namespace where the DriverNodeBuilder should look for the drivers when validating a given driver key e.g.: My\\Awesome\\BehatExtension\\Driver
    • the $driverParent is the parent class/interface which should be implemented by all driver e.g.: My\\Awesome\\BehatExtension\\Driver\\MyAwesomeDriverInterface (note that all driver need to implement the Bex\Behat\ExtensionDriverLocator\DriverInterface)
    • the $builder is an Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition instance which you get in your behat extension's configure method as a parameter, the DriverNodeBuilder will add the drivers node to this builder.
    • the $activeDriversNodeName is the name of the node where the user will be able to specify which driver should be used for your extension e.g.: active_my_awesome_drivers
    • the driversCofigurationNodeName is the name of the drivers node, the additional configuration of all driver will be under this node e.g.: my_awesome_drivers
    • the $defaultDriverKeys is the driverkey of the default driver(s) which will be used when the config is empty in the behat.yml e.g.: first_awesomeness
    • Note: The driverkey is always the lowercased and underlined version of the driver's classname. e.g. FirstAwesomeness -> first_awesomeness e.g. First -> first

    With the example configurations a valid config would look like this:

    or

  2. In your behat extension's load method use the Driver Locator to load the active driver(s): Note that it will validate the driver specific configs automatically.

    where:

    • the $driverNamespace is the namespace where the DriverLocator should look for the drivers e.g.: My\\Awesome\\BehatExtension\\Driver
    • the $driverParent is the parent class/interface which should be implemented by all driver e.g.: My\\Awesome\\BehatExtension\\Driver\\MyAwesomeDriverInterface
    • the $container is an Symfony\Component\DependencyInjection\ContainerBuilder instance which you get in your behat extension's load method as a parameter, the DriverLocator will pass this container to the load method of each driver
    • the $activeDrivers are the active image drivers from the $config param which you get in the load method e.g.: $config['active_my_awesome_drivers']
    • the $driverConfigs are the driver specific configuration values from the $config param e.g.: $config['my_awesome_drivers']

All versions of behat-extension-driver-locator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
behat/behat Version ^3.0.0
symfony/config Version ^4.0|^5.0
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 bex/behat-extension-driver-locator contains the following files

Loading the files please wait ....