PHPackages                             colling-media/sharpspring-api - 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. colling-media/sharpspring-api

ActiveLibrary[API Development](/categories/api)

colling-media/sharpspring-api
=============================

v0.0.1(9y ago)01.8k[1 PRs](https://github.com/darkgoldblade01/sharpspring-api/pulls)PHP

Since Nov 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/darkgoldblade01/sharpspring-api)[ Packagist](https://packagist.org/packages/colling-media/sharpspring-api)[ RSS](/packages/colling-media-sharpspring-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

SharpSpring API
===============

[](#sharpspring-api)

Super-simple SharpSpring API v1 wrapper, in PHP.

Let's improve your website with Marketing Automation and Inbound Marketing.

by [Angelo Públio](https://angelopublio.com)

### Declare your accountID and secretKEY

[](#declare-your-accountid-and-secretkey)

```
if ( !defined('SHARPSPRING_ACCOUNTID') )
	define('SHARPSPRING_ACCOUNTID', 'YOUR-ACCOUNT-ID');

if ( !defined('SHARPSPRING_SECRETKEY') )
	define('SHARPSPRING_SECRETKEY', 'YOUR-SECRET-KEY');

```

### Include the lib

[](#include-the-lib)

Example using the folder '/lib/sharpspring-api/src/' inside the WordPress' theme folder

```
if (!class_exists('AngeloPublio\SharpSpring'))
	require_once(get_template_directory().'/lib/sharpspring-api/src/SharpSpring.php');

```

### Calling the API

[](#calling-the-api)

Example calling getLeads

```
$SharpSpring = new \AngeloPublio\SharpSpring(SHARPSPRING_ACCOUNTID, SHARPSPRING_SECRETKEY);

$limit = 500;
$offset = 0;

$result = $SharpSpring->call('getLeads',
				array('where' => array('emailAddress' => 'email-to-filter@test.com'), 'limit' => $limit, 'offset' => $offset)
			);
print_r($result);

```

Example calling getFields

```
$SharpSpring = new \AngeloPublio\SharpSpring(SHARPSPRING_ACCOUNTID, SHARPSPRING_SECRETKEY);

$limit = 500;
$offset = 0;

$result = $SharpSpring->call('getFields',
				array('where' => array(), 'limit' => $limit, 'offset' => $offset)
			);
print_r($result);

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor2

2 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3520d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/093f0f4c952fb410a2324eb9acfa28d8a9bd44ed9158bce0b336fec77a674820?d=identicon)[brianclogan](/maintainers/brianclogan)

---

Top Contributors

[![angelopublio](https://avatars.githubusercontent.com/u/9899320?v=4)](https://github.com/angelopublio "angelopublio (6 commits)")[![brianclogan](https://avatars.githubusercontent.com/u/9066551?v=4)](https://github.com/brianclogan "brianclogan (4 commits)")[![gauravtechie](https://avatars.githubusercontent.com/u/111499?v=4)](https://github.com/gauravtechie "gauravtechie (3 commits)")

### Embed Badge

![Health badge](/badges/colling-media-sharpspring-api/health.svg)

```
[![Health](https://phpackages.com/badges/colling-media-sharpspring-api/health.svg)](https://phpackages.com/packages/colling-media-sharpspring-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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