cierrateam/alphy

Another awesome laravel package

v0.1.1 2021-01-06 03:55 UTC

This package is auto-updated.

Last update: 2024-04-10 22:08:59 UTC


README

A tiny wrapper around alpine for laravel which is made for easier usage of components.

Installation

composer require cierrateam/alphy

Usage

Instead of

<div x-data="fooBar()">
  <span x-text="foo" />
</div>

<script>
  function fooBar() {
    return {
      foo: "bar",
    }
  }
</script>

You can just use

<a-fooBar>
  <span x-text="foo" />
</a-fooBar>


<script>
  function fooBar() {
    return {
      foo: "bar",
    }
  }
</script>

Plans

We're planning to extend this shorthands by time. It's just a small start for something big. So stay tuned 🚀