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

ActiveLibrary[API Development](/categories/api)

boxconnect/deviant-php
======================

DeviantArt SDK for PHP

35.8k↑213.3%4PHP

Since Dec 25Pushed 10y ago1 watchersCompare

[ Source](https://github.com/boxconnect/deviant-php)[ Packagist](https://packagist.org/packages/boxconnect/deviant-php)[ RSS](/packages/boxconnect-deviant-php/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

deviantPHP
==========

[](#deviantphp)

Warning!
--------

[](#warning)

**First of all**: This is not an official package from .
It is a wrapper for some of theirs functions and hooks because we needed some sort of library for our project . That said, let's see, how we can help nevertheless.

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

[](#installation)

The simplest way to install the package, is via [composer](https://getcomposer.org/). Otherwise, just include() the deviantPHP.php file in the folder /src.

```
{
	"require": {
		"boxconnect/deviant-php": "dev-master"
	}
}

```

Quickstart:
-----------

[](#quickstart)

Having installed deviantPHP via Composer, you have the extra plus of autoloading. We define DeviantPHP as namespace, thus the main class is called \\DeviantPHP\\DeviantPHP. Obviously, you will need to change CLIENT\_ID, CLIENT\_SECRET, THIS\_URL AND SCOPES to suit your needs. Please see [Deviantart Developer](https://www.deviantart.com/developers/) for more information.

```

```

Functions:
----------

[](#functions)

The following table gives an overview of the actual functions. These are subject to change, that is, some functions may be added/removed in the future.

FunctionArgumentsExplanation\_\_construct()$params (array)The constructor accepts client\_id, client\_secret, redirect\_uri, scope and user\_agent as option.authenticatenoneHandles the OAuth flow.createAuthUrlnoneReturns the authentication URL needed for the OAuth flow.getAccessToken$code (string)Get an access/refresh token from deviantart, needs the OAuth code as input.refreshTokennoneGets a new access token if the old one is expired (after one hour).uploadFile$filename (string)Uploads a file to sta.sh with the given name. Returns the result (file id) as associative array.getUsernoneGet infos about the authorized user.isAuthenticatednoneChecks if the access token is still valid. Returns true or false.setRedirect$url (string)Sets the redirect\_uri (for OAuth).getRedirectnoneReturns the actual redirect\_uri.setToken$access (string), $refresh (string)Sets the access and refresh tokens (these might come from a database/session)getTokennoneReturns the tokens as an associative array (access\_token, refresh\_token).setCredentials$credentials (array)Sets the client\_id and client\_secret ($credentials = array("client\_id" =&gt; "1234", "client\_secret" =&gt; "secret")getCredentialsnoneReturns the credentials as associative array.Problems/Wishes
---------------

[](#problemswishes)

If you encounter any problems, please drop us a line at  or make a pull request.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13644350?v=4)[boxconnect](/maintainers/boxconnect)[@boxconnect](https://github.com/boxconnect)

---

Top Contributors

[![boxconnect](https://avatars.githubusercontent.com/u/13644350?v=4)](https://github.com/boxconnect "boxconnect (17 commits)")[![neighbordog](https://avatars.githubusercontent.com/u/2954089?v=4)](https://github.com/neighbordog "neighbordog (2 commits)")

### Embed Badge

![Health badge](/badges/boxconnect-deviant-php/health.svg)

```
[![Health](https://phpackages.com/badges/boxconnect-deviant-php/health.svg)](https://phpackages.com/packages/boxconnect-deviant-php)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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