PHP code example of yangcp / php-mathpix-api

1. Go to this page and download the library: Download yangcp/php-mathpix-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yangcp / php-mathpix-api example snippets



angcp\mathpix\MathpixApi;


$config  = [
    "app_id" => '',
    "app_key" => '',
];

$obj = MathpixApi::getInstance($config);

$test = $obj->request('https://gongkao-1253756937.cosgz.myqcloud.com/app_qb/chongqing/img/1632981054.png');

var_dump($test);