PHPackages                             prepaid-hoster/laravel-pph-api-client - 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. prepaid-hoster/laravel-pph-api-client

ActiveLibrary[API Development](/categories/api)

prepaid-hoster/laravel-pph-api-client
=====================================

v1.0.3(1y ago)02PHP

Since Feb 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Prepaid-Hoster/laravel-pph-api-client)[ Packagist](https://packagist.org/packages/prepaid-hoster/laravel-pph-api-client)[ RSS](/packages/prepaid-hoster-laravel-pph-api-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Prepaid Hoster API Client for Laravel
=====================================

[](#prepaid-hoster-api-client-for-laravel)

This package provides a simple way to communicate with the Prepaid Hoster API. It is a wrapper around the GuzzleHttp library, which provides a simple way to communicate with servers via HTTP.

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

[](#installation)

```
composer require prepaid-hoster/laravel-pph-api-client
```

Usage
-----

[](#usage)

First, update your .env file with the following variables:

```
PPH_API_KEY="your-api-key"
```

Then, you can use the package like this:

```
    public function testGetHostings()
    {
        // Automatically injects the API key from the .env file
        $client = app(ApiClient::class);

        // Get all hostings, with the alternative server 'fsn-01'
        $response = $client
            ->withAlt('fsn-01')
            ->get('/client/hostings');

        // Get the first hosting ID
        $firstHosting = $response->get('data.0.id');

        // Get the complete hosting information
        $completeHosting = $client->get("/client/hostings/{$firstHosting}");
        dd($completeHosting->all());
    }
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance44

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Every ~0 days

Total

4

Last Release

444d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e897f1c83acd572b971771836501d7c5b22c7d28e913552319da539c46de938?d=identicon)[dezio1991](/maintainers/dezio1991)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/prepaid-hoster-laravel-pph-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/prepaid-hoster-laravel-pph-api-client/health.svg)](https://phpackages.com/packages/prepaid-hoster-laravel-pph-api-client)
```

###  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)
