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

ActiveLibrary[API Development](/categories/api)

gauravtechie/sharpspring-api
============================

0101PHP

Since Sep 12Pushed 9y agoCompare

[ Source](https://github.com/gauravtechie/sharpspring-api)[ Packagist](https://packagist.org/packages/gauravtechie/sharpspring-api)[ RSS](/packages/gauravtechie-sharpspring-api/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)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

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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/111499?v=4)[Gaurav Mishra](/maintainers/gauravtechie)[@gauravtechie](https://github.com/gauravtechie)

---

Top Contributors

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

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/gauravtechie-sharpspring-api/health.svg)](https://phpackages.com/packages/gauravtechie-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)
