2017 © Pedro Peláez
 

library factorial

image

vehsamrak/factorial

  • Tuesday, April 4, 2017
  • by Rottenwood
  • Repository
  • 1 Watchers
  • 2 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Factorial

Tested factorialization library., (*1)

Build Status Code Coverage Scrutinizer Code Quality, (*2)

Requirements

  • PHP >= 7.0
  • Composer (if you dont have composer, visit https://getcomposer.org/download)

Installation

Install with composer: composer require vehsamrak/factorial, (*3)

Usage

use Vehsamrak\Factorial\Factorial as FactorialCalculator;

$factorialCalculator = new FactorialCalculator();
$result = $factorialCalculator->factorialize(0); // $result == 1
$result = $factorialCalculator->factorialize(3); // $result == 6
$result = $factorialCalculator->factorialize(10); // $result == 3628800 

Tests

To run tests clone this repository and install dependencies with composer install., (*4)

Then with built-in PHPUnit type: vendor/bin/phpunit, (*5)

The Versions

04/04 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Petr Karmashev

22/02 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

The Development Requires

by Petr Karmashev