livewire README

The project's README from github.com/livewire/livewire. As one markdown file: README.md.

Livewire Logo

Total Downloads Latest Stable Version License

Introduction

Livewire is a full-stack framework for Laravel that allows you to build dynamic UI components without leaving PHP.

Official Documentation

You can read the official documentation on the Livewire website.

Local Development

git clone [email protected]:livewire/livewire.git && cd livewire
composer setup

This installs PHP and JS dependencies and sets up ChromeDriver for browser tests.

composer test:unit                                   # unit tests
composer test:browser                                # browser tests (headless)
composer test:browser:headed                         # browser tests (opens Chrome)
composer test:browser -- --filter="SupportCSP"       # specific tests

To build the JS assets after making changes: npm run build

Contributing

Thank you for considering contributing to Livewire! You can read the contribution guide here.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by Laravel's Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

Livewire is open-sourced software licensed under the MIT license.

livewire (livewire/livewire)

Searching Database…

23.6K ·GitHub
这是什么?Livewire 是一个基于 Laravel 的全栈框架,用来构建动态界面组件。它的理念是:你直接用 PHP 编写交互逻辑,而不必切换到 JavaScript。
它是一个独立的应用,还是需要加到我现有的 Laravel 项目里的东西?它是一个运行在 Laravel 应用内部的框架:你把它添加到 Laravel 项目中,然后在它之上编写动态界面组件。它不是一个可以单独运行的服务或工具。
我怎么安装它?安装步骤见 Livewire 官网的官方文档——README 里没有安装命令。如果要参与 Livewire 本身的开发,则需要先安装 PHP 和 JS 依赖以及 ChromeDriver。
使用它需要懂 JavaScript 吗?不需要——这正是它的卖点:你全程用 PHP 就能构建动态界面组件,浏览器端的部分由框架自己处理。
浏览器里的交互到底靠什么实现?Livewire 自带一个围绕 Alpine.js 构建的 JavaScript 运行时——仓库里打包了 alpinejs 以及 morph、focus、intersect、collapse、persist 等 @alpinejs 插件。
Livewire 本身是怎么开发和测试的?本地开发需要安装 PHP 和 JS 依赖并配置 ChromeDriver;JS 测试用 vitest 运行,浏览器测试使用 ChromeDriver。CI 工作流覆盖 pull requests 和 4.x 分支,JS 资源用 npm run build 重新构建。
这个项目成熟吗?它属于 Laravel 生态,文档就在 Livewire 官网上,自 2019 年 2 月起以 MIT 协议开源,在 GitHub 上大约有 23.6k 颗星。
What are similar projects?filament, symfony, laravel, wasp, framework, next.js, blitz, riot
Creator
livewire
Size
49.2 MB
Stars
23.6K
Age
7y
Commits · 90 Days