An open API service indexing awesome lists of open source software.

https://github.com/viewi/viewi

Unique and efficient front-end framework for PHP
https://github.com/viewi/viewi

csr engine frontend html javascript php reactive ssr

Last synced: 14 days ago
JSON representation

Unique and efficient front-end framework for PHP

Awesome Lists containing this project

README

        

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://stand-with-ukraine.pp.ua)

Viewi


Viewi


Unique and efficient front-end framework for PHP

### Examples

```html




{$blog->title}


{$blog->description}





```

```php
class Blog extends BaseComponent
{
public BlogModel $blog;

public function like(bool $liked)
{
$this->blog->favorite = !$this->blog->favorite;
}
}
```

![Blog](/images/blog.png)

Discover more at [https://viewi.net](https://viewi.net).

## Documentation

[https://viewi.net/docs](https://viewi.net/docs/introduction)

[Discussions (Forum)](https://github.com/viewi/viewi/discussions)

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](https://www.buymeacoffee.com/ivan.v)
- Follow us on [Twitter](https://twitter.com/viewiphp).
- 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](/LICENSE) for license text