PHPackages                             leo108/php\_sdk\_skeleton - 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. leo108/php\_sdk\_skeleton

ActiveLibrary

leo108/php\_sdk\_skeleton
=========================

A skeleton for PHP SDK development

0.0.1(8y ago)261.1k12MITPHPPHP &gt;=5.6

Since Aug 13Pushed 8y ago3 watchersCompare

[ Source](https://github.com/leo108/php_sdk_skeleton)[ Packagist](https://packagist.org/packages/leo108/php_sdk_skeleton)[ RSS](/packages/leo108-php-sdk-skeleton/feed)WikiDiscussions master Synced today

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

PHP SDK Skeleton
================

[](#php-sdk-skeleton)

A skeleton for PHP SDK development.

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

[](#installation)

`composer require leo108/php_sdk_skeleton -vvv`

Quick Start
-----------

[](#quick-start)

Let's get started with creating a simple github sdk using [REST Api](https://developer.github.com/v3/).

Create a class extends `Leo108\SDK\AbstractApi`, override the `getFullApiUrl` method.

```
class RepositoryApi extends Leo108\SDK\AbstractApi {
    protected function getFullApiUrl($api)
    {
        return 'https://api.github.com/'.$api;
    }
}

```

Create a method called `list` which will list all repos of a user.

```
class RepositoryApi extends Leo108\SDK\AbstractApi {
    public function list($username)
    {
        return $this->apiGet('users/'.$username.'/repos');
    }
}

```

Create a class extends `Leo108\SDK\SDK`, implement the `getApiMap` method.

```
class GithubSDK extends Leo108\SDK\SDK {
    protected function getApiMap()
    {
        return [
            'repository' => RepositoryApi::class,
        ];
    }
}

```

All Done. Let's try it out.

```
$sdk  = new GithubSDK();
// $resp is a Psr\Http\Message\ResponseInterface object
$resp = $sdk->repository->list('leo108');
var_dump($resp->getBody()->getContents());

```

Work with
---------

[](#work-with)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity48

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

3192d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5349de95f58718519b6bff1c26fc8fea971b2aae6ac01e0a152ffa1c13f2caff?d=identicon)[leo108](/maintainers/leo108)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M648](/packages/sylius-sylius)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[nutgram/nutgram

The Telegram bot library that doesn't drive you nuts

714214.9k8](/packages/nutgram-nutgram)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)

PHPackages © 2026

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