PHPackages                             yiisoft/demo-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. [Framework](/categories/framework)
4. /
5. yiisoft/demo-api

Abandoned → [yiisoft/demo](/?search=yiisoft%2Fdemo)ArchivedProject[Framework](/categories/framework)

yiisoft/demo-api
================

Yii Framework API project template

28207[1 PRs](https://github.com/yiisoft/demo-api/pulls)PHP

Since Feb 23Pushed 3y ago15 watchersCompare

[ Source](https://github.com/yiisoft/demo-api)[ Packagist](https://packagist.org/packages/yiisoft/demo-api)[ RSS](/packages/yiisoft-demo-api/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (6)Used By (0)

  **This package was closed and moved into .**

 ❌

---

 [ ![](https://camo.githubusercontent.com/8317c17418b39410a660f5149071d26c5023c0d5fb2b7ebb771324812f666d73/68747470733a2f2f796969736f66742e6769746875622e696f2f646f63732f696d616765732f7969695f6c6f676f2e737667) ](https://github.com/yiisoft)

Yii Framework API Demo Project
==============================

[](#yii-framework-api-demo-project)

[![Latest Stable Version](https://camo.githubusercontent.com/a80513ce703067a03ead5ab440171b9ef566231f7fcf4ddfcf87286270db7278/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f64656d6f2d6170692f762f737461626c652e706e67)](https://packagist.org/packages/yiisoft/demo-api)[![Total Downloads](https://camo.githubusercontent.com/4cebd655c6ceba1745848ff795cfdf1e3c7d53d6f6c2d38dbb98e01704851978/68747470733a2f2f706f7365722e707567782e6f72672f796969736f66742f64656d6f2d6170692f646f776e6c6f6164732e706e67)](https://packagist.org/packages/yiisoft/demo-api)[![Build status](https://github.com/yiisoft/demo-api/workflows/build/badge.svg)](https://github.com/yiisoft/demo-api/actions?query=workflow%3Abuild)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/daeadc42db5d76c2e9fb656ae8e17860b781d75d127a9e490fecb2ac35e2bf24/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f796969736f66742f64656d6f2d6170692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yiisoft/demo-api/?branch=master)[![static analysis](https://github.com/yiisoft/demo-api/workflows/static%20analysis/badge.svg)](https://github.com/yiisoft/demo-api/actions?query=workflow%3A%22static+analysis%22)

API Demo application for Yii 3.

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

[](#installation)

Install docker:

```
docker-compose up -d
```

Enter into the container:

```
docker exec -it yii-php bash
```

Install packages:

```
composer install
```

Change ownership of the app directory to web group:

```
chown -R :www-data .
```

Usually the application is available at .

Authorization is performed via the `X-Api-Key` header.

API documentation
-----------------

[](#api-documentation)

API documentation is available at `/docs`. It is built from OpenAPI annotations (`@OA`). See [Swagger-PHP documentation](https://zircote.github.io/swagger-php/Getting-started.html#write-annotations) for details on how to annotate your code.

Codeception testing
-------------------

[](#codeception-testing)

```
./vendor/bin/codecept run
```

Static analysis
---------------

[](#static-analysis)

The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:

```
./vendor/bin/psalm
```

###  Health Score

25

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor3

3 contributors hold 50%+ of commits

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://www.gravatar.com/avatar/261a6249c6f605f3956a2fae40fbb813f6b2e1e6f2bf806180c851a965426e54?d=identicon)[cebe](/maintainers/cebe)

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

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

![](https://www.gravatar.com/avatar/99106256c24a8cb23871b99fa90e48f37f1aa71608c185759b7d2a88683a5918?d=identicon)[hiqsol](/maintainers/hiqsol)

---

Top Contributors

[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (44 commits)")[![devanych](https://avatars.githubusercontent.com/u/20116244?v=4)](https://github.com/devanych "devanych (31 commits)")[![xepozz](https://avatars.githubusercontent.com/u/6815714?v=4)](https://github.com/xepozz "xepozz (26 commits)")[![rustamwin](https://avatars.githubusercontent.com/u/16498265?v=4)](https://github.com/rustamwin "rustamwin (21 commits)")[![romkatsu](https://avatars.githubusercontent.com/u/1677515?v=4)](https://github.com/romkatsu "romkatsu (7 commits)")[![vjik](https://avatars.githubusercontent.com/u/525501?v=4)](https://github.com/vjik "vjik (7 commits)")[![yiiliveext](https://avatars.githubusercontent.com/u/37578608?v=4)](https://github.com/yiiliveext "yiiliveext (4 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (3 commits)")[![terabytesoftw](https://avatars.githubusercontent.com/u/42547589?v=4)](https://github.com/terabytesoftw "terabytesoftw (3 commits)")[![JohnnyMcWeed](https://avatars.githubusercontent.com/u/9844452?v=4)](https://github.com/JohnnyMcWeed "JohnnyMcWeed (2 commits)")[![viktorprogger](https://avatars.githubusercontent.com/u/7670669?v=4)](https://github.com/viktorprogger "viktorprogger (1 commits)")[![iamsaint](https://avatars.githubusercontent.com/u/1016350?v=4)](https://github.com/iamsaint "iamsaint (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![roxblnfk](https://avatars.githubusercontent.com/u/4152481?v=4)](https://github.com/roxblnfk "roxblnfk (1 commits)")[![arogachev](https://avatars.githubusercontent.com/u/8326201?v=4)](https://github.com/arogachev "arogachev (1 commits)")[![Nex-Otaku](https://avatars.githubusercontent.com/u/2260071?v=4)](https://github.com/Nex-Otaku "Nex-Otaku (1 commits)")[![sankaest](https://avatars.githubusercontent.com/u/21160342?v=4)](https://github.com/sankaest "sankaest (1 commits)")

---

Tags

apidemodemo-apphacktoberfestinternal

### Embed Badge

![Health badge](/badges/yiisoft-demo-api/health.svg)

```
[![Health](https://phpackages.com/badges/yiisoft-demo-api/health.svg)](https://phpackages.com/packages/yiisoft-demo-api)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k65.4M154](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k11.6M74](/packages/spiral-roadrunner)[composer/installers

A multi-framework Composer library installer

1.4k133.5M5.5k](/packages/composer-installers)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k35.9M222](/packages/laravel-dusk)[laravel/fortify

Backend controllers and scaffolding for Laravel authentication.

1.7k38.8M190](/packages/laravel-fortify)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.0M101](/packages/cakephp-chronos)

PHPackages © 2026

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