Skip to content

Romchik38/site2

Repository files navigation

Readme for site2

status status: ready phpstan phpstan: level 8 phpunit phpunit: low

Primary goals

Site2 is based on php-server and php-container and demonstrates:

You can see the optimized and working version of the website in the live preview.

Additional

Also, you can inspect additional features:

Dependencies

Minimum dependencies:

  1. twig/twig. You can replace it with any other template engine. All what you must do in this case - replace twig templates with new ones. Core logic will no change.
  2. laminas/laminas-diactoros - psr-7 implementation
  3. wapmorgan/mp3info - mp3 file checker (forked and refactored by me)
  4. Boostrap 5 as a css framework

Programming

  • Site was writen with OOP.
  • Phpstan with level 8.
  • Code based on architectural layers: domain, application and infrastructure.
  • Only PHP with minimum pure JS on the frontend.

See docs in doc folder

Code quality

  • phpstan level 8
    • passes[OK] No errors
  • phpunit
    • passesOK (368 tests, 630 assertions)
    • tested primary domain
  • laminas-coding-standard
    • passes75 / 75 (100%)
  • deptrac levels
    • domain
    • application
    • infrastructure

Install

Please read installation guide to run site2 as quickly as possible.

Other projects

You can view the previous and simpler website — Site1. It demonstrates a multi-page site with a login system, a sitemap, Google reCAPTCHA, and email-based password recovery.

Look at its live preview.

About

Example web site uses different languages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published