[WIP] Laravel Viewi
This is just a proof-of-concept. Don't use it in production!
Viewi for Laravel: Build full-stack and completely reactive user interfaces with PHP.
- Already familiar HTML.
- PHP dynamic data state.
- Efficient SSR/CSR.
- SEO friendly.
- No HTML over "the wire".
- The same code for server and front-end sides.
- Speed up your development process.
- Turn your components into highly-optimized JavaScript code.
- Build mobile and desktop applications (Planned).
馃殌
Launcher Hey! We've built a Docker-based deployment tool to launch apps and sites fully containerized. You can find all features and the roadmap on our website, and we are on Twitter as well!
Support
We proudly support the community by developing Laravel packages and giving them away for free. Keeping track of issues and pull requests takes time, but we're happy to help! If this package saves you time or if you're relying on it professionally, please consider supporting the maintenance and development.
Installation
You can install the package via composer:
composer require protonemedia/laravel-viewi
Install the example components and routes:
php artisan viewi:install
Add the ViewiMiddleware
to the web
group:
class Kernel extends HttpKernel
{
protected $middlewareGroups = [
'web' => [
\ProtoneMedia\LaravelViewi\Middleware\ViewiMiddleware::class,
...
],
];
}
Optionally, you can publish the config file with:
php artisan vendor:publish --tag="viewi-config"
Usage
Add Viewi components as regular Laravel routes, for example, in web.php
:
use App\Components\Views\Home\HomePage;
use App\Components\Views\NotFound\NotFoundPage;
use App\Components\Views\Pages\TodoAppPage;
use Illuminate\Support\Facades\Route;
Route::get('/', HomePage::class);
Route::get('/todo', TodoAppPage::class);
Route::get('*', NotFoundPage::class);
Clear the build and public assets:
php artisan viewi:clear
Changelog
Please see CHANGELOG for more information about what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Other Laravel packages
Laravel Analytics Event Tracking
: Laravel package to easily send events to Google Analytics.Laravel Blade On Demand
: Laravel package to compile Blade templates in memory.Laravel Cross Eloquent Search
: Laravel package to search through multiple Eloquent models.Laravel Eloquent Scope as Select
: Stop duplicating your Eloquent query scopes and constraints in PHP. This package lets you re-use your query scopes and constraints by adding them as a subquery.Laravel Eloquent Where Not
: This Laravel package allows you to flip/invert an Eloquent scope, or really any query constraint.-
Laravel FFMpeg
: This package provides an integration with FFmpeg for Laravel. The storage of the files is handled by Laravel's Filesystem.
Laravel Form Components
: Blade components to rapidly build forms with Tailwind CSS Custom Forms and Bootstrap 4. Supports validation, model binding, default values, translations, includes default vendor styling and fully customizable!Laravel Mixins
: A collection of Laravel goodies.Laravel Paddle
: Paddle.com API integration for Laravel with support for webhooks/events.Laravel Verify New Email
: This package adds support for verifying new email addresses: when a user updates its email address, it won't replace the old one until the new one is verified.Laravel WebDAV
: WebDAV driver for Laravel's Filesystem.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker. Please do not email any questions, open an issue if you have a question.
Credits
License
The MIT License (MIT). Please see License File for more information.