PHPackages                             sinevia/php-library-api - 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. sinevia/php-library-api

ActiveLibrary[API Development](/categories/api)

sinevia/php-library-api
=======================

PHP Library API

v1.2.0(6y ago)147912proprietaryPHP

Since Jan 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Sinevia/php-library-api)[ Packagist](https://packagist.org/packages/sinevia/php-library-api)[ Docs](http://github.com/sinevia/php-library-api)[ RSS](/packages/sinevia-php-library-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (2)

PHP Library API
===============

[](#php-library-api)

[![Tests](https://github.com/Sinevia/php-library-api/workflows/Test/badge.svg)](https://github.com/Sinevia/php-library-api/workflows/Test/badge.svg)[![Gitpod Ready-to-Code](https://camo.githubusercontent.com/ec0084907bd5b3576af415a1e46cae636fbfa04da6bf9db6296eae3057a189f0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f476974706f642d52656164792d2d746f2d2d436f64652d626c75653f6c6f676f3d676974706f64)](https://gitpod.io/#https://github.com/Sinevia/php-library-api)

A package to quickly set a PHP webservice

Background
----------

[](#background)

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

[](#installation)

- Install via Composer

```
composer require sinevia/php-library-api
```

Usage
-----

[](#usage)

1. The lines bellow create an API service, which serves commands mapped to middleware and class methods:

```
$commands = [
    'ping' => 'PingController@ping',

    'auth/login' => 'AuthController@login',
    'auth/register' => 'AuthController@register',
    'auth/password-restore' => 'AuthController@passwordRestore',

    'account/password-change' => ['MiddlewareController@verifyUser','AccountController@passwordChange'],

];

$api = new Sinevia\ApiService;
$api->addCommands($commands);
die($api->run());
```

2. Example controller with response:

```
class PingController{
    function ping(){
        return (new Sinevia\ApiResponse)->success('pong');
    }
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 78.9% 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 ~410 days

Total

3

Last Release

2230d ago

### Community

Maintainers

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

---

Top Contributors

[![Sinevia](https://avatars.githubusercontent.com/u/3450815?v=4)](https://github.com/Sinevia "Sinevia (15 commits)")[![lesichkovm](https://avatars.githubusercontent.com/u/7744963?v=4)](https://github.com/lesichkovm "lesichkovm (4 commits)")

---

Tags

phpapilibrarysinevia

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sinevia-php-library-api/health.svg)

```
[![Health](https://phpackages.com/badges/sinevia-php-library-api/health.svg)](https://phpackages.com/packages/sinevia-php-library-api)
```

###  Alternatives

[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[getjump/vk

Library for work with API Vk.com

19948.5k](/packages/getjump-vk)[mikealmond/musicbrainz

A PHP library for accessing the MusicBrainz API

6385.1k1](/packages/mikealmond-musicbrainz)

PHPackages © 2026

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