PHPackages                             acrosure/acrosure-php-sdk - 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. acrosure/acrosure-php-sdk

ActiveLibrary[API Development](/categories/api)

acrosure/acrosure-php-sdk
=========================

PHP SDK for connecting with Acrosure Insurance Gateway

v1.0.11(7y ago)0441MITPHPPHP &gt;=5.5.0

Since Oct 12Pushed 7y ago2 watchersCompare

[ Source](https://github.com/Acrosure/acrosure-php-sdk)[ Packagist](https://packagist.org/packages/acrosure/acrosure-php-sdk)[ Docs](https://github.com/acrosure/acrosure-php-sdk.git)[ RSS](/packages/acrosure-acrosure-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelog (8)Dependencies (1)Versions (10)Used By (0)

acrosure-php-sdk
================

[](#acrosure-php-sdk)

[![Acrosure](https://raw.githubusercontent.com/Acrosure/acrosure-js-sdk/master/static/Acrosure-color.png)](https://raw.githubusercontent.com/Acrosure/acrosure-js-sdk/master/static/Acrosure-color.png)

PHP SDK for connecting with Acrosure Insurance Gateway

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

[](#installation)

Install via [Composer](https://getcomposer.org/):

`composer require acrosure/acrosure-php-sdk`

Getting Started
---------------

[](#getting-started)

Import AcrosureClient into your project.

```
require_once dirname(__FILE__).'/vendor/autoload.php';
```

Instantiate with an API key from [Acrosure Dashboard](https://dashboard.acrosure.com).

```
$acrosureClient = new AcrosureClient([
  "token" => "",
  "endpointBase" => "" // as optional
]);
```

Basic Usage
-----------

[](#basic-usage)

AcrosureClient provides several objects such as `application`, `product`, etc. and associated APIs.

Any data will be inside an response object with `data` key, along with meta data, such as:

```
{
  "data": { ... },
  "status": "ok",
  ...
}
```

### Application

[](#application)

#### Get

[](#get)

Get application with specified id.

```
$application = $acrosureClient->getApplicationManager()->get("");
```

#### Create

[](#create)

Create an application.

```
$createdApplication = $acrosureClient->getApplicationManager()->create([
  "product_id" => "", // required
  "basic_data" => json_decode('{}'),
  "package_options" => json_decode('{}'),
  "additional_data" => json_decode('{}'),
  "package_code" => "",
  "attachments": => []
]);
```

#### Update

[](#update)

Update an application.

```
$updatedApplication = $acrosureClient->getApplicationManager()->update([
  "application_id" => "", // required
  "basic_data": json_decode('{}'),
  "package_options": json_decode('{}'),
  "additional_data": json_decode('{}'),
  "package_code": "",
  "attachments": []
]);
```

#### Get packages

[](#get-packages)

Get current application available packages.

```
$packages = $acrosureClient->getApplicationManager()->getPackages("");
```

#### Select package

[](#select-package)

Select package for current application.

```
$updatedApplication = $acrosureClient->getApplicationManager()->selectPackage([
  "application_id" => "",
  "package_code" => ""
]);
```

#### Get package

[](#get-package)

Get selected package of current application.

```
$currentPackage = $acrosureClient->getApplicationManager()->getPackage(
  ""
);
```

#### Submit

[](#submit)

Submit current application.

```
$submittedApplication = $acrosureClient->getApplicationManager()->submit(
  ""
);
```

#### Confirm

[](#confirm)

Confirm current application.

```
$confirmedApplication = $acrosureClient->getApplicationManager()->confirm(
  ""
);
```

#### List

[](#list)

List your applications (with or without query).

```
$applications = $acrosureClient->getApplicationManager()->getList(searchParams);
```

### Product

[](#product)

#### Get

[](#get-1)

Get product with specified id.

```
$product = $acrosureClient->getProductManager()->get("");
```

#### List

[](#list-1)

List your products (with or without query).

```
$products = $acrosureClient->getProductManager()->getList(searchParams);
```

### Policy

[](#policy)

#### Get

[](#get-2)

Get policy with specified id.

```
$policy = $acrosureClient->getPolicyManager()->get("");
```

#### List

[](#list-2)

List your policies (with or without query).

```
$policies = $acrosureClient->getPolicyManager()->getList(searchParams);
```

### Data

[](#data)

#### Get

[](#get-3)

Get values for a handler (with or without dependencies, please refer to Acrosure API Document).

```
// Without dependencies
$values = $acrosureClient->getDataManager()->get([
  "handler" => ""
]);

// With dependencies
$values = $acrosureClient->getDataManager()->get([
  "handler" => "",
  "dependencies" => ["", ""]
]);
```

### Team

[](#team)

#### Get info

[](#get-info)

Get current team information.

```
$teamInfo = $acrosureClient->getTeamManager()->getInfo();
```

### Other functionality

[](#other-functionality)

#### Verify webhook signature

[](#verify-webhook-signature)

Verify webhook signature by specify signature and raw data string. (Only Node.js environment)

```
$isSignatureValid = $acrosureClient->verifySignature(
  "",
  ""
);
```

Associated Acrosure API endpoints
---------------------------------

[](#associated-acrosure-api-endpoints)

### Application

[](#application-1)

```
/applications/get
/applications/list
/applications/create
/applications/update
/applications/get-packages
/applications/get-package
/applications/select-package
/applications/submit
/applications/confirm
/applications/get-hash

```

### Product

[](#product-1)

```
/products/get
/products/list

```

### Policy

[](#policy-1)

```
/policies/get
/policies/list

```

### Data

[](#data-1)

```
/data/get

```

### Team

[](#team-1)

```
/teams/get-info

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 67.9% 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 ~3 days

Total

8

Last Release

2749d ago

PHP version history (2 changes)v1.0.4PHP &gt;=5.3.2

v1.0.10PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/463b73e61dcb31ab3da58e06c6cb85b350cf7f7496078e720c1f2b289cfc5ba5?d=identicon)[@acrosure](/maintainers/@acrosure)

---

Top Contributors

[![zugarzeeker](https://avatars.githubusercontent.com/u/8542552?v=4)](https://github.com/zugarzeeker "zugarzeeker (38 commits)")[![monthol8th](https://avatars.githubusercontent.com/u/22114870?v=4)](https://github.com/monthol8th "monthol8th (18 commits)")

---

Tags

sdkacrosure

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/acrosure-acrosure-php-sdk/health.svg)

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

###  Alternatives

[appwilio/cdek-sdk

CDEK API SDK (cdek.ru)

406.5k](/packages/appwilio-cdek-sdk)[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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