Package

Simshaun Recurr

PHP library for working with recurrence rules

Package

simshaun/recurr

View on GitHub →

Overview

What Simshaun Recurr does

Recurr is a PHP library designed to handle recurrence rules by translating them into DateTime objects, enabling developers to manage recurring events efficiently.

Originating as a precursor to a calendar application with recurring events, Recurr simplifies the process of creating and managing recurrence rules defined by the iCalendar standard (RFC 5545). The library draws inspiration from rrule.js, providing a way for PHP developers to generate and manipulate recurrence patterns such as daily, weekly, or monthly schedules.

Developers can create a new recurrence rule by passing a string or array representing the rule, alongside optional start and end dates and a timezone. This flexibility allows for both static and programmatic construction of rules. Once defined, rules are transformed into DateTime objects using the provided transformer, which generates a collection of Recurrence objects that include start and end methods.

Notably, the library also offers constraints and filters to further refine which dates are included in the recurrence collection. For instance, start-before or end-after constraints can be applied, reducing the result set to relevant entries. Additionally, it includes post-transformation filtering options, enhancing its utility in complex scheduling scenarios.

Recurr supports translating recurrence rules into human-readable text, although this is currently a beta feature and primarily limited to major frequency types. This aspect is particularly useful for applications needing to display recurrence details in a user-friendly format.

This overview was generated by AI from the package README and may not reflect the latest release.

Read the full README →

Simshaun Recurr Related Articles

Recurr is a PHP library for working with recurrence rules for calendar dates image

Recurr is a PHP library for working with recurrence rules for calendar dates

Read article
Model-Based Scheduling for Laravel with Cadence image

Model-Based Scheduling for Laravel with Cadence

Read article

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum