2017 © Pedro Peláez
 

library memorize

A PHP implementation of the SM-2 algorithm

image

wiwofone/memorize

A PHP implementation of the SM-2 algorithm

  • Wednesday, August 19, 2015
  • by wiwofone
  • Repository
  • 5 Watchers
  • 20 Stars
  • 38 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Memorize

Build Status, (*1)

A PHP implementation of the SM-2 algorithm., (*2)

About

This is a library created by me to try out popular tools such as Travis, Packagist and Composer, as well as setting up a library structure and enhancing my understanding of test driven development. While being a test project for me, the library is still completely usable and could be used by any database of questions and answers to implement spaced repetition in an application., (*3)

Features

  • Calculate the interval in which to repeat an item after the n:th repetition based on an E-factor.
  • Calculate an E-factor for an item based on the old factor (or no factor) and a response quality.

Installation

Memorize is installed through Composer. Add the following to your composer.json file., (*4)

{
    "require": {
        "wiwofone/memorize": "1.*"
    }
}

The algorithm

SM is a family of algorithms made popular by the SuperMemo software package. The Memorize library implements the complete SM-2 algorithm in PHP. The SM2 class handles calculating repetition intervals and E-factors. The Card class handles flash cards and how many times they have been virtually repeated. Finally, the Repeater class handles actual repetition of a CardQueue, deciding which cards to repeat first and if they have been repeated successfully or not., (*5)

Testing

Run PHPUnit with $ phpunit in the root directory., (*6)

Author

  • Shahin Zarrabi - shahin@wiwo.se - @wiwofone - http://www.wiwo.se

The Versions

19/08 2015

dev-fix-algorithm-errors

dev-fix-algorithm-errors https://github.com/wiwofone/memorize

A PHP implementation of the SM-2 algorithm

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

sm-2 supermemo spaced repetition

15/08 2014

dev-master

9999999-dev https://github.com/wiwofone/memorize

A PHP implementation of the SM-2 algorithm

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

sm-2 supermemo spaced repetition

24/04 2014

1.0.1

1.0.1.0 https://github.com/wiwofone/memorize

A PHP implementation of the SM-2 algorithm

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

sm-2 supermemo spaced repetition

24/04 2014

1.0

1.0.0.0 https://github.com/wiwofone/memorize

A PHP implementation of the SM-2 algorithm

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

sm-2 supermemo spaced repetition