{"id":20940017,"url":"https://github.com/allow2/allow2php","last_synced_at":"2025-05-13T22:32:08.556Z","repository":{"id":56946013,"uuid":"86784210","full_name":"Allow2/Allow2php","owner":"Allow2","description":"Allow2 PHP SDK for OpenSource Parental Freedom","archived":false,"fork":false,"pushed_at":"2018-05-10T22:57:57.000Z","size":1277,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T09:37:28.766Z","etag":null,"topics":["child","children","composer","control","controls","family","freedom","gaming","limit","limits","parent","parental","parental-control","quota","social","social-network","time","time-limit"],"latest_commit_sha":null,"homepage":"https://Allow2.github.io","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Allow2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-31T06:09:46.000Z","updated_at":"2024-05-11T16:25:35.000Z","dependencies_parsed_at":"2022-08-21T07:20:51.724Z","dependency_job_id":null,"html_url":"https://github.com/Allow2/Allow2php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allow2%2FAllow2php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allow2%2FAllow2php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allow2%2FAllow2php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Allow2%2FAllow2php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Allow2","download_url":"https://codeload.github.com/Allow2/Allow2php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254036819,"owners_count":22003657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["child","children","composer","control","controls","family","freedom","gaming","limit","limits","parent","parental","parental-control","quota","social","social-network","time","time-limit"],"created_at":"2024-11-18T23:08:38.746Z","updated_at":"2025-05-13T22:32:03.525Z","avatar_url":"https://github.com/Allow2.png","language":"PHP","readme":"# Allow2php\n\n[![Join the chat at https://gitter.im/Allow2/Allow2php](https://badges.gitter.im/Allow2/Allow2php.svg)](https://gitter.im/Allow2/Allow2php?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\npip: https://pypi.org/project/allow2/\ncomposer: https://packagist.org/packages/allow2/allow2php\n\nrefer to https://github.com/Allow2/Allow2.github.io/wiki for more details.\n\ntodo: Port https://github.com/Allow2/Allow2node to a PHP library\n(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)\n\nOh, and we should build this library to be easy to install via composer, packagist, etc\n\n# Curl examples\n\nto get you started:\n\n## 1. Pairing\n\nFirst, pair with Allow2 (this is using the username/password method):\n\n```sh\ncurl -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\n```\n\nthis returns a payload with information that you pass back to the app to persist for future use against the service:\n```json\n{\n  \"status\":\"success\",\n  \"pairId\":12345,\n  \"token\":\"6742b233-de46-4c86-2ac9-7b9e5729f999\",\n  \"name\":\"Test Device 1\",\n  \"userId\": 1234,\n  \"children\":[\n    { \"id\":682, \"name\":\"Bob\" },\n    { \"id\":691, \"name\":\"Grace\" },\n    { \"id\":1795,\"name\":\"Fred\"}\n  ]\n}\n```\n\n## 2. Checking and Logging Usage\n\n```sh\ncurl -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\n```\n\n\n}\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallow2%2Fallow2php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallow2%2Fallow2php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallow2%2Fallow2php/lists"}