PHPackages                             elefant/app-wires - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. elefant/app-wires

ActiveElefant-app[HTTP &amp; Networking](/categories/http)

elefant/app-wires
=================

Wires app for the Elefant CMS auto-connects Alpine.js for easy single-page app development

0.2-beta(5y ago)41MITPHP

Since Jun 29Pushed 5y ago3 watchersCompare

[ Source](https://github.com/jbroadway/wires)[ Packagist](https://packagist.org/packages/elefant/app-wires)[ RSS](/packages/elefant-app-wires/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Wires
=====

[](#wires)

Inspired by [Laravel Livewire](https://laravel-livewire.com/), this app provides simple template extensions for the [Elefant CMS](https://www.elefantcms.com/) that wires any handler and its view template up to [Alpine.js](https://github.com/alpinejs/alpine), providing a few interesting features:

- Server-side rendering of the initial request
- Converts Elefant's `{{var}}` tags to Alpine.js `` tags
- Provides automatic server-side callbacks via a handful of custom template tags

Installation
------------

[](#installation)

Via composer:

```
composer require elefant/app-wires
```

Usage
-----

[](#usage)

Here's how it works:

In your handler (`apps/myapp/handlers/example.php`):

```
