A lightweight and modern PHP library for interacting with FurAffinity through HTML parsing.
Provides functionality for reading submissions, checking user activity, toggling favorites/watches, and working with the message center.
⚠️ This project is unofficial and not affiliated with FurAffinity.net. Use at your own discretion.
You can install the library via Composer:
composer require d1kdat/furaffinity-api-phpThis will automatically pull the latest version from Packagist and configure autoloading.
- PHP 8.1 or higher
- PHP extensions:
curliconvpcre
use FurAffinity\Exchange;
$settings = [
'username' => 'your_username',
'a' => 'cookie_a',
'b' => 'cookie_b',
];
$fa = new Exchange($settings);
$submission = $fa->getById(22872063);
if ($submission !== false) {
print_r($submission);
}- 🔍 Get submission data by ID
- ⭐ Toggle favorites
- 👤 Toggle watch/unwatch
- ✅ Check login state
- 👁️ Check if a user exists
- 📥 Read your watchlist
- 📫 Read and remove new message center submissions
See examples/ for ready-to-run scripts:
get_submission_data.phpget_watchlist.phpcheck_user_exists.phpcheck_log_in.phptoggle_watch.phptoggle_favorite.phpremove_msg_submissions.phpget_new_msg_submissions.php
Each example uses
config.phpor falls back toconfig.example.phpfor authentication.