PHPackages                             br0sk/yii2-connect - 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. br0sk/yii2-connect

ActiveProject[API Development](/categories/api)

br0sk/yii2-connect
==================

The getconnect.io API for Yii2

0.1.1(10y ago)110BSD-3-ClausePHPPHP &gt;=5.4.0

Since Jul 25Pushed 10y ago1 watchersCompare

[ Source](https://github.com/br0sk/yii2-connect)[ Packagist](https://packagist.org/packages/br0sk/yii2-connect)[ Docs](http://br0sk.blogspot.com)[ RSS](/packages/br0sk-yii2-connect/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

yii2-connect
============

[](#yii2-connect)

A Yii2 extension for

This is an extension for Yii2 that makes it easy to use .

Right now their PHP SDK only supports pushing events.

You can configure it in your application configuration like so:

```
'connect' => [
	'class' => 'br0sk\connect\Connect',
	'projectId' => 'yourprojectid',
	'pushApiKey' 	=> 'yourpushapikey',
]

```

**note:** You can find the project id and push API key in the control panel for you project [here](https://app.getconnect.io/#/projects).

Adding it to your `components` array.

Pushing an event is as easy as:

```
	$event = ['purchase' => ['item' => 'My item 1']];
	Yii::$app->connect->push('purchases', $event);

```

You can also push multiple events at once like this:

```
$batch = [
	'purchases' => [
		[
			'customer' => [
			'firstName' => 'Tom',
			'lastName' => 'Smith'
			],
			'product' => '12 red roses',
			'purchasePrice' => 34.95
		],
		[
			'customer' => [
			'firstName' => 'Fred',
			'lastName' => 'Jones'
			],
			'product' => '12 pink roses',
			'purchasePrice' => 38.95
		]
	]
	];

Yii::$app->connect->push($batch);

```

**Exception handling**

When pushing events, exceptions could be thrown, so you should either ignore or handle those exceptions gracefully.

Currently, the following exception could be thrown when pushing events:

- InvalidEventException - the event being pushed is invalid (e.g. invalid event properties)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Every ~0 days

Total

2

Last Release

3945d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3341dd80fb80b64df5891e5b5ba1294ad81542eb3a4bd28cdc72eb46905db0a?d=identicon)[br0sk](/maintainers/br0sk)

---

Top Contributors

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

---

Tags

yii2statisticsgetconnect.io

### Embed Badge

![Health badge](/badges/br0sk-yii2-connect/health.svg)

```
[![Health](https://phpackages.com/badges/br0sk-yii2-connect/health.svg)](https://phpackages.com/packages/br0sk-yii2-connect)
```

###  Alternatives

[dotzero/yii2-amocrm

Расширение для Yii Framework 2 реализующее клиент для работы с API amoCRM

1639.7k](/packages/dotzero-yii2-amocrm)[conquer/services

Yii2 soap wsdl web services

1632.5k](/packages/conquer-services)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)[luyadev/luya-headless

LUYA headless API client

1025.6k3](/packages/luyadev-luya-headless)[apexwire/yii2-restclient

Tools to use API as ActiveRecord for Yii2

143.5k](/packages/apexwire-yii2-restclient)[kun391/yii2-paypal

Process with Paypal

161.6k](/packages/kun391-yii2-paypal)

PHPackages © 2026

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