定制 wiwofone/memorize 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wiwofone/memorize

Composer 安装命令:

composer require wiwofone/memorize

包简介

A PHP implementation of the SM-2 algorithm

README 文档

README

Build Status

A PHP implementation of the SM-2 algorithm.

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.

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.

{
    "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.

Testing

Run PHPUnit with $ phpunit in the root directory.

Author

统计信息

  • 总下载量: 123
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 33
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 33
  • Watchers: 4
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-04-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固