Download the PHP package marcbelletre/acf-rrule without Composer

On this page you can find all versions of the php package marcbelletre/acf-rrule. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package acf-rrule

ACF RRule Field

Create recurring rules within a single ACF field and retrieve all the dates using the simshaun/recurr package.

ACF RRule Screenshot

Usage

The RRule field returns an array with the following attributes:

Attribute Type Description
rrule string The RRule string describing the recurring rule
start_date string The start date of the recurrence (Ymd)
start_time string The start time of the recurrence (H:i:s)
frequency string The selected frequency (DAILY|WEEKLY|MONTHLY|YEARLY)
interval int The interval set for the frequency
weekdays array\<string> An array of days for the weekly frequency
monthdays array\<string> An array of days for the monthly frequency
months array\<int> An array of months for the yearly frequency
monthly_by string The selected option for the monthly frequency (monthdays|setpos)
bysetpos array\<int> The starting numbers for the monthly "setpos" option
byweekday array\<string> The selected days for the monthly "setpos" option
end_type string The end of the recurrence (date|count)
end_date string The end date in YYYYMMDD format for the recurrence when end_type is set to "date"
occurence_count int The number of occurences for the recurrence when end_type is set to "count"
dates_collection array\<DateTime> An array containing all the DateTime objects generated by your recurring rule
text string A text representation for your recurring rule
first_date DateTime The first occurrence of the recurrence (since v1.4.0)
last_date DateTime The last occurrence of the recurrence (since v1.4.0)

Advanced usage

A common use case for this plugin is creating an agenda-style display for your events. Here is how I usually do it.

In the following example we will assume you have an event custom post type with an ACF RRule field named rrule.

The first step is to use the acf/save_post hook to save the first and last dates in database. This is necessary for querying our events later.

You will then be able to use the start_date and end_date meta values in a custom WP_Query to filter events that may have occurrences between the specified dates.

The next and last step is to create an associative array of dates. Each date will be an array of events that occurs at the given date.

Of course this is a very basic example that you will have to adapt to your use case.

Testing


All versions of acf-rrule with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0
simshaun/recurr Version ^5.0
composer/installers Version ^1.0|^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package marcbelletre/acf-rrule contains the following files

Loading the files please wait ....