# demo-api **Repository Path**: mirrors_yiisoft/demo-api ## Basic Information - **Project Name**: demo-api - **Description**: No description available - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-12-01 - **Last Updated**: 2026-02-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

This package was closed and moved into https://github.com/yiisoft/demo.

---

Yii Framework API Demo Project


[![Latest Stable Version](https://poser.pugx.org/yiisoft/demo-api/v/stable.png)](https://packagist.org/packages/yiisoft/demo-api) [![Total Downloads](https://poser.pugx.org/yiisoft/demo-api/downloads.png)](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://scrutinizer-ci.com/g/yiisoft/demo-api/badges/quality-score.png?b=master)](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 Install docker: ```bash docker-compose up -d ``` Enter into the container: ```bash docker exec -it yii-php bash ``` Install packages: ```bash composer install ``` Change ownership of the app directory to web group: ```bash chown -R :www-data . ``` Usually the application is available at http://localhost:8080. Authorization is performed via the `X-Api-Key` header. ## 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 ```php ./vendor/bin/codecept run ``` ## Static analysis The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis: ```php ./vendor/bin/psalm ```