PHPackages                             pfaciana/bspline - 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. pfaciana/bspline

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

pfaciana/bspline
================

A simple and fast uniform-knot BSpline curve implementation in PHP.

1.0.0(4y ago)010MITPHP

Since Jul 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pfaciana/bspline)[ Packagist](https://packagist.org/packages/pfaciana/bspline)[ Docs](https://renderdev.com/)[ RSS](/packages/pfaciana-bspline/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

BSpline
=======

[](#bspline)

A simple and fast uniform-knot BSpline curve implementation in PHP. Usually, BSpline's basis function is defined recursively by De Boor's algorithm. But this library includes pre-calculated uniform-knot BSpline basis. Thus, the library works very fast.

Usage:

```
$spline = new BSpline($points);
$spline->calcAt($t, $degree);
// or
$spline->run($degree);

```

- *points* : The array of points. Array of any dimensional vector is OK.
- *degree* : The degree of BSpline curve. *degree* should be 2,3,4 or 5.
- *t* : The parametor of BSpline. t is in \[0,1\]. If t = 0 then returns first point of *points*. If t = 1 then returns last point of *points*.

Example:

```
$points = [[1,2],[2,3],[3,4]];
$spline = new BSpline($points);
for($t = 0; $t calcAt($t, 3);
}
// or
$sPoints = $spline->run(3);

```

Demo is available [here](http://tagussan.rdy.jp/singleProjects/BSpline/ "Demo")

> **NOTE:** This is a PHP port of

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

1766d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4542fd31b9db1d4fef42a3336d2271856f1b78a89cdb6c0afd9834e950bddf1d?d=identicon)[pfaciana](/maintainers/pfaciana)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/pfaciana-bspline/health.svg)

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

PHPackages © 2026

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