Download the PHP package yiisoft/app-api without Composer
On this page you can find all versions of the php package yiisoft/app-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package app-api
Yii API application
An application template for a new API project
The package is an API application template. If you need console only or classic web please start with corresponding templates:
Requirements
- PHP 8.2 - 8.5.
Installation
Local installation
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
Create a project:
[!NOTE] Ensure that Composer is executed with the same PHP version that will be used to run the application.
Copy the example environment file and adjust as needed:
To run the app:
Now you should be able to access the application through the URL printed to console.
Usually it is http://localhost:8080.
[!TIP] The
.envfile is for local development only and is excluded from version control. In production, configure environment variables via your server or container instead.
Installation with Docker
[!WARNING] Docker compose version 2.24 or above is required.
Fork the repository, clone it, then:
To run the app:
To open the running app in your default browser:
To stop the app:
The application is available at http://localhost.
Other make commands are available in the Makefile and can be listed with:
Directory structure
The application template has the following structure:
Testing
The template comes with ready to use Codeception configuration. To execute tests, in local installation run:
For Docker:
Static analysis
The code is statically analyzed with Psalm. To run static analysis:
or, using Docker:
Support
If you need help or have a question, check out Yii Community Resources.
License
The Yii3 API template is free software. It is released under the terms of the BSD License.
Please see LICENSE for more information.
Maintained by Yii Software.
Support the project
Follow updates
All versions of app-api with dependencies
ext-filter Version *
httpsoft/http-message Version ^1.1.6
psr/container Version ^2.0.2
psr/http-factory Version ^1.1
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0.2
psr/http-server-middleware Version ^1.0.2
psr/log Version ^3.0.2
symfony/console Version ^7.4.6 || ^8.0.6
yiisoft/aliases Version ^3.1.1
yiisoft/config Version ^1.6.2
yiisoft/data Version ^1.0.1
yiisoft/data-response Version ^2.2
yiisoft/definitions Version ^3.4.1
yiisoft/di Version ^1.4.1
yiisoft/error-handler Version ^4.3.2
yiisoft/http Version ^1.3
yiisoft/hydrator Version ^1.6.3
yiisoft/injector Version ^1.2.1
yiisoft/input-http Version ^1.0.1
yiisoft/log Version ^2.2.0
yiisoft/middleware-dispatcher Version ^5.4
yiisoft/request-body-parser Version ^1.2.1
yiisoft/request-provider Version ^1.3
yiisoft/router Version ^4.0.2
yiisoft/router-fastroute Version ^4.0.3
yiisoft/validator Version ^2.5.1
yiisoft/yii-console Version ^2.4.2
yiisoft/yii-http Version ^1.1.1
yiisoft/yii-runner-console Version ^2.2.1
yiisoft/yii-runner-http Version ^3.2.1