wesleybnd/firstfactorial

PHP * Solução para buscar o primeiro fatorial

1.0.0 2022-01-30 23:47 UTC

This package is auto-updated.

Last update: 2024-09-29 06:36:08 UTC


README

Source Code PHP from Packagist Latest Version Software License Build Quality Score Total Downloads

PHP * Find the first factorial of the inner numbers less than or equal to 20

PHP * Encontre o primeiro fatorial dos números internos menores ou igual a 20

Highlights

  • Optimized Algorithm (Simple installation)
  • Only accepts numbers equal to or less than 21 (integer type value limit)
  • Composer ready and PSR-2 compliant (Pronto para o composer e compatível com PSR-2)

Installation

FirstFactorial is available via Composer:

"wesleybnd/firstfactorial": "^1.0"

or run

composer require wesleybnd/firstfactorial

Documentation

For details on how to use, see a sample folder in the component directory. In it you will have an example of use for each class. It works like this:

Para mais detalhes sobre como usar, veja uma pasta de exemplo no diretório do componente. Nela terá um exemplo de uso para cada classe. Ele funciona assim:

User endpoint:

<?php

require "../vendor/autoload.php";

use wesleybnd\FirstFactorial\App\Factorial;

//parametro de exemplo igual a 20
echo Factorial::firstFactorial(20);  

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.