All Projects → yiisoft → demo

yiisoft / demo

Licence: BSD-3-Clause License
Yii 3 demo application

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to demo

i18n
Yii i18n
Stars: ✭ 20 (-92.28%)
Mutual labels:  yii3
yii-dev-tool
Development environment for Yii 3 packages
Stars: ✭ 56 (-78.38%)
Mutual labels:  yii3
db-oracle
Oracle Database support for Yii
Stars: ✭ 21 (-91.89%)
Mutual labels:  yii3
csrf
PSR-15 middleware implementing CSRF protection
Stars: ✭ 20 (-92.28%)
Mutual labels:  yii3
view
Yii view rendering library
Stars: ✭ 42 (-83.78%)
Mutual labels:  yii3
package-template
A template for a new package within yiisoft
Stars: ✭ 26 (-89.96%)
Mutual labels:  yii3
yii-cycle
Cycle ORM support for Yii
Stars: ✭ 30 (-88.42%)
Mutual labels:  yii3
yii-masked-input
Yii Framework Masked input widget Extension
Stars: ✭ 38 (-85.33%)
Mutual labels:  yii3
http
Handy HTTP utility such as method constants and status codes
Stars: ✭ 20 (-92.28%)
Mutual labels:  yii3
cache
PSR-16 compatible cache library
Stars: ✭ 30 (-88.42%)
Mutual labels:  yii3
demo-api
www.yiiframework.com/
Stars: ✭ 23 (-91.12%)
Mutual labels:  yii3
assets
Assets management
Stars: ✭ 17 (-93.44%)
Mutual labels:  yii3
auth
www.yiiframework.com/
Stars: ✭ 28 (-89.19%)
Mutual labels:  yii3
cookies
Convenient way to use cookies with PSR-7
Stars: ✭ 17 (-93.44%)
Mutual labels:  yii3
files
Useful methods to manage files and directories
Stars: ✭ 27 (-89.58%)
Mutual labels:  yii3
validator
Yii validator library
Stars: ✭ 47 (-81.85%)
Mutual labels:  yii3
yii-auth-client
Yii Framework external authentication via OAuth and OpenID Extension
Stars: ✭ 20 (-92.28%)
Mutual labels:  yii3
injector
PSR-11 compatible injector
Stars: ✭ 33 (-87.26%)
Mutual labels:  yii3
yii-gii
Yii code generator extension
Stars: ✭ 27 (-89.58%)
Mutual labels:  yii3
auth-jwt
www.yiiframework.com/
Stars: ✭ 28 (-89.19%)
Mutual labels:  yii3

Yii Framework

Yii Framework Demo Project


[Yii Framework] is a modern framework designed to be a solid foundation for your PHP application.

It's intended to show and test all Yii features.

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

Installation

You'll need at least PHP 8.0.

  1. Clone this repository.
  2. Run composer install in project root directory.
  3. Run ./yii serve (on Windows yii serve). The application will be started on http://localhost:8080/.
  4. Go to index page. Cycle ORM will create tables, indexes and relations automatically in the configured DB. If you want to disable this behavior then comment out line with Generator\SyncTables::class in the config/packges/yiisoft/yii-cycle/params.php. In this case you should create migrations to sync changes of entities with DB.
  5. Run ./yii fixture/add 20 to create some random data.

Console

Console works out of the box and could be executed with ./yii.

Some commands:

user/create <login> <password>
fixture/add [count]

In order to register your own commands, add them to console/params.php, consolecommands section.

Web application

In order to run web application either built-in web server could be used by running ./yii serve or a real web server could be pointed to /public/index.php.

More routes could be added by editing src/Factory/AppRouterFactory.

Testing

The template comes with ready to use Codeception configuration. In order to execute tests run:

composer run serve 127.0.0.1:8080 > ./runtime/yii.log 2>&1 &
vendor/bin/codecept run

Static analysis

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

./vendor/bin/psalm

Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack

License

The Yii Framework Demo Project is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].