GithubHelp home page GithubHelp logo

Stand With Ukraine

Viewi

Viewi V2

Unique and efficient front-end framework for PHP

UI framework for PHP with reactivity on the front end and efficient SSR.

Viewi is not about avoiding javascript, it's about integrating them both for mutual benefits.

Front-end framework designed for PHP.

How? - by transpiring PHP/HTML code into javascript to fuel the front-end.

Transpiling works with a limited subset of PHP (not everything can be converted into JavaScript), but even then, it is still more than enough for building advanced web applications. And if you need more custom JS - there is a way to inject it.

Viewi takes your PHP components and converts them into JavaScript.

The flow:

  • The user opens the URL in the browser.
  • Viewi generates SEO-friendly HTML pages based on your components.
  • The browser receives an HTML page with Viewi scripts included.
  • Viewi JS framework runs a hydration process (creates events, makes page alive and reactive, as any other JS framework would).
  • From now on users can interact with the page without requesting new content from the server.
  • When navigating by clicking on links Viewi JS will render the page without making a request to your server using front-end routing.
  • API data can be requested with a built-in HTTP Client.

Documentation

https://viewi.net/docs

Discussions (Forum)

Testing

Run tests

All tests:

php vendor/bin/codecept run

Unit tests:

php vendor/bin/codecept run Unit

Specific test:

php vendor/bin/codecept run Unit JsTranspilerTest

Create test

php vendor/bin/codecept generate:test Unit JsTranspiler

Support

We all have full-time jobs and dedicate our free time to this project, and we would appreciate Your help of any kind. If you like what we are creating here and want us to spend more time on this, please consider supporting:

  • Give us a star⭐.
  • Support me on buymeacoffee
  • Follow us on Twitter.
  • Contribute by sending pull requests.
  • Any other ideas or proposals? Please mail me [email protected].
  • Feel welcome to share this project with your friends.

License

Copyright (c) 2020-present Ivan Voitovych

Please see MIT for license text

Viewi's Projects

Viewi doesn’t have any public repositories yet.

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.