amitshrestha/calculator

此包将为您的Laravel应用程序初始化计算器实例。

v1.02 2018-02-09 11:34 UTC

This package is not auto-updated.

Last update: 2024-10-02 04:54:47 UTC


README

此仓库包含了我使用Laravel 5.5编写的第一个包。此仓库包含基本计算器包。

安装

composer require amitshrestha/calculator:1.02

For Laravel 5.5 : Package is auto discovered.

For Laravel 5.4 or lower version : 

Add this in $providers array of config/app.php
"Amitshrestha\\Calculator\\CalculatorServiceProvider"

使用

Add two variables:

@param variable1, variable 2
project.dev/add/variable1/variable2


Subtract two variables:
@param variable1, variable 2
project.dev/subtract/variable1/variable2

Multiply two variables:
@param variable1, variable 2
project.dev/multiply/variable1/variable2

Divide two variables:
@param variable1, variable 2
project.dev/divide/variable1/variable2

Nth Root of variable:
@param variable1
project.dev/root/variable1

Factorial of a variable:
@param variable1
project.dev/factorial/variable1