PHPackages                             shadiakiki1986/blackscholes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. shadiakiki1986/blackscholes

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

shadiakiki1986/blackscholes
===========================

0.0.2(9y ago)11.1k↓26.7%1PHP

Since Jan 5Pushed 8y ago2 watchersCompare

[ Source](https://github.com/shadiakiki1986/php-blackscholes)[ Packagist](https://packagist.org/packages/shadiakiki1986/blackscholes)[ RSS](/packages/shadiakiki1986-blackscholes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

php-blackscholes [![Build Status](https://camo.githubusercontent.com/d3a380919c64aca6956446b8861b7c261c6bc89a3cf0100532d64adecdd616ab/68747470733a2f2f7472617669732d63692e6f72672f7368616469616b696b69313938362f7068702d626c61636b7363686f6c65732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/shadiakiki1986/php-blackscholes)
=============================================================================================================================================================================================================================================================================================================================================

[](#php-blackscholes-)

Black-Scholes option pricing in php

Based on [Black-Scholes in Multiple Languages](http://cseweb.ucsd.edu/~goguen/courses/130/SayBlackScholes.html) and [wikipedia formula](https://en.wikipedia.org/wiki/Black%E2%80%93Scholes_model#Black.E2.80.93Scholes_formula)

Installation
============

[](#installation)

`composer require shadiakiki1986/blackscholes`

Usage
=====

[](#usage)

Example
-------

[](#example)

Call option price example from [quora](https://invento.quora.com/Advanced-Black-Scholes-calculation-with-a-real-example)

```
require_once 'vendor/autoload.php';

$strike = 470;
$interest = 0.02;
$timeToMaturity = 0.17;
$underlyingPrice = 460;
$volatility = 0.58;
$bs = new \shadiakiki1986\BlackScholes(
  $underlyingPrice,
  $strike,
  $timeToMaturity,
  $interest,
  $volatility
);
var_dump($bs->call());
```

will display `40.1047` (note that they have a mistake in their d1 function)

Alternatively

```
$call = new \shadiakiki1986\BlackScholesStatic::calculate(
  'c',
  $underlyingPrice,
  $strike,
  $timeToMaturity,
  $interest,
  $volatility
);
var_dump($call);
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3414d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cc997a8672e96aaee90c8555b7e5bc9693894e74c7530abf2216ee6799357ff?d=identicon)[shadiakiki1986](/maintainers/shadiakiki1986)

---

Top Contributors

[![shadiakiki1986](https://avatars.githubusercontent.com/u/8392324?v=4)](https://github.com/shadiakiki1986 "shadiakiki1986 (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shadiakiki1986-blackscholes/health.svg)

```
[![Health](https://phpackages.com/badges/shadiakiki1986-blackscholes/health.svg)](https://phpackages.com/packages/shadiakiki1986-blackscholes)
```

###  Alternatives

[coffeecode/paginator

Paginator is simple and is ready to generate results navigation in your application

59658.1k1](/packages/coffeecode-paginator)[intrfce/laravel-frontend-enums

Stop using 'magic' strings/numbers in your frontend Javascript and use your actual application enums instead.

2320.6k](/packages/intrfce-laravel-frontend-enums)[ofbeaton/phpami

Asterisk Manager Interface (AMI) for PHP 5.4+ supporting legacy v1.4 to v13 with no thrills.

1637.3k](/packages/ofbeaton-phpami)[djoudi/laravel-h5p

H5P Plugin for Laravel platform - Updated for Laravel 12

221.6k](/packages/djoudi-laravel-h5p)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
