Skip to content
ASCIIMath to MathML Converter for PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
ASCIIMathPHP.php
LICENSE
MathMLNode.php
README.md
XMLNode.php
composer.json

README.md

ASCIIMath2MathML

ASCIIMath to MathML Converter for PHP

This repository is a fork of Zefling/ASCIIMathPHP
For original credits see: https://github.com/Zefling/ASCIIMathPHP/blob/master/ASCIIMathPHP-2.1.class.php

Usage

private function makeMathMLRaw($string):string
    {
        $asciiMathPhp = new \ASCIIMath2MathML\ASCIIMathPHP();
        $asciiMathPhp->setExpr($string);
        $asciiMathPhp->genMathML();
        return $asciiMathPhp->getMathML();
    }

Installation

Via composer:

{
"require": {
    "resist/asciimath2mathml": "dev-master"
    }
}
You can’t perform that action at this time.