PHPackages                             aamortimer/woopra - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. aamortimer/woopra

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

aamortimer/woopra
=================

Woorpa PHP SDK

v1.0.2(11y ago)072MITPHPPHP &gt;=5.3.0

Since Sep 9Pushed 11y agoCompare

[ Source](https://github.com/aamortimer/Woopra)[ Packagist](https://packagist.org/packages/aamortimer/woopra)[ Docs](https://github.com/aamortimer/Woopra)[ RSS](/packages/aamortimer-woopra/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Woopra PHP SDK
==============

[](#woopra-php-sdk)

This library allows you to more easily comunicate with the [Woopra API](https://www.woopra.com/docs/developer/api-introduction/)

\##Installing via Composer

The recommended way to install Woopra SDK is through Composer.

```
# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add Woopra as a dependency

composer require aamortimer/woopra:dev-master

```

After installing, you need to require Composer's autoloader:

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

```

\#Helpers Started adding some helper functions to make it easier to get at the data quickly.

```
// setup namespace
use aamortimer\Woopra\Woopra;

// get all the labels that have been setup
Woopra::getAllLabels(array('app-id'=>'', 'secret-key'=>'', 'website'=>''), function($labels){
  print_r($labels);
});

// you can also return data from the function rather then using a callback
$labels = Woopra::getAllLabels(array('app-id'=>'', 'secret-key'=>'', 'website'=>''));

// get all user labels
// search parameter should be an email address or session id
Woopra::getUserLabels(array('app-id'=>'', 'secret-key'=>'', 'website'=>'', 'search'=>''), function($labels){
  print_r($labels);
});

// you can also return data from the function rather then using a callback
$labels = Woopra::getUserLabels(array('app-id'=>'', 'secret-key'=>'', 'website'=>'', 'search'=>''));
```

\#Search API All methods of the search API are supported to see further details and the options available visit ()

```
// setup namespace
use aamortimer\Woopra\Search;

// set up the search class
$search = new Search(array(
  'app-id' => 'YOUR APP ID HERE',
  'secret-key' => 'YOUR SECRET KEY HERE'
));

// user data
$website = 'example.com';

// search all data for domain
$rsp = $search->search(array(
  'website'=>$website
));
print_r($rsp);

// search by name
$rsp = $search->search(array(
  'website'=>$website,
  'search'=>'Bob Marley'
));
print_r($rsp);

// look up a profile
$rsp = $search->profile(array(
  'website'=>$website,
  'email'=>'test@example.com'
));
print_r($rsp);

// profile visits
$rsp = $search->profileVisits(array(
  'website'=>$website,
  'email'=>'test@example.com',
  'start_day'=>date('Y-m-d', strtotime('- 10 days')),
  'end_day'=>date('Y-m-d')
));
print_r($rsp);

// edit profile data
$rsp = $search->profileEdit(array(
  'website'=>$website,
  'email'=>'test@example.com',
  'data'=>'{"name":"john smith", "age": 33}'
));
print_r($rsp);

// online count
$rsp = $search->onlineCount(array(
  'website'=>$website
));
print_r($rsp);
```

\#Labels API Only the list methods of the labels API is supported to see further details and the options available visit ()

```
// setup namespace
use aamortimer\Woopra\userData;

// set up the search class
$labels = new UserData(array(
  'app-id' => 'YOUR APP ID HERE',
  'secret-key' => 'YOUR SECRET KEY HERE'
));

$rsp = $labels->show(array(
  'website'=>'example.com'
));
```

\#Analytics API All methods of the analytics API are supported to see further details and the options available visit ()

```
// setup namespace
use aamortimer\Woopra\Analytics;

// set up the search class
$analytics = new Analytics(array(
  'app-id' => 'YOUR APP ID HERE',
  'secret-key' => 'YOUR SECRET KEY HERE'
));

// get report
$report = [
  'group_by'=>array(
    array('key'=>'time', 'scope'=>'visits')
  ),
  'columns'=>array(
    array('name'=>'People', 'method'=>'count', 'scope'=>'visitors'),
    array('name'=>'Actions', 'method'=>'count', 'scope'=>'actions')
  )
];

$this->analytics->report(array(
  'website' => 'example.com',
  'report' => $report,
  'start_day'=>date('Y-m-d', strtotime('-1 Day')),
  'end_day'=>date('Y-m-d')
));
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~6 days

Total

3

Last Release

4293d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/236238?v=4)[Andy Mortimer](/maintainers/aamortimer)[@aamortimer](https://github.com/aamortimer)

---

Top Contributors

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

---

Tags

phpwoopra

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[inspector-apm/inspector-symfony

Code Execution Monitoring for Symfony applications.

2836.4k9](/packages/inspector-apm-inspector-symfony)

PHPackages © 2026

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