PHPackages                             allow2/allow2php - 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. allow2/allow2php

Abandoned → [allow2/allow2php-service](/?search=allow2%2Fallow2php-service)Project

allow2/allow2php
================

Allow2 PHP SDK for OpenSource Parental Freedom

292PHP

Since May 10Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Allow2/Allow2php)[ Packagist](https://packagist.org/packages/allow2/allow2php)[ RSS](/packages/allow2-allow2php/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Allow2php
=========

[](#allow2php)

[![Join the chat at https://gitter.im/Allow2/Allow2php](https://camo.githubusercontent.com/f3352a82ca87b631aad5592edd69ee7092e667e96e7413b99766015f2a06cdb2/68747470733a2f2f6261646765732e6769747465722e696d2f416c6c6f77322f416c6c6f77327068702e737667)](https://gitter.im/Allow2/Allow2php?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

pip: composer:

refer to  for more details.

todo: Port  to a PHP library (NOTE: Allow2WP wordpress plugin has an embedded implementation, so we can use that to extract the necessary parts into the library, but then also should have that plugin leverage this library - tease it out)

Oh, and we should build this library to be easy to install via composer, packagist, etc

Curl examples
=============

[](#curl-examples)

to get you started:

1. Pairing
----------

[](#1-pairing)

First, pair with Allow2 (this is using the username/password method):

```
curl -H "Content-Type: application/json" -X POST -d '{"user": "ALLOW2_ACCOUNT_EMAIL", "pass":"ALLOW2_ACCOUNT_PASS", "deviceToken": "jJ5GOIaJ028Ywt6K", "name":"Test Device 1" }' https://app.allow2.com:8443/api/pairDevice
```

this returns a payload with information that you pass back to the app to persist for future use against the service:

```
{
  "status":"success",
  "pairId":12345,
  "token":"6742b233-de46-4c86-2ac9-7b9e5729f999",
  "name":"Test Device 1",
  "userId": 1234,
  "children":[
    { "id":682, "name":"Bob" },
    { "id":691, "name":"Grace" },
    { "id":1795,"name":"Fred"}
  ]
}
```

2. Checking and Logging Usage
-----------------------------

[](#2-checking-and-logging-usage)

```
curl -H "Content-Type: application/json" -X POST -d '{"userId": 1234, "pairToken":"6742b2f3-de46-4c86-8ac9-7b9e532cf999", "deviceToken": "jJ5GOIaJ028Ywt6K", "tz": "Australia/Brisbane", "childId": "682", "activities": [{ "id": 7, "log": true }] }' https://api.allow2.com:9443/serviceapi/check
```

}

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance58

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.2% 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/189815339bbbcf1252aadb6e8780c7a0d8b62f48f0ccdb466c8bd3013f3c4d6c?d=identicon)[Allow2](/maintainers/Allow2)

---

Top Contributors

[![Allow2CEO](https://avatars.githubusercontent.com/u/1748594?v=4)](https://github.com/Allow2CEO "Allow2CEO (15 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (2 commits)")

---

Tags

childchildrencomposercontrolcontrolsfamilyfreedomgaminglimitlimitsparentparentalparental-controlquotasocialsocial-networktimetime-limit

### Embed Badge

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

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

PHPackages © 2026

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