PHPackages                             eddiegulay/necta\_api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. eddiegulay/necta\_api

ActiveLibrary[API Development](/categories/api)

eddiegulay/necta\_api
=====================

Tool to scrape web results from NECTA Website

71PHP

Since Jul 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/eddiegulay/NECTA-Results-API)[ Packagist](https://packagist.org/packages/eddiegulay/necta_api)[ RSS](/packages/eddiegulay-necta-api/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (1)Used By (0)

NECTA API
=========

[](#necta-api)

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
--------

[](#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
------------

[](#requirements)

- PHP 7.0 or higher
- Composer (Dependency Manager)

Getting Examination centers
---------------------------

[](#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

[](#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
----------------------

[](#getting-school-results)

```
require 'school.php';

$year = 2021;
$school_reg_no = "p0104";

$res = get_school_results($school_reg_no, $year);
```

Output
------

[](#output-1)

```
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
=========

[](#important)

The API only support 2020 and 2021 csee results for now. We are working on adding more years.

Contibutors
===========

[](#contibutors)

- [Eddie Gulay](https://github.com/eddiegulay)
- Gloria Madunda

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/88213379?v=4)[Eddie Gulay](/maintainers/eddiegulay)[@eddiegulay](https://github.com/eddiegulay)

---

Top Contributors

[![eddiegulay](https://avatars.githubusercontent.com/u/88213379?v=4)](https://github.com/eddiegulay "eddiegulay (8 commits)")

---

Tags

20202021apicseeeducationnectaphpresultstanzania

### Embed Badge

![Health badge](/badges/eddiegulay-necta-api/health.svg)

```
[![Health](https://phpackages.com/badges/eddiegulay-necta-api/health.svg)](https://phpackages.com/packages/eddiegulay-necta-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
