Download the PHP package wilianx7/php-recurring without Composer

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

PHP Recurring

PHP library to make getting dates easier when working with recurring tasks.

Installation

You can install the package via composer:

Basic usage

Recurring Config

Attribute Description Default
startDate Date the search will start for find the dates the recurrence should be generated. Start of current year
endDate Date the search for the dates will ended. End of current year
frequencyType How often the recurrence will be generated accord of the enum FrequencyTypeEnum. Can be setted as: DAY, WEEK, MONTH or YEAR. FrequencyTypeEnum::DAY()
frequencyInterval Determines the interval between recurrences according to the chosen frequency type. 1
repeatIn Determines when recurrence should be generated according to the frequency type chosen. Can be setted, for example, as: null (for DAY); [ WeekdayEnum::MONDAY(), WeekdayEnum::SUNDAY() ] (for WEEK); 31 (for MONTH); ['day' => 31, 'month' => 2] (for YEAR)." Null
frequencyEndType Determines what will be the stopping criterion for recurrence generation according of the enum FrequencyEndTypeEnum. Can be setted as: NEVER, IN or AFTER. FrequencyEndTypeEnum::NEVER()
frequencyEndValue Determines a value according to the chosen stop criterion. Can be setted, for example, as: null (for NEVER); 3 (for AFTER); Carbon::now() (for IN). Null
lastRepeatedDate Date the last recurrence was generated. It is used to avoid unnecessary date generation by calling the generation method more than once. Null
repeatedCount How many recurrences have already been generated. It is used to avoid unnecessary date generation by calling the generation method more than once. Null
exceptDates Dates when recurrence should not be generated even if the date conforms to the specified setting. Accepts native array or Laravel Collection. Null
includeStartDate Defines whether the start date should be included in the return array false

Recurring Builder

Method Description Return
forConfig Used to construct the recurrence according to setting passed by parameter. Self
startRecurring Start generating dates for recurrence A collection with all the dates generated

Enums

Enum Values
FrequencyEndTypeEnum NEVER, IN, AFTER
FrequencyTypeEnum DAY, WEEK, MONTH, YEAR
WeekdayEnum SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY

Testing


All versions of php-recurring with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
nesbot/carbon Version ^2.65
tightenco/collect Version ^9.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 wilianx7/php-recurring contains the following files

Loading the files please wait ....