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. [Utility &amp; Helpers](/categories/utility)
4. /
5. leo108/php\_sdk\_skeleton

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

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

3193d 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

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[civicrm/civicrm-core

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

728272.9k20](/packages/civicrm-civicrm-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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