PHPackages                             linkorb/answers-client - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. linkorb/answers-client

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

linkorb/answers-client
======================

Answers Client for Answers Application

v1.0(10y ago)016MITPHPPHP &gt;=5.3.0CI failing

Since Nov 25Pushed 10y ago7 watchersCompare

[ Source](https://github.com/linkorb/answers-client)[ Packagist](https://packagist.org/packages/linkorb/answers-client)[ Docs](https://github.com/linkorb/answers-client)[ RSS](/packages/linkorb-answers-client/feed)WikiDiscussions master Synced 1mo ago

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

Answers Client
==============

[](#answers-client)

PHP client library for [Answers](https://github.com/linkorb/answers) application.

Installation
------------

[](#installation)

```
composer require linkorb/answers-client

```

Example
-------

[](#example)

Client

```
require_once __DIR__ . '/../../vendor/autoload.php';

use Linkorb\AnswersClient\Client as Client;
use Linkorb\AnswersClient\Question as Question;

// get the client
$client = new Client(
    '',
    '',
    ''
);
```

Question

```
// Create Question
$question = new Question( $client );
$question->setQuestion();
$question->setDescription();
$question->setTopicId();

try {
	$question->create();
} catch( Exception $e ) {
	echo $e->getMessage();
}

$question->setQuestion();

try {
	$question->update();
} catch( Exception $e ) {
	echo $e->getMessage();
}

// Get Question
$question = new Question( $client );
$question->get();

$answers = $question->getAnswers();
var_dump($answers);

$comments = $question->getComments();
var_dump($comments);

$votes = $question->getVotes();
var_dump($votes);

// Update question
$question = new Question( $client );
$question->get();

$question->setQuestion();
$question->setDescription();

try {
	$question->update();
} catch( Exception $e ) {
	echo $e->getMessage();
}

// Delete question
$question = new Question( $client );
$question->get();

try {
	$question->delete();
} catch( Exception $e ) {
	echo $e->getMessage();
}

//Comment
$question = new Question( $client );
$question->get();

try {
	$question->comment();
} catch( Exception $e ) {
	echo $e->getMessage();
}

// Vote
$question = new Question( $client );
$question->get();

try {
	$question->vote();
} catch( Exception $e ) {
	echo $e->getMessage();
}
```

Answer

```
// Create Answer
$answer = new Answer( $client );
$answer->setQuestionId(  );
$answer->setAnswer(  );

try {
	$answer->create();
} catch( Exception $e ) {
	echo $e->getMessage();
}

// Get Answer
$answer = new Answer( $client );
$answer->get(  );

$comments = $answer->getComments();
var_dump($comments);

$votes = $answer->getVotes();
var_dump($votes);

// Update Answer
$answer = new Answer( $client );
$answer->get(  );

$answer->setAnswer();

try {
	$answer->update();
} catch( Exception $e ) {
	echo $e->getMessage();
}

// Delete Answer
$answer = new Answer( $client );
$answer->get();

try {
	$answer->delete();
} catch( Exception $e ) {
	echo $e->getMessage();
}

// Commnent Answer
$answer = new Answer( $client );
$answer->get();

try {
	$answer->comment();
} catch( Exception $e ) {
	echo $e->getMessage();
}

// Vote Answer
$answer = new Answer( $client );
$answer->get();

try {
	$answer->vote();
} catch( Exception $e ) {
	echo $e->getMessage();
}
```

Comment

```
// Get comment
$comment = new Comment( $client );
$comment->get();

$votes = $comment->getVotes();
var_dump($votes);

// Update comment
$answer = new Answer( $client );
$answer->get();

$answer->setAnswer();

try {
	$answer->update();
} catch( Exception $e ) {
	echo $e->getMessage();
}

// Delete comment
$comment = new Comment( $client );
$comment->get();

try {
	$comment->delete();
} catch( Exception $e ) {
	echo $e->getMessage();
}

// Vote comment
$comment = new Comment( $client );
$comment->get();

try {
	$comment->vote();
} catch( Exception $e ) {
	echo $e->getMessage();
}
```

Vote

```
// Delete comment
$vote = new Vote( $client );
$vote->get();

try {
	$vote->delete();
} catch( Exception $e ) {
	echo $e->getMessage();
}
```

Brought to you by the LinkORB Engineering team
----------------------------------------------

[](#brought-to-you-by-the-linkorb-engineering-team)

[![](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)
Check out our other projects at [engineering.linkorb.com](http://engineering.linkorb.com).

Btw, we're hiring!

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

3818d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Top Contributors

[![igormukhingmailcom](https://avatars.githubusercontent.com/u/6544038?v=4)](https://github.com/igormukhingmailcom "igormukhingmailcom (7 commits)")[![kishanio](https://avatars.githubusercontent.com/u/1800156?v=4)](https://github.com/kishanio "kishanio (6 commits)")[![h-wang](https://avatars.githubusercontent.com/u/3410322?v=4)](https://github.com/h-wang "h-wang (1 commits)")

---

Tags

phplinkorbclient libraryanswers

### Embed Badge

![Health badge](/badges/linkorb-answers-client/health.svg)

```
[![Health](https://phpackages.com/badges/linkorb-answers-client/health.svg)](https://phpackages.com/packages/linkorb-answers-client)
```

###  Alternatives

[stevebauman/location

Retrieve a user's location by their IP Address

1.3k7.6M65](/packages/stevebauman-location)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)

PHPackages © 2026

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