{"repo":"yiisoft/app-api","free":true,"listed":false,"github":"https://github.com/yiisoft/app-api","clone":"git clone https://github.com/yiisoft/app-api.git","description":"Yii3 API application template","language":"PHP","stars":106,"topics":["yii3","api","rest","hacktoberfest"],"license":"BSD-3-Clause","category":"api-integrations-sdks","readme_excerpt":"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: - Console application template - Web application template 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 .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. ","default_branch":null,"files":null,"tree":[],"storefront":"/r/yiisoft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yiisoft/app-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}