PHPackages                             dynamophp/vector-clock - 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. dynamophp/vector-clock

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

dynamophp/vector-clock
======================

1.0.0(3y ago)1061[3 issues](https://github.com/BaptisteContreras/vector-clock/issues)[1 PRs](https://github.com/BaptisteContreras/vector-clock/pulls)MITPHP

Since Apr 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/BaptisteContreras/vector-clock)[ Packagist](https://packagist.org/packages/dynamophp/vector-clock)[ RSS](/packages/dynamophp-vector-clock/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (3)Used By (0)

Vector Clock and Lamport timestamp PHP library
==============================================

[](#vector-clock-and-lamport-timestamp-php-library)

This project is a PHP implementation of the concept of **Vector Clock** and **Lamport timestamp** as defined in the paper : **Timestamps in Message-Passing Systems That Preserve the Partial Ordering** (paper/vector-clock-paper.pdf).

This library provides :

- Lamport timestamp
- Asynchrone vector clock
- Synchrone vector clock

These implementations carefully follow the research paper and all classes are fully tested (100% coverage).

Every example present in the paper is transcribed as a Phpunit test.

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

[](#installation)

```
composer require dynamophp/vector-clock
```

Lamport timestamp
-----------------

[](#lamport-timestamp)

### Usage

[](#usage)

```
