PHPackages                             call-up-io/callup - 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. call-up-io/callup

ActiveLibrary

call-up-io/callup
=================

1412↓100%PHP

Since Sep 6Pushed 4y agoCompare

[ Source](https://github.com/callup-su/callup-php-lib)[ Packagist](https://packagist.org/packages/call-up-io/callup)[ RSS](/packages/call-up-io-callup/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Call-up
=======

[](#call-up)

PHP библиотека для взаимодействия с сервисом [CallUp](https://call-up.io/).

Содержание

- [Входные данные](#%D0%B2%D1%85%D0%BE%D0%B4%D0%BD%D1%8B%D0%B5-%D0%B4%D0%B0%D0%BD%D0%BD%D1%8B%D0%B5)
- [Примеры](#%D0%BF%D1%80%D0%B8%D0%BC%D0%B5%D1%80%D1%8B)
- [Тестирование](#%D1%82%D0%B5%D1%81%D1%82%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5)

Входные данные
--------------

[](#входные-данные)

Объект `CallUp` принимает 3 параметра

- `params` - массив параметров
- `dir` - директория файла конфигураций
- `filename` - название файла конфигурации

```
new CallUp($params, $dir, $filename);
```

> ВАЖНО: если не указан массив `params`, то данные берутся из файла. Если параметры файла не указаны, то данные берутся по умолчанию от корня проекта из файла `.env`

Примеры
-------

[](#примеры)

Для генерации кода необходимо использовать функцию `verify(string $phone)`

где

`$phone` - номер телефона, на который необходимо отправить код верификации

```
try {
  $callUp = new CallUp();
  $r = $callUp->verify($phone);
  if ($r->hasErrors() === true) {
    throw new Exception($r->getErrors());
  }
} catch (Exception $e) {
  // some actions after catching the error
}
```

Для авторизации используется функция `signIn(string $id, string $code)`

где

`$id` - идентификатор заказа

`$code` - 4-х значный код

```
try {
  $callUp = new CallUp();
  $r = $callUp->signIn($id, $code);
  if ($r->hasErrors() === true) {
    throw new Exception($r->getErrors());
  }
  if ($r->getData()['success'] === true) {
    // actions after successful authorization
  };
} catch (Exception $e) {
  // some actions after catching the error
}
```

Тестирование
------------

[](#тестирование)

Для тестирования используется библиотека [PHPUnit 9](https://phpunit.de/getting-started/phpunit-9.html)

Для запуска `unit-тестов` необходимо выполнить команду

```
> ./vendor/bin/phpunit tests
```

Для запуска отдельного `unit-теста` необходимо выполнить команду

```
> ./vendor/bin/phpunit tests ./tests/unit/path/to/file.php
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity28

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://www.gravatar.com/avatar/ef9bd811f1e8c53ab55e24216ee8891fde7c0cf0eba7cc879c8c2641ad7f0e02?d=identicon)[callupsu](/maintainers/callupsu)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/call-up-io-callup/health.svg)

```
[![Health](https://phpackages.com/badges/call-up-io-callup/health.svg)](https://phpackages.com/packages/call-up-io-callup)
```

PHPackages © 2026

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