PHPackages                             vendasta/accountgroup - 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. vendasta/accountgroup

ActiveLibrary

vendasta/accountgroup
=====================

Vendasta account group library for PHP

1.1.0(5y ago)0118[1 issues](https://github.com/vendasta/account-group-php-sdk/issues)PHPCI failing

Since Oct 7Pushed 3y ago15 watchersCompare

[ Source](https://github.com/vendasta/account-group-php-sdk)[ Packagist](https://packagist.org/packages/vendasta/accountgroup)[ RSS](/packages/vendasta-accountgroup/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (7)Versions (4)Used By (0)

account-group-php-sdk
=====================

[](#account-group-php-sdk)

Account group php sdk

Description
-----------

[](#description)

This is Vendasta's official PHP SDK for API integration of account-groups. This is used to create a business.

Requirements
------------

[](#requirements)

- PHP 5.5 and above or PHP 7.0 and above
- [PECL](https://pecl.php.net/) (may be used to install the required PHP extensions)
- [Composer](https://getcomposer.org/)
- [PHP gmp extension](http://php.net/manual/en/book.gmp.php)
- OPTIONAL (but recommended): [PHP grpc extension](https://cloud.google.com/php/grpc)

Installation
------------

[](#installation)

Install the requirements from above, then:

```
composer require vendasta/account-group-php-sdk
```

Authentication
--------------

[](#authentication)

To authenticate your SDK calls, you must provision a service account from within the Vendasta platform.

*This feature is currently in alpha, therefore your service account credentials file will be provided to you manually.*

You must put this file on your server, and set an environment variable to it's path:

```
export VENDASTA_APPLICATION_CREDENTIALS=
```

Client Initialization
---------------------

[](#client-initialization)

It is highly recommended that you use a singleton client instance. Each client initilization will open it's own connection, therefore using a singleton results in reusing a connection, saving time and resources.

Set an environment variable for the production environment:

```
export PRODUCTION_ENVIRONMENT=
```

To instantiate the client:

```
$environment = getenv("PRODUCTION_ENVIRONMENT");
if ($environment == null) {
    $environment = "DEMO";
}

$client = new Vendasta\AccountGroup\V1\AccountGroupServiceClient($environment);
```

Notice that the production environment will be set to DEMO if it is not specified.

Creating account groups
-----------------------

[](#creating-account-groups)

```
$createReq = new Vendasta\AccountGroup\V1\CreateAccountGroupRequest();
$location = new Vendasta\AccountGroup\V1\AccountGroupLocation();
$location->setCompanyName("");
$location->setAddress("");
$location->setCity(">");
$location->setState("");
$location->setCountry("");
$location->setZip("");
$workNumber = array("");
$location->setWorkNumber($workNumber);

$createReq->setAccountGroupNap($location);

$createReq->setPartnerId("");
$resp = $client->Create($createReq);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 88.2% 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 ~288 days

Total

2

Last Release

2124d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1498d6f30e570d34309cfb7c848cb3b80d0eca6bd8e28af9d5db3f4196b300bb?d=identicon)[vendasta](/maintainers/vendasta)

---

Top Contributors

[![gscoular](https://avatars.githubusercontent.com/u/6842296?v=4)](https://github.com/gscoular "gscoular (15 commits)")[![avadan1](https://avatars.githubusercontent.com/u/83599192?v=4)](https://github.com/avadan1 "avadan1 (1 commits)")[![kamundson-va](https://avatars.githubusercontent.com/u/15634999?v=4)](https://github.com/kamundson-va "kamundson-va (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[google/grpc-gcp

gRPC GCP library for channel management

18497.8M3](/packages/google-grpc-gcp)[googleads/google-ads-php

Google Ads API client for PHP

3497.6M9](/packages/googleads-google-ads-php)[spiral/grpc-client

gRPC client

41140.3k2](/packages/spiral-grpc-client)

PHPackages © 2026

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