PHPackages                             sayedbilalhussain/pexcardsdk-laravel - 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. sayedbilalhussain/pexcardsdk-laravel

ActiveLibrary[API Development](/categories/api)

sayedbilalhussain/pexcardsdk-laravel
====================================

Pex Cards PHP Laravel SDK

00PHP

Since Jan 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sayedbilalhussain/pexcardsdk-laravel)[ Packagist](https://packagist.org/packages/sayedbilalhussain/pexcardsdk-laravel)[ RSS](/packages/sayedbilalhussain-pexcardsdk-laravel/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

PEXCARD SDK -PHP-laravel
========================

[](#pexcard-sdk--php-laravel)

Pex Cards PHP SDK | Pex Cards PHP Laravel SDK

Usage
-----

[](#usage)

- requirements

```
PHP >= 7.0
Laravel >= 5.8
Guzzle >= 6.0

```

- Installation

```
composer require sayedbilalhussain/pexcardsdk-laravel

```

- Publish Config

```
php artisan vendor:publish

```

### After Publishing Mention Api Credentials

[](#after-publishing-mention-api-credentials)

- Add PexCard Administrator Username and Password and required credentials in config/pex.php.

Auth Tokens / Api Auth Token/Key
--------------------------------

[](#auth-tokens--api-auth-tokenkey)

- Create Token

```
use SayedBilalHussain\PexCardSdk\Services\PexService;

$pexService = new PexService();
$pexService->generateUserToken() //this will return auth token

```

- Renew Token (Only one month prior to expiry) [Implementation note](https://developer.pexcard.com/docs4#!/Token3258321032323232323232323232323232323232Manage32authentication32for32the32PEX32API4610323232323232323232323232/Token_RenewByAuthorizationPOSTToken_Renew)

```
use SayedBilalHussain\PexCardSdk\Services\PexService;

$pexService = new PexService();
$pexService->setToken();
$pexService->renewToken();
$pexService->getToken();

```

- Revoke/Logout from all created tokens

```
use SayedBilalHussain\PexCardSdk\Services\PexService;

$pexService = new PexService();
$pexService->revokeTokens();

```

- Revoke/Logout from specific token

```
use SayedBilalHussain\PexCardSdk\Services\PexService;

$pexService = new PexService();
$pexService->revokeToken();

```

- Detail of Tokens (Expiry/App)

```
use SayedBilalHussain\PexCardSdk\Services\PexService;

$pexService = new PexService();
$pexService->getTokenDetail(); // this will return detail of all apps and related tokens with detail

```

Card Funding
------------

[](#card-funding)

- Fund card

```
use SayedBilalHussain\PexCardSdk\Services\PexService;

$pex = new PexService();
$pex->setToken(); \\recently generated token
$pex->FundCard(,);

```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36416671?v=4)[bilal hussain](/maintainers/sayedbilalhussain)[@sayedbilalhussain](https://github.com/sayedbilalhussain)

---

Top Contributors

[![sayedbilalhussain](https://avatars.githubusercontent.com/u/36416671?v=4)](https://github.com/sayedbilalhussain "sayedbilalhussain (14 commits)")

### Embed Badge

![Health badge](/badges/sayedbilalhussain-pexcardsdk-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/sayedbilalhussain-pexcardsdk-laravel/health.svg)](https://phpackages.com/packages/sayedbilalhussain-pexcardsdk-laravel)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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