yii-extension / simple-app
适用于Yii3的简单Web应用程序。
dev-master / 1.0.x-dev
2022-04-07 21:15 UTC
Requires
- php: >=8.0
- nyholm/psr7: ^1.3
- yiisoft/aliases: ^2.0
- yiisoft/config: ^1.0
- yiisoft/csrf: ^1.0
- yiisoft/data-response: ^1.0
- yiisoft/definitions: ^1.0
- yiisoft/di: ^1.0
- yiisoft/error-handler: ^2.0
- yiisoft/event-dispatcher: ^1.0
- yiisoft/i18n: ^1.0
- yiisoft/log: ^1.0
- yiisoft/log-target-file: ^1.0
- yiisoft/router-fastroute: ^1.0
- yiisoft/session: ^1.0
- yiisoft/yii-console: ^1.0
- yiisoft/yii-http: ^1.0
- yiisoft/yii-runner-console: ^1.0
- yiisoft/yii-runner-http: ^1.0
Requires (Dev)
- codeception/c3: ^2.6.0
- codeception/codeception: ^5.0
- codeception/module-asserts: ^2.0
- codeception/module-cli: ^2.0
- codeception/module-phpbrowser: ^2.0
- vimeo/psalm: ^4.7
- dev-master / 1.0.x-dev
- dev-dependabot/composer/vimeo/psalm-tw-5.8
- dev-dependabot/composer/yiisoft/definitions-tw-2.1
- dev-dependabot/github_actions/actions/checkout-3.1.0
- dev-dependabot/composer/yiisoft/log-tw-2.0
- dev-dependabot/composer/codeception/module-phpbrowser-tw-3.0
- dev-dependabot/composer/codeception/module-asserts-tw-3.0
This package is auto-updated.
Last update: 2024-09-10 12:42:38 UTC
README
适用于Yii3的简单Web应用程序。
目录结构
config/ application directory configurations
common contains common config local classes
web contains web config local classes
widget contains widget config local classes
src/ application directory
Action contains action classes
Command contains command console classes
Handler contains handlers classes
安装
如果您没有Composer,您可以按照getcomposer.org上的说明进行安装。
然后,您可以使用以下命令安装此项目模板
composer create-project --prefer-dist --stability dev yii-extension/simple-app <your project>
现在,假设 app
是位于 public
根目录下的目录,您应该可以通过以下URL访问应用程序。
配置您的应用程序
所有配置都在 application
的 config
目录中。
使用PHP内置服务器
php -S 127.0.0.1:8080 -t public
等待其启动,然后在浏览器中打开以下URL
https://:8080
Codeception测试
该包已通过Codeception测试。要运行测试
php -S 127.0.0.1:8080 -t public > yii.log 2>&1 & vendor/bin/codecept run
静态分析
代码已通过Psalm进行静态分析。要运行静态分析
./vendor/bin/psalm
许可证
yii-packages的yii-extension/simple-app
是免费软件。
它根据BSD许可证条款发布。有关更多信息,请参阅LICENSE
。
由Yii Extension维护。