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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package app-api

Yii

Yii API application

An application template for a new API project


Latest Stable Version Total Downloads build Code Coverage static analysis type-coverage psalm-level

The package is an API application template. If you need console only or classic web please start with corresponding templates:

Requirements

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 .env file 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

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack


All versions of app-api with dependencies

PHP Build Version
Package Version
Requires php Version 8.2 - 8.5
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yiisoft/app-api contains the following files

Loading the files please wait ...