(Translated by https://www.hiragana.jp/)
GitHub - qianlongzt/CET: a simple CET library. 简单大学英语四六级库
Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.
/ CET Public archive

a simple CET library. 简单大学だいがくえい语四ろく级库

License

Notifications You must be signed in to change notification settings

qianlongzt/CET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CET

简单大学だいがくえい语四ろく级库

开发其他语言版本はんぽん

参考さんこう 开发ぶん

あんそう

つう过 Composer 进行あんそう

composer require qianlongzt/cet

使用しよう CetScore

<?php
require_once __DIR__ .'/vendor/autoload.php';

$ticket = '1234567891012345';
$name = '张三';
$source = '99sushe'; # chsi (がくしん网), 99sushe(99宿舍しゅくしゃ)
$cetScore = Qianlongzt\Cet\CetScore::getScore($name, $ticket, $source);
var_dump($cetScore);

输出ぞう这样

array(15) {
  ["status"]=>
  bool(true)    # 获取成功せいこう
  ["errType"]=>
  int(0)        # 错误だい码
  ["errMsg"] =>
  "ok"          # 错误说明,为 0 时 不出ふしゅつ现这个 key
  ["name"]=>
  string(6) "张さん"
  ["school"]=>
  string(18) "xxx大学だいがく"
  ["type"]=>
  string(12) "えい语四级"
  ["ticket"]=>
  string(15) "330000162100000" # じゅんこう证号
  ["examTime"]=>
  string(12) "2016ねん12月"
  ["score"]=>
  int(471)                      # 总分
  ["listening"]=>               #听力
  int(166)
  ["reading"]=>                 # 阅读
  int(168)
  ["writing"]=>                 # うつしさくこぼし译
  int(137)
  ["hearingLoss"]=>             # 听力ざんやまし ただゆうらいげん 99sushe ざいゆう
  bool(false)
  ["spokenTestid"]=>            # くち语准こう证号
  string(15) "F12345678901234"
  ["spokenGrade"]=>             # くち语等级
  string(3) "C+"
  ["source"]=>
  string(7) "99sushe"
}

使用しよう学校がっこう名称めいしょう

ゆう学校がっこう可能かのう一个编号对应于有多个名字

<?php
require_once __DIR__ .'/vendor/autoload.php';

$code = new Qianlongzt\Cet\CetSchoolCode();
var_dump($code->getName('3303070'));

sample output like this

array(1) {
  [0]=>
    string(24) "杭州こうしゅう电子科技かぎ大学だいがく"
}

はん

The MIT License. Please see License File for more information.

About

a simple CET library. 简单大学だいがくえい语四ろく级库

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages