PHPackages                             calq/calq - 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. calq/calq

ActiveLibrary[API Development](/categories/api)

calq/calq
=========

Calq API client for PHP

1.0.3(11y ago)24.5k1[1 issues](https://github.com/Calq/Client-PHP/issues)Apache-2.0PHPPHP &gt;=5.3.0

Since Apr 7Pushed 10y ago2 watchersCompare

[ Source](https://github.com/Calq/Client-PHP)[ Packagist](https://packagist.org/packages/calq/calq)[ Docs](https://github.com/Calq/Client-PHP)[ RSS](/packages/calq-calq/feed)WikiDiscussions master Synced 1mo ago

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

Calq PHP Client
===============

[](#calq-php-client)

The full quick start and reference docs can be found at:

Installation
------------

[](#installation)

\###Using composer (recommended)

Install the [latest release](https://packagist.org/packages/calq/calq) of the library through Composer with the following command:

```
composer require calq/calq
```

\###Old-style copy-and-paste

Grab the [latest release](https://github.com/Calq/Client-PHP/releases) and add it to your project.

You will need to include the CalqClient library where you intend to use it. The library requires PHP 5.2 or higher.

```
require_once("/path/to/Client-PHP/lib/CalqClient.php");
```

Getting a client instance
-------------------------

[](#getting-a-client-instance)

The easiest way to get an instance of the client is to use the static `CalqClient::fromCurrentRequest` method. This will create a client using any cookie already data set for the current web request. If the current user has never been seen before the client will remember them in future by writing a cookie to the response.

You will need to add your Calq project's write key where it says YOUR\_WRITE\_KEY\_HERE. You can find your write key from the project settings option inside Calq.

```
// Get an instance populated from the current request
$calq = CalqClient::fromCurrentRequest('YOUR_WRITE_KEY_HERE');
```

The PHP client is compatible with the JavaScript client. Any properties set client side using JavaScript will be read by the PHP client when using the `CalqClient::fromCurrentRequest` method. Likewise any properties set server side will be persisted to a cookie to be read browser side.

Tracking actions
----------------

[](#tracking-actions)

Calq performs analytics based on actions that user's take. You can track an action using `track`. Specify the action and any associated data you wish to record.

```
// Track a new action called 'Product Review' with a custom rating
$calq->track('Product Review', array('Rating' => 9.0));
```

The array parameter allows you to send additional custom data about the action. This extra data can be used to make advanced queries within Calq.

Documentation
-------------

[](#documentation)

The full quick start can be found at:

The reference can be found at:

License
-------

[](#license)

[Licensed under the Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.7% 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

4059d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/940c190e0ca9479c2279170669488da8d9de0d469c5672b5711ba3b0766c9dd6?d=identicon)[RRAway](/maintainers/RRAway)

---

Top Contributors

[![andy-noisyduck](https://avatars.githubusercontent.com/u/45369568?v=4)](https://github.com/andy-noisyduck "andy-noisyduck (8 commits)")[![RRAway](https://avatars.githubusercontent.com/u/1835627?v=4)](https://github.com/RRAway "RRAway (2 commits)")[![lmammino](https://avatars.githubusercontent.com/u/205629?v=4)](https://github.com/lmammino "lmammino (1 commits)")

---

Tags

calq

### Embed Badge

![Health badge](/badges/calq-calq/health.svg)

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

###  Alternatives

[tinify/tinify

PHP client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.

2515.2M71](/packages/tinify-tinify)[corsinvest/cv4pve-api-php

Corsinvest Proxmox VE Client API PHP

801.4M](/packages/corsinvest-cv4pve-api-php)[zzantares/proxmoxve

A simple PHP 5.5+ Proxmox API client.

17761.8k4](/packages/zzantares-proxmoxve)[snowcap/emarsys

Emarsys RestFull API client

381.2M](/packages/snowcap-emarsys)[shortpixel/shortpixel-php

ShortPixel PHP SDK. Read more at https://shortpixel.com/api-tools

37531.5k10](/packages/shortpixel-shortpixel-php)[mrkampf/proxmox-ve

Proxmox VE API Client

6238.2k](/packages/mrkampf-proxmox-ve)

PHPackages © 2026

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