PHPackages                             taktik/php-lib-registr - 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. taktik/php-lib-registr

ActiveLibrary[API Development](/categories/api)

taktik/php-lib-registr
======================

PHP lib for Register Taktik API project.

1.0(5y ago)014PHPPHP &gt;=7.3

Since Mar 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/DeveloperTaktik/php-lib-registr-taktik)[ Packagist](https://packagist.org/packages/taktik/php-lib-registr)[ RSS](/packages/taktik-php-lib-registr/feed)WikiDiscussions master Synced 1mo ago

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

PHP library for Taktik Registr API
==================================

[](#php-library-for-taktik-registr-api)

This PHP library allows you to work with Taktik Registr API. [Full API documentation](https://registr.etaktik.cz/docs)

[![TAKTIK](https://camo.githubusercontent.com/fe795393d35ff181656a0d0165a0495b0853e6f7dadc3b293aaa524cf653e619/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f332f33352f54414b54494b5f496e7465726e6174696f6e616c5f6c6f676f2e6a7067)](https://camo.githubusercontent.com/fe795393d35ff181656a0d0165a0495b0853e6f7dadc3b293aaa524cf653e619/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f332f33352f54414b54494b5f496e7465726e6174696f6e616c5f6c6f676f2e6a7067)

Install
-------

[](#install)

```
composer require taktik/php-lib-registr

```

Versions
--------

[](#versions)

StateVersionBranchPHPstable`1.0``master``>= 7.3`dev`dev-master``master``>= 7.3`Need to be prepared
-------------------

[](#need-to-be-prepared)

Please prepare a simple interface on your project for data synchronization. API will ping to url `/registr-taktik-import/` and sending JSON data.

### Example usage

[](#example-usage)

```
$fp = fopen('php://input', 'r');
$f = json_decode(stream_get_contents($fp), true);

/* JSON example
    {
        "user:": {
            "uid": "e7urzbVMhIf2TwywnzusCN9YesBghB2ywofzPwiMJG4RATvlayHKaQvT5a8INF4XYXWncs2Rb6cbPyzaMe8iU5QQwJENRrKPmJ9RpMtcCDRRQNTzE1FdcPnNcZB9O02q",
            "email": "johnjohnson@etaktik.cz",
            "phone": "123456789",
            "gender": 1,
            "firstname": "John",
            "lastname": "Johnson",
            "degreeBefore": "Mgr.",
            "degreeAfter": "DiS."
        }
    }
*/

if ($f['user']['uid'] > '') {
    //do action for user update, example:
    mysqli_query('UPDATE user SET ? WHERE uid = ? ', $f['user'], $f['user']['uid']);
}
if ($f['school']['uid'] > '') {
    //do action for school update, example:
    mysqli_query('UPDATE school SET ? WHERE uid = ? ', $f['school'], $f['school']['uid']);
}
```

Configuration array
===================

[](#configuration-array)

KeyNameRequiredTypeNotesecret\_keyUnique secret key for your applicationYes - Login / Registerstring16 charactersx\_taktik\_tokenUnique token for your applicationYes - Login / Registerstring64 charactersbearerJWT token from login or registrationYes - GET, POST, PUT, DELETEJWT keyversionAPI versionNostringonly '1.0' alloweddevChoose between live or dev serverNobooleantrue or false### Example usage

[](#example-usage-1)

```
include '../../vendor/autoload.php';

$conf = [
    'secret_key' => 'YOUR_SECRET_KEY',
    'x_taktik_token' => 'YOUR_X_TAKTIK_TOKEN',
    'bearer' => 'YOUR_GENERATED_TOKEN_FROM_LOGIN',
    'version' => '1.0',
    'dev' => true
];
```

User
====

[](#user)

API provides collecting data from users, inserting, updating and deleting.

### Example usage

[](#example-usage-2)

```
include '../../vendor/autoload.php';

$conf = [
    'secret_key' => 'YOUR_SECRET_KEY',
    'x_taktik_token' => 'YOUR_X_TAKTIK_TOKEN'
];

$api = new TaktikRegistr\TaktikRegistr($conf);

$user = $api->user()->login('login', 'password');

//You can save it to cookie, for later use.
setcookie("user_token", $user->getToken(), $user->getExpiration(), "/");
```

For more examples [click here](src/TaktikRegistr/User/readme.md).

School
======

[](#school)

API provides collecting data from schools, inserting, updating and deleting.

### Example usage

[](#example-usage-3)

```
include '../../vendor/autoload.php';

$conf = [
    'bearer' => 'YOUR_GENERATED_TOKEN_FROM_LOGIN'
];

$api = new TaktikRegistr\TaktikRegistr($conf);

$uid = 'SCHOOL_UNIQUE_ID';
$school = $api->school()->get($uid);

$uid = $school->getUID();
```

For more examples [click here](src/TaktikRegistr/School/readme.md).

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1871d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed9ff897a146c1a51b118a1b83fa8c41dd5364a46e70c75b628fabfdb62bc593?d=identicon)[developer\_taktik](/maintainers/developer_taktik)

---

Top Contributors

[![DeveloperTaktik](https://avatars.githubusercontent.com/u/81362925?v=4)](https://github.com/DeveloperTaktik "DeveloperTaktik (25 commits)")

### Embed Badge

![Health badge](/badges/taktik-php-lib-registr/health.svg)

```
[![Health](https://phpackages.com/badges/taktik-php-lib-registr/health.svg)](https://phpackages.com/packages/taktik-php-lib-registr)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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