PHPackages                             beberlei/tent-php - 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. beberlei/tent-php

ActiveLibrary[API Development](/categories/api)

beberlei/tent-php
=================

PHP Application Client for the Tent.io protocol

16733[5 issues](https://github.com/beberlei/TentPHP/issues)PHP

Since Feb 9Pushed 13y ago3 watchersCompare

[ Source](https://github.com/beberlei/TentPHP)[ Packagist](https://packagist.org/packages/beberlei/tent-php)[ RSS](/packages/beberlei-tent-php/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Tent Client
===============

[](#php-tent-client)

Tent Client API for PHP

Tent.io is a distributed protocol for social networking. There are tent servers and tent applications. Users host their data on tent servers. Tent applications can modify this data. To implement a tent application you need a client. This library provides a client written in PHP.

The client has to act as an application to be able to access user details on any tent server. to work applications are always required to maintain some level of state about Tent Servers Url and their OAuth Client Ids and Mac Keys.

Features
--------

[](#features)

- Support for the Tent.io Application API
- Automatic registration of Applications on any tent-server
- Persistence of application and user authorizations (MAC Auth)

State &amp; Persistence
-----------------------

[](#state--persistence)

This application state is hidden behind a persistence interface `TentPHP\Persistence\ApplicationState`. We are shipping a Doctrine DBAL based implementation.

Other clients (PHP + other languages) put the burdon of persistence on you, returning all the data that is stateful from their methods. With the `ApplicationState`interface you can implement this yourself, or use our Doctrine backend. In any case this simplifies the usage of the client considerably.

Install
-------

[](#install)

Use Composer to install TentPHP and all its dependencies:

```
{
    "require": {
        "beberlei/tent-php": "*",
        "doctrine/dbal": "*"
    }
}
```

API (With Doctrine DBAL)
------------------------

[](#api-with-doctrine-dbal)

### Setup &amp; Configuration

[](#setup--configuration)

```
