amitshrestha / calculator
This package will initialize a calculator instance for your laravel application.
v1.02
2018-02-09 11:34 UTC
This package is not auto-updated.
Last update: 2025-06-25 08:09:33 UTC
README
This repository contains my first package using Laravel 5.5. This repository contains basic calculator package.
Installation:
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"
Uses:
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