yii-extension/simple-app

Simple web application for Yii3.

dev-master / 1.0.x-dev 2021-11-26 10:36 UTC

This package is auto-updated.

Last update: 2021-11-26 10:36:28 UTC


README

68747470733a2f2f6c68332e676f6f676c6575736572636f6e74656e742e636f6d2f65685354506e5871726b6b304d33552d5550436a4330667479394b366c67796b4b32574f5541326e5548703867496b526a65544e387a385341426c6b766376522d39504972626f7849765047756a50675765624c51654848675837794c556f7846536475695a72546f6736576f5a4c694176716354523151545056526d6e733274596a414370703745513d7732343030

Simple web application for Yii3.


Total Downloads Build Status codecov static analysis type-coverage

Directory structure

  config/             application directory configurations
      common          contains common config local classes
      packages        contains config module/extension packages classes
      web             contains web config local classes
      
  src/                application directory
      Action          contains action classes
      Command         contains command console classes
      Handler         contains handlers classes
      Runner          contains runner classes

Installation

If you do not have Composer, you may install it by following the instructions at getcomposer.org.

You can then install this project template using the following command:

composer create-project --prefer-dist --stability dev yii-extension/simple-app <your project>

Now you should be able to access the application through the following URL, assuming app is the directory directly under the public root.

Configuring your application

All the configuration is in the config directory of the application.

Using PHP built-in server

php -S 127.0.0.1:8080 -t public

Wait till it is up, then open the following URL in your browser

http://localhost:8080

Codeception testing

The package is tested with Codeception. To run tests:

php -S 127.0.0.1:8080 -t public > yii.log 2>&1 &
vendor/bin/codecept run

Static analysis

The code is statically analyzed with Psalm. To run static analysis:

./vendor/bin/psalm

License

The yii-extension/simple-app for Yii Packages is free software.

It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Extension.

Support the project

Official website Open Collective