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.5k—0%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 1mo ago

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 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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