PHPackages                             petermartinez/accredify-connect-php - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. petermartinez/accredify-connect-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

petermartinez/accredify-connect-php
===================================

Accredify Connect PHP Library

v0.1(10y ago)015PHP

Since Mar 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/PeterMartinez/AccredifyConnect)[ Packagist](https://packagist.org/packages/petermartinez/accredify-connect-php)[ RSS](/packages/petermartinez-accredify-connect-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Accredify Connect PHP Library
=============================

[](#accredify-connect-php-library)

Dependencies
------------

[](#dependencies)

- PHP 5.2+
- Composer [Getting Started](https://getcomposer.org/)
- Guzzle HTTP Client (Installed via Composer)
- adoy/PHP-OAuth2 (Installed via Composer)

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

[](#getting-started)

**Step 1, Install Accredify Connect Library**` composer require petermartinez/accredify-connect-php`

**Step 2, Set Environment Variables** Add the following environment variables to your .env file.

```
ACCREDIFY_APP_ENV=sandbox
ACCREDIFY_APP_ID=
ACCREDIFY_APP_SECRET=
ACCREDIFY_REDIRECT_URI=

```

- Get Keys/Register App

    - [Sandbox Developer Portal](https://developer.sandbox.accredify.com)
    - [Production Developer Portal](https://developer.accredify.com)
- Configure **.env**

    - Enviroment
        - Testing Sandbox: `ACCREDIFY_APP_ENV=sandbox`
        - Testing Production `ACCREDIFY_APP_ENV=production`
    - Public Key `ACCREDIFY_APP_ID=`
    - Private Key `ACCREDIFY_APP_SECRET=`
    - Redirect URI `ACCREDIFY_REDIRECT_URI=`

**Example Usage**

```
use Accredify\Connect as AccredifyConnect;
  $AccredifyConnect = new AccredifyConnect;

  //Generate Connect URL /w State, leave empty for no state param
  $connectURL = $AccredifyConnect->getConnectLink('StateVarGoesHereOptional');

  //If return code (bounce back)
  if($_GET['code']){
    $Tokens = $AccredifyConnect->getAccessToken($_GET['code']);//Option 1
    $Tokens = $AccredifyConnect->getAccessToken();//Option 2, if no param is sent it will look for $_GET['code']
    /*
        $Tokens::
        Array (
            [access_token] => uVZpA3aSDzxuMFqbYJgjoB9cRKs6xwbfzBxcMt6k
            [token_type] => Bearer
            [expires_in] => 7776000
            [refresh_token] => vZpboiXBXexmWC0jNJ2FGaBWd1bxYvw5PTzZm9LJ
            )
    */
    //Get User
    $AccredifyUser = $AccredifyConnect->getUser($Tokens['access_token]);
    /*
    Array
    (
    [result] => Array
        (
            [data] => Array
                (
                    [person] => Array
                        (
                            [name] => Peter Martinez
                            [email] => Peter@Accredify.com
                            [hash] => ekFIa0NTWU1lRzFIOEMzZmpR
                            [address] => Array
                                (
                                    [city] => Miami
                                    [state] => FL
                                    [zip] => 33133
                                )

                        )

                    [certificates] => Array
                        (
                            [0] => Array
                                (
                                    [status] => Array
                                        (
                                            [code] => 2
                                            [message] => Approved
                                        )

                                    [type] => 3rd party
                                    [certificate] => https://www.sandbox.accredify.com/certificate/6A8pw8qu4iJHShZcGfsLwqb6qHTDl2VrC4Q9chDgzmXsEXFkc75JyhQZZJCk
                                    [reason] => Array
                                        (
                                            [type] => Attorney
                                            [name] => Adrian Alverez
                                            [license] => 123
                                            [address] => Address
                                            [doc] => https://s3.amazonaws.com/accredify-sandbox-secure/1_qA0wMcD9i.png?X-Amz-Content-Sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJOZ6LDMBE2M377KQ%2F20160305%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20160305T164512Z&X-Amz-SignedHeaders=Host&X-Amz-Expires=5400&X-Amz-Signature=37c480887fd52fa901850a2e1e1b60b24a326fbac3241ae1a1ea7ffa22b4ecf3
                                            [doc_date] => 09 / 23 / 2015
                                        )

                                    [created_on] => 2015-09-24 20:45:51
                                    [expires_on] => 2016-05-07 18:24:16
                                )
                        )

                )

        )

    [code] => 200
    [content_type] => application/json
)
    */
  }

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3768d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b33c90469120a858a8378dc1b185804d5b12005f0af93cd4c6f8e635b554e277?d=identicon)[PeterMartinez](/maintainers/PeterMartinez)

---

Top Contributors

[![PeterMartinez](https://avatars.githubusercontent.com/u/221366?v=4)](https://github.com/PeterMartinez "PeterMartinez (3 commits)")

### Embed Badge

![Health badge](/badges/petermartinez-accredify-connect-php/health.svg)

```
[![Health](https://phpackages.com/badges/petermartinez-accredify-connect-php/health.svg)](https://phpackages.com/packages/petermartinez-accredify-connect-php)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[nfse-nacional/nfse-php

This is my package nfse

1523.1k](/packages/nfse-nacional-nfse-php)

PHPackages © 2026

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