Coder Social home page Coder Social logo

00mjk / demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yiisoft/demo

0.0 0.0 0.0 1019 KB

Yii 3 demo application

Home Page: https://www.yiiframework.com/

License: BSD 3-Clause "New" or "Revised" License

PHP 99.05% JavaScript 0.84% CSS 0.04% Batchfile 0.06% Shell 0.01%

demo's Introduction

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 update 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, console โ†’ commands 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.

demo's People

Contributors

1luc1 avatar allannp avatar andrew-demb avatar armpogart avatar babl86 avatar damasco avatar darkdef avatar devanych avatar fantom409 avatar githubjeka avatar hiqsol avatar iamsaint avatar julian-b90 avatar kunapyanov avatar maximal avatar mister-42 avatar nex-otaku avatar perlexed avatar razonyang avatar rezaei121 avatar romkatsu avatar roxblnfk avatar rustamwin avatar samdark avatar terabytesoftw avatar thenotsoft avatar viktorprogger avatar vjik avatar xepozz avatar yiiliveext avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.