PHPackages                             ecommercebox/actionml - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ecommercebox/actionml

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ecommercebox/actionml
=====================

ActionML Harness API PHP Client

0.9.0(5y ago)0245Apache-2.0PHPPHP &gt;=5.6.0

Since Dec 17Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ecommercebox/harness-php-sdk)[ Packagist](https://packagist.org/packages/ecommercebox/actionml)[ Docs](https://actionml.com)[ RSS](/packages/ecommercebox-actionml/feed)WikiDiscussions develop Synced 1w ago

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

ActionML PHP SDK (IN DEVELOPMENT)
=================================

[](#actionml-php-sdk-in-development)

[![Build Status](https://camo.githubusercontent.com/e83adc6c48db7902f199d0fb4d559d87f0f499105a103c1ac9a149b0c94064ba/68747470733a2f2f7472617669732d63692e6f72672f65636f6d6d65726365626f782f6861726e6573732d7068702d73646b2e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/ecommercebox/harness-php-sdk)

Prerequisites
-------------

[](#prerequisites)

- PHP 5.6+ ()
- PHP: cURL ()
- Phing ()
- ApiGen ()

Note: This SDK only supports ActionML version 0.6 or higher.

Getting Started
---------------

[](#getting-started)

The easiest way to install ActionML PHP client is to use [Composer](http://getcomposer.org/).

1. `actionml` is available on [Packagist](https://packagist.org) and can be installed using [Composer](https://getcomposer.org/):

    ```
     composer require ecommercebox/actionml

    ```
2. Include Composer's autoloader in your PHP code

    ```
     require_once("vendor/autoload.php");

    ```

Usage
-----

[](#usage)

This package is a web service client based on Guzzle. A few quick examples are shown below.

### Instantiate ActionML API Event Client

[](#instantiate-actionml-api-event-client)

```
use actionml\EventClient;
$engineId = 'test_ur';
$client = new EventClient($engineId, 'http://localhost:9090');
```

### Set a User Record from Your App

[](#set-a-user-record-from-your-app)

```
// assume you have a user with user ID 5
$response = $client->setUser(5);
```

### Set an Item Record from Your App

[](#set-an-item-record-from-your-app)

```
// assume you have a book with ID 'bookId1' and we assign 1 as the type ID for book
$response = $client->setItem('bookId1', array('itypes' => 1));
```

### Import a User Action (View) form Your App

[](#import-a-user-action-view-form-your-app)

```
// assume this user has viewed this book item
$client->recordUserActionOnItem('view', 5, 'bookId1');
```

### Retrieving Prediction Result

[](#retrieving-prediction-result)

```
// assume you have created an itemrank engine on localhost:9090
// we try to get ranking of 5 items (item IDs: 1, 2, 3, 4, 5) for a user (user ID 7)

$engineClient = new EngineClient('test_ur');
$response = $engineClient->queryItemSet(aray(7,4,6));

print_r($response);
```

Bugs and Feature Requests
-------------------------

[](#bugs-and-feature-requests)

Use [ActionML PHP SDK Issues](https://github.com/actionml/harness/issues) to report bugs or request new features.

Contributing
------------

[](#contributing)

Read the [Contribute Code](http://predictionio.apache.org/community/contribute-code/) page.

License
-------

[](#license)

Apache PredictionIO is under [Apache 2 license](http://www.apache.org/licenses/LICENSE-2.0.html).

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1978d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2afaa34b7ed0f0c39a04acb15f369add385b482fca774557447803111dcb26b5?d=identicon)[lutek](/maintainers/lutek)

---

Top Contributors

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

---

Tags

restweb servicerestfulpredictionrecommendationpredictionioharnessactionml

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[srmklive/paypal

Laravel plugin For Processing Payments Through Paypal Express Checkout. Can Be Used Independently With Other Applications.

1.1k3.8M26](/packages/srmklive-paypal)[eightpoints/guzzle-bundle

Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony. Comes with easy and powerful configuration options and optional plugins.

45912.1M55](/packages/eightpoints-guzzle-bundle)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)[zoonman/pixabay-php-api

PixabayClient is a PHP HTTP client library to access Pixabay's API

3354.7k](/packages/zoonman-pixabay-php-api)[abantecart/ups-php

UPS PHP SDK based on OAuth

1815.3k](/packages/abantecart-ups-php)

PHPackages © 2026

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