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

ActiveLibrary[API Development](/categories/api)

onlyfansapi/onlyfansapi-php
===========================

Only Fans API PHP SDK

v0.2.0(2w ago)03↓100%[1 PRs](https://github.com/onlyfansapi/onlyfansapi-php/pulls)Apache-2.0PHPPHP ^8.1CI passing

Since May 24Pushed 6d agoCompare

[ Source](https://github.com/onlyfansapi/onlyfansapi-php)[ Packagist](https://packagist.org/packages/onlyfansapi/onlyfansapi-php)[ RSS](/packages/onlyfansapi-onlyfansapi-php/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (15)Versions (6)Used By (0)

Only Fans API PHP API library
=============================

[](#only-fans-api-php-api-library)

The Only Fans API PHP library provides convenient access to the Only Fans API REST API from any PHP 8.1.0+ application.

It is generated with [Stainless](https://www.stainless.com/).

Documentation
-------------

[](#documentation)

The REST API documentation can be found on [docs.onlyfansapi.com](https://docs.onlyfansapi.com).

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

[](#installation)

To use this package, install via Composer by adding the following to your application's `composer.json`:

```
{
  "repositories": [
    {
      "type": "vcs",
      "url": "git@github.com:onlyfansapi/onlyfansapi-php.git"
    }
  ],
  "require": {
    "onlyfansapi/onlyfansapi-php": "dev-main"
  }
}
```

Usage
-----

[](#usage)

This library uses named parameters to specify optional arguments. Parameters with a default value must be set by name.

```
