PHPackages                             sparkapi/sparkapi - 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. sparkapi/sparkapi

ActiveLibrary[API Development](/categories/api)

sparkapi/sparkapi
=================

PHP wrapper for the Spark REST API

2920.3k30[6 issues](https://github.com/sparkapi/sparkapi4p2/issues)[6 PRs](https://github.com/sparkapi/sparkapi4p2/pulls)PHPCI failing

Since Nov 28Pushed 4y ago18 watchersCompare

[ Source](https://github.com/sparkapi/sparkapi4p2)[ Packagist](https://packagist.org/packages/sparkapi/sparkapi)[ RSS](/packages/sparkapi-sparkapi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/c64b845ef3dd7f8358c09677768308108a7130f51e175637fe92fbc3397b507f/68747470733a2f2f7472617669732d63692e6f72672f737061726b6170692f737061726b6170693470322e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/sparkapi/sparkapi4p2)

Spark API - version 2
=====================

[](#spark-api---version-2)

A PHP wrapper for the Spark REST API. This version has enough differences from version 1 that upgrading will require changes to existing code.

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

[](#documentation)

For additional information on the PHP client, [visit the wiki](https://github.com/sparkapi/sparkapi4p2/wiki).

For full information on the API, see

Usage Examples
--------------

[](#usage-examples)

```
// include the Spark core which autoloads other classes as necessary
require_once("lib/Core.php");

// connect using Access Token Authentication (additional authentication methods available in the wiki)
$api = new SparkAPI_Bearer("your_access_token_here");

// identify your application (optional)
$api->SetApplicationName("MyPHPApplication/1.0");

// get your listings
$result = $api->GetMyListings();

/*
	Alternatively, if you cannot find the appropriate helper method,
	try our "get", "post", "put", or "delete" methods from Core.php.
*/
$result = $api->get("my/listings");

// see the included examples.php for more complete usage

```

Error Codes
-----------

[](#error-codes)

A list of all API error codes can be found [here](http://sparkplatform.com/docs/supporting_documentation/error_codes).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor3

3 contributors hold 50%+ of commits

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://www.gravatar.com/avatar/d8342364865576af4621d8ff6b4f9f4063c2e67558885aaec404ca275b0c2f02?d=identicon)[sparkapi](/maintainers/sparkapi)

---

Top Contributors

[![joshcom](https://avatars.githubusercontent.com/u/567016?v=4)](https://github.com/joshcom "joshcom (20 commits)")[![donclem](https://avatars.githubusercontent.com/u/1828636?v=4)](https://github.com/donclem "donclem (18 commits)")[![thinkerytim](https://avatars.githubusercontent.com/u/122242?v=4)](https://github.com/thinkerytim "thinkerytim (11 commits)")[![troydavisson](https://avatars.githubusercontent.com/u/318954?v=4)](https://github.com/troydavisson "troydavisson (10 commits)")[![fbstim](https://avatars.githubusercontent.com/u/20247038?v=4)](https://github.com/fbstim "fbstim (8 commits)")[![dgmyrek](https://avatars.githubusercontent.com/u/2626441?v=4)](https://github.com/dgmyrek "dgmyrek (5 commits)")[![gsaulmon](https://avatars.githubusercontent.com/u/730440?v=4)](https://github.com/gsaulmon "gsaulmon (2 commits)")[![apopkin](https://avatars.githubusercontent.com/u/44762885?v=4)](https://github.com/apopkin "apopkin (1 commits)")[![mflatin](https://avatars.githubusercontent.com/u/7074149?v=4)](https://github.com/mflatin "mflatin (1 commits)")[![raiman264](https://avatars.githubusercontent.com/u/2723336?v=4)](https://github.com/raiman264 "raiman264 (1 commits)")[![ridley-james](https://avatars.githubusercontent.com/u/713980?v=4)](https://github.com/ridley-james "ridley-james (1 commits)")[![codygustafson](https://avatars.githubusercontent.com/u/2645436?v=4)](https://github.com/codygustafson "codygustafson (1 commits)")[![calh](https://avatars.githubusercontent.com/u/1163502?v=4)](https://github.com/calh "calh (1 commits)")

### Embed Badge

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

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

###  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)
