eddiegulay/necta_api
Composer 安装命令:
composer require eddiegulay/necta_api
包简介
Tool to scrape web results from NECTA Website
README 文档
README
The NECTA API is a PHP-based API that provides access to national results from schools in Tanzania for the years 2021 to 2023. It allows you to retrieve data about schools and their respective results from the National Examination Council of Tanzania (NECTA).
Features
- Retrieve national results from schools in Tanzania for specific years.
- Get detailed information about schools and their results.
- Search for schools and results based on various criteria.
- Access data in a standardized format for easy integration with other applications.
Requirements
- PHP 7.0 or higher
- Composer (Dependency Manager)
Getting Examination centers
require 'centers.php'; // get_centers(year, json){ // year: year of examination // json: true or false //} $centers = get_centers(2021); print_r($centers);
Output
returned data is in groups of threes (each row has 3 centers data)
[0] => Array ( [0] => Array ( [number] => 0101 [reg_no] => P0101 [name] => P0101 AZANIA CENTRE [link] => https://onlinesys.necta.go.tz/results/2021/csee/results/p0101.htm ) [1] => Array ( [number] => 0104 [reg_no] => P0104 [name] => P0104 BWIRU BOYS CENTRE [link] => https://onlinesys.necta.go.tz/results/2021/csee/results/p0104.htm ) [2] => Array ( [number] => 0108 [reg_no] => P0108 [name] => P0108 IFUNDA CENTRE [link] => https://onlinesys.necta.go.tz/results/2021/csee/results/p0108.htm ) ) ...
Getting School results
require 'school.php'; $year = 2021; $school_reg_no = "p0104"; $res = get_school_results($school_reg_no, $year);
Output
Array ( [0] => Array ( [CNO] => CNO [SEX] => SEX [AGGT] => AGGT [DIV] => DIV [DETAILED SUBJECTS] => DETAILED SUBJECTS ) [1] => Array ( [CNO] => P0104/0001 [SEX] => F [AGGT] => - [DIV] => IV [DETAILED SUBJECTS] => CIV - 'C' HIST - 'D' GEO - 'D' BIO - 'D' ) [2] => Array ( [CNO] => P0104/0002 [SEX] => F [AGGT] => 35 [DIV] => 0 [DETAILED SUBJECTS] => CIV - 'F' HIST - 'F' GEO - 'F' KISW - 'F' ENGL - 'F' CHEM - 'F' BIO - 'F' ) [3] => Array ( [CNO] => P0104/0003 [SEX] => F [AGGT] => - [DIV] => IV [DETAILED SUBJECTS] => GEO - 'D' BIO - 'D' ) ...
Important
The API only support 2020 and 2021 csee results for now. We are working on adding more years.
Contibutors
eddiegulay/necta_api 适用场景与选型建议
eddiegulay/necta_api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 7, 最近一次更新时间为 2023 年 07 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 eddiegulay/necta_api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 eddiegulay/necta_api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-07-03