Download the PHP package mathieu-bour/hydra without Composer

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

Hydra

Simple and clean testing for Laravel and Lumen packages. Supports Laravel/Lumen 5.8.x, 6.x, 7.x and 8.x.

Stability disclaimer

This package is still in early development stage, and there are many bugs and planned features. Use it at your own risk.

Requirements

Acknowledgements

This package what greatly inspired by the orchestra/testbench package.

Configuration

Hydra configuration must be written at the base of your project. The recognized file names are the following:

sandbox (defaults to ./hydra)

The hydra base directory, where the benches will be installed.

benches

A bench is described by a name (its key) and the framework (laravel or lumen) and the framework version constraint. For example, the following configuration:

will create a bench laravel-7 using the laravel/laravel framework and the SemVer constraint ^7.0.

composer (defaults to composer)

Since Hydra relies on the composer executable, you may want to override the composer executable.

For example:

Usage

Installing benches

To install the benches defined in the configuration file, run:

You may use the --only [bench] to install only a single bench (during matrix pipelines).

Cleaning benches

To delete all your benches, simply run:

In PHPUnit tests

Setup PHPUnit

Since Hydra will basically hijack composer autoloader, you will need to replace the PHPUnit bootstrap file. During installation, Hydra generates a new bootstrap file which has to be specified in PHPUnit configuration.

For example, in a phpunit.xml file:

Choose the test bench

The test bench selection is achieved through the HYDRA_BENCH environment variable.

You can run phpunit like this:

Use the HydraTestCase

In order to set up tests for your package, you have to use the Windy\Hydra\Testing\HydraTestCase class.

Define a configuration:
Define your providers
Specific setup for Laravel and Lumen

If you need to run specific setup for Laravel or Lumen, you may use:


All versions of hydra with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3 || ^8.0
ext-json Version *
phpcompatibility/php-compatibility Version *
phpunit/phpunit Version ^7.0 || ^8.0 || ^9.0
symfony/console Version ^4.0 || ^5.2
symfony/process Version ^4.0 || ^5.2
symfony/yaml Version ^4.0 || ^5.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 mathieu-bour/hydra contains the following files

Loading the files please wait ....