Generates RRule string using Livewire.
remeritus/livewire-rrule-generator is a Laravel package for generates rrule string using livewire..
It currently has 0 GitHub stars and 39 downloads on Packagist (latest version 0.2.1).
Install it with composer require remeritus/livewire-rrule-generator.
Discover more Laravel packages by remeritus
or browse all Laravel packages to compare alternatives.
Last updated
Livewire Rrule Generator is a GUI for rlanvin/php-rrule. It generates RRULE from RFC 5545 complaint strings that can be used to manage recurring events.
Functionality is limited to Daily/Weekly/Monthly/Yearly rrules and GUI mimics Google Calendar approach.
You can install the package via composer:
composer require remeritus/livewire-rrule-generator
You can publish the config file with:
php artisan vendor:publish --tag="livewire-rrule-generator_without_prefix-config"
This is the content of the published config file:
return [
'title' => 'Define Schedule',
'includeWeekend' => TRUE,
'frequencies' => [
'DAILY' => TRUE,
'WEEKLY' => TRUE,
'MONTHLY' => TRUE,
'YEARLY' => TRUE,
],
'defaultView' => 'WEEKLY',
'weekStarts' => 'MO',
];
Add these additional lines into your tailwind.config.js file:
// use `purge` instead of `content` if using TailwindCSS v2.x
content: [
'./vendor/remeritus/livewire-rrule-generator/resources/views/**/*.blade.php',
// etc...
]
<livewire:rrule-generator/>
If you want to edit existing RRule you can pass it to rrule-string
<livewire:rrule-generator rrule-string='FREQ=WEEKLY;COUNT=30;INTERVAL=1' />
<input type="hidden" ... name="rrule_string"/> from which you can extract the RRule String. So if you place <livewire:rrule-generator/> within a form it will be part of the forms data.rruleCreated, which emits RRule String on Rrule's creation.The MIT License (MIT). Please see License File for more information.