Download the PHP package gabrielelana/violent-death without Composer

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

Violent Death Build Status

How do you know that your code is fault tolerant? How can you verify that it will not break in some terrible and irrecoverable way when something bad happens? This package will help you to simulate the most lethal events that your code can possibly face in its life.

Scenario

You want to test the fault tolerance of your code. You want to make sure that your code will always leave this world with things in a consistent state. The problem is that the kind of failure you can create inside PHP are

If you are asking yourself how can you manage this kind of failures then graceful-death it's your answer

Usage

How Does It Work?

To create a segmentation fault we rely on a C extension. To eventually create a segmentation fault in the future (while the code is doing something else) we create a background thread that will wait some amount of time and then cause a segmentation fault.

Gotchas

You need to be able to compile a PHP extension and you need the pthread library installed. The segmentation fault it's not guaranteed on all platforms (aka for every combination of C compiler, OS kernel and CPU architecture), so it may not work, AFAIK the notion of segmentation fault it's not part of any ANSI C standard so there's no standard way to create a genuine segmentation fault.

Overview

drink_poison($msToTakeEffect, $msToAgonizeAtMost, $probabilityToDie)

It will create a segmentation fault at least after $msToTakeEffect milliseconds and at most after $msToTakeEffect + $msToAgonizeAtMost milliseconds. This will happen asynchronously in a background thread so that after this call the code can continue its normal flow

play_russian_roulette($probabilityToDie)

It will probably create a segmentation fault. The percentage of probability can be passed as parameter

In Blast Extension: die_violently_after($msToWait)

In Blast Extension: die_violently($msToWait)

Install

You can comfortably install the package through composer

But before you need to install the blast native extension

Install Native Extension

To make sure to cause the most possible damage we need the most powerful and reliable weapon of self-destruction known to man: the C language

Hopefully now the extension is compiled and installed. Now you need to enable it appending extension=blast.so in your php.ini file. Run the following commands, if you see the green bar then you are good to go

Self-Promotion

If you like this project, then consider to:


All versions of violent-death with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-blast 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 gabrielelana/violent-death contains the following files

Loading the files please wait ....