PHPackages                             studentrnd/s5api - 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. studentrnd/s5api

AbandonedArchivedLibrary[API Development](/categories/api)

studentrnd/s5api
================

A PHP API for s5.

1.0.3(12y ago)0426Artistic-2.0PHPPHP &gt;=5.5.0

Since Mar 18Pushed 12y ago2 watchersCompare

[ Source](https://github.com/StudentRND/s5api)[ Packagist](https://packagist.org/packages/studentrnd/s5api)[ RSS](/packages/studentrnd-s5api/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

s5 for PHP
==========

[](#s5-for-php)

This library simplifies working with s5 with PHP.

Sample Use
==========

[](#sample-use)

To get started, initialize the s5 instance.

```
$s5 = new \s5\API;
$s5->Token = YOUR_APP_TOKEN;
$s5->Secret = YOUR_APP_SECRET;

```

You can get these properties from the Apps section of s5 once logged in.

If you have an access\_token for a user you'd like to use, you can set that too:

```
$s5->AccessToken = USER_ACCESS_TOKEN;

```

You can pass any of these parameters in the constructor for simplicity:

```
$s5 = new \s5\API(YOUR_APP_TOKEN, YOUR_APP_SECRET, USER_ACCESS_TOKEN);

```

Logging In
----------

[](#logging-in)

The simplest way to handle login is to call the `RequireLogin` method.

```
$s5->RequireLogin();

```

This will automatically handle OAuth, store the access token in a session variable, and set the proper access\_token on the `s5\API` instance every time it's loaded.

`RequireLogin` takes one parameter, `scope`, which is an array of the requested permissions for this auth. To get address information for the logged in user, for example, you should call `RequireLogin` with `['extended']`.

Note that for this to work, you need to create an instance of the `\s5\API` with the proper app token and secret upon a GET request to each page you call `RequireLogin` on, so it can process the last leg of the OAuth dance and set the AccessToken in the session variable. This will usually not be a problem, but if you're having issues, that's a good place to start.

Accessing Data
--------------

[](#accessing-data)

To get the current user's data, with an AccessToken set, call:

```
$s5->User->me();

```

This will return an object with the user's properties.

To get another user's data, call:

```
$s5->User->get(USERNAME);

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~4 days

Total

4

Last Release

4428d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2075aa416904bbf217a9d3209e371cd39cfae464c5e8c3bf26232a68166e2ad3?d=identicon)[tylermenezes](/maintainers/tylermenezes)

---

Top Contributors

[![tylermenezes](https://avatars.githubusercontent.com/u/173390?v=4)](https://github.com/tylermenezes "tylermenezes (6 commits)")

---

Tags

studentrnds5

### Embed Badge

![Health badge](/badges/studentrnd-s5api/health.svg)

```
[![Health](https://phpackages.com/badges/studentrnd-s5api/health.svg)](https://phpackages.com/packages/studentrnd-s5api)
```

###  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)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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