PHPackages                             rikudou/lemmy-api - 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. rikudou/lemmy-api

ActiveLibrary[API Development](/categories/api)

rikudou/lemmy-api
=================

Communicate with Lemmy API from php

v0.8.6(1y ago)31.7kMITPHPPHP ^8.2

Since Jul 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/RikudouSage/LemmyApi)[ Packagist](https://packagist.org/packages/rikudou/lemmy-api)[ RSS](/packages/rikudou-lemmy-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (11)Versions (50)Used By (0)

Lemmy API
=========

[](#lemmy-api)

Lemmy is all the rage now! This package allows you to communicate with Lemmy from PHP which opens up great possibilities for writing bots!

All methods are fully typed so your IDE should help you a lot.

Note that this is an alpha version and while everything should work, the public api will probably change as I find better names and/or locations for various methods.

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

[](#installation)

Requires PHP 8.2.

`composer require rikudou/lemmy-api`

You also need to install a compatible [PSR http client](https://packagist.org/providers/psr/http-client-implementation)and [PSR http request factory](https://packagist.org/providers/psr/http-factory-implementation):

`composer require rikudou/lemmy-api guzzlehttp/guzzle`

or

`composer require rikudou/lemmy-api symfony/http-client nyholm/psr7`

or any other implementation you like.

Usage
-----

[](#usage)

```
