Download the PHP package percipiolondon/craft-timeloop without Composer

On this page you can find all versions of the php package percipiolondon/craft-timeloop. 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 craft-timeloop

Timeloop plugin for Craft CMS 3.x

This plugin created repeating dates without complex inputs

timeloop-banner-light (1)

Requirements

This plugin requires Craft CMS 3.3.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

  2. Tell Composer to load the plugin:

  3. In the Control Panel, go to Settings → Plugins and click the “Install” button.

Timeloop Overview

The Timeloop plugin provides recurring dates based on a starting date and a regular loop period.

Example: Set a payment date for employees on the first of each month.

Configuring the Timeloop field.

The following configuration options that are available for the field:

Using Timeloop

The Timeloop Model

Getting the entered dates (returned as DateTime objects)

Getting the start date for the loop (this includes the time set in loopStartTime):

Getting the end date for the loop (this includes the time set in loopEndHour):

Getting the start time for the loop:

Getting the end time for the loop:

Getting an array of dates between the selected start and end dates (Array with DateTime Objects):

This generated set of dates takes all the field values into consideration (frequency, cycle and custom)

Upcoming Dates (returned as DateTime Objects)

Getting the first upcoming date:

Getting the next upcoming date:

Get entries between certain dates

If you want to fetch entries from a certain section between two dates. You can fetch them by giving the ElementsQuery with the name of the timeloop field, start and end date. This will return you an array of recurring dates per entry between this period. If no dates are defined, you will get an empty array. In the returned array, you can find the entry id, entry title and the dates.

Returns this array layout

Period Model

Getting the frequency (DateTimePeriod String):

Getting the cycle (Integer):

Displaying the selected days (Array):

This will parse the names of the selected days when weekly has been chosen as frequency.

Timestring Model

Get the ordinal of a monthly set loop (e.g. first, second, ..., last)

warning: If the frequency is not set to monthly, the returned value will be null.
warning: If the frequency is set to monthly and no timestring selection has been made, the returned value will be none as String.

Reminder Model (WIP - not ready for production)

GraphQL

If you want to use the plugin through GraphQL, we've added a GraphQL Type to provide the field data.

You can get the DateTime Types from the data directly for

Loop Period

You can get the loopPeriod object as follows:

The Dates

To get an array of formatted dates, use dates.

Dates arguments:
Dates directives:

formatDateTime(timezone: "Europe/London" format: "d/m/Y")

Timeloop Roadmap

Potential features for the future:

And many more!

Brought to you by Percipio.London


All versions of craft-timeloop with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0.2
craftcms/cms Version ^4.0.0-beta.1
nystudio107/craft-plugin-vite Version ^4.0.0-beta.1
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 percipiolondon/craft-timeloop contains the following files

Loading the files please wait ....