• Stars
    star
    775
  • Rank 56,337 (Top 2 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 8 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A PHP experimentation library inspired by Github's own Scientist.

Scientist

Scientist

Build Status Scrutinizer Code Quality Code Coverage Code Climate

Packagist Version Packagist

A PHP experiment library inspired by Github's own Scientist.


Introduction

Scientist is an experimentation framework for PHP that will allow you to refactor and improve upon existing code in a live environment, without incurring risk or breakages.

Simply define an experiment, sit back, and let the results flow in.

<?php

// We need a Laboratory to do science.
$experiment = (new Scientist\Laboratory)

    // Define an experiment with a name.
    ->experiment('experiment title')
    
    // Set a callback containing our control code.
    ->control($controlCallback)
    
    // Set a callback containing our trial code.
    ->trial('trial name', $trialCallback);

// Run the experiment, receiving the control return value.
$value = $experiment->run();

A more detailed description, and full documentation is available.

User Contributed Resources

Users of scientist contribute a variety of resources to enhance the functionality of the application.

Journals

Journals allow experiment data to be sent to data stores for later inspection.

Bridges

Bridges allow for Scientist to be used seamlessly with other frameworks and libraries.

Matchers

Matchers allow for complex types to be matched.

Interfaces

Interfaces allow for experiment data to be viewed in a clear way.

More Repositories

1

colour-schemes

Colour schemes for a variety of editors created by Dayle Rees.
HTML
9,317
star
2

material-peacock

Peacock colour scheme optimized for the Material UI PHPStorm theme.
575
star
3

test-driven-development-example

An introduction to Test-Driven Development (TDD).
PHP
508
star
4

dependency-injection-example

An introduction to Dependency Injection.
PHP
417
star
5

laravel-website-configs

Webserver configuration files for Laravel 4.
337
star
6

anbu

Anbu profiler for the Laravel PHP Framework.
CSS
309
star
7

sanitizer

Sanitize data using a number of mutation methods.
PHP
259
star
8

kurenai

Kurenai is a document with metadata parsing library for PHP.
PHP
151
star
9

laravel-resources

A list of resources for the Laravel framework.
65
star
10

laravel-vagrant

Vagrant configuration for Laravel 4.
Ruby
59
star
11

container-debug

Container debug command for Laravel four.
PHP
56
star
12

scientist-laravel

Allow the Scientist library to be used with the Laravel PHP framework.
PHP
53
star
13

default-github-templates

Default templates for contribution guide, issues, and pull requests.
41
star
14

blog-tutorial-code

The code that accompanies the blog tutorial chapter.
PHP
19
star
15

inversion-of-control-container-example

PHP
15
star
16

presenters

PHP
8
star
17

daylerees.github.io

CSS
7
star
18

container-example

Example code to accompany article @ https://daylerees.com/container-baking
PHP
4
star
19

rainglow-atom

300+ themes for Atom editor.
CSS
4
star
20

resume

Resume/CV for Dayle Rees.
HTML
4
star
21

anbu-agent

Agent for the Anbu profiler.
PHP
3
star
22

events-challenge

Go
2
star
23

brackets

320+ color themes for Adobe Brackets.
CSS
2
star
24

go-exercises

Just some Golang exercises
Go
1
star
25

rainbow

Color scheme generation.
JavaScript
1
star
26

json-rpc-foundation

Implementation of JSON-RPC protocol using Symfony HTTP Foundation.
PHP
1
star