PHPackages                             arcweave/fractional-indexing - 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. arcweave/fractional-indexing

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

arcweave/fractional-indexing
============================

Fractional Indexing implementation in PHP

v1.0.0(3y ago)611.8k↑119.9%1[1 issues](https://github.com/Arcweave/fractional-indexing-php/issues)[1 PRs](https://github.com/Arcweave/fractional-indexing-php/pulls)MITPHPPHP &gt;=7.3

Since Mar 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Arcweave/fractional-indexing-php)[ Packagist](https://packagist.org/packages/arcweave/fractional-indexing)[ Docs](https://github.com/arcweave/fractional-indexing-php/)[ RSS](/packages/arcweave-fractional-indexing/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Fractional Indexing
===================

[](#fractional-indexing)

This is based on [Implementing Fractional Indexing ](https://observablehq.com/@dgreensp/implementing-fractional-indexing) by [David Greenspan ](https://github.com/dgreensp).

Fractional indexing is a technique to create an ordering that can be used for [Realtime Editing of Ordered Sequences](https://www.figma.com/blog/realtime-editing-of-ordered-sequences/).

This implementation includes variable-length integers, and the prepend/append optimization described in David's article.

This implementation was based on the [JS Implementation from rocicorp](https://github.com/rocicorp/fractional-indexing).

Installation
------------

[](#installation)

```
$ composer install arcweave/fractional-indexing
```

Other Languages
---------------

[](#other-languages)

This is a PHP port of the original JavaScript implementation by [@rocicorp](https://github.com/rocicorp). That means that this implementation is byte-for-byte compatible with:

LanguageRepoJavaScriptGoPHP

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity40

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

1221d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f8a57e1bdabc37bc5626ce4f8e70175997068fcf4095d79f2a9ad82fe9a6cffc?d=identicon)[arcweave](/maintainers/arcweave)

---

Top Contributors

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

---

Tags

indexingindexesfractionalfractional indexing

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/arcweave-fractional-indexing/health.svg)

```
[![Health](https://phpackages.com/badges/arcweave-fractional-indexing/health.svg)](https://phpackages.com/packages/arcweave-fractional-indexing)
```

###  Alternatives

[cyber-duck/silverstripe-seo

A SilverStripe module to optimise the Meta, crawling, indexing, and sharing of your website content

4351.3k](/packages/cyber-duck-silverstripe-seo)[serenata/serenata

Free and open source server providing code assistance for PHP

6412.6k](/packages/serenata-serenata)[foysal50x/h3-php

PHP FFI bindings for Uber's H3 hexagonal hierarchical geospatial indexing system

139.4k](/packages/foysal50x-h3-php)[fbett/le_acme2

Letsencrypt PHP ACME v2 client

324.3k](/packages/fbett-le-acme2)[grrr-amsterdam/simply-static

Simply Static site generator for wordpress

211.5k1](/packages/grrr-amsterdam-simply-static)

PHPackages © 2026

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