Download the PHP package fyre/period without Composer

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

FyrePeriod

FyrePeriod is a free, open-source date period library for PHP.

Table Of Contents

Installation

Using Composer

Periods

The Period is an implementation of an Iterator and can be used in a foreach loop.

Contains

Determine whether this period contains another Period.

Diff Symmetric

Get the symmetric difference between the periods.

This method will return a new PeriodCollection.

End

Get the end date.

This method will return a DateTime.

End Equals

Determine whether this period ends on a given date.

Ends After

Determine whether this period ends after a given date.

Ends After Or Equals

Determine whether this period ends on or after a given date.

Ends Before

Determine whether this period ends before a given date.

Ends Before Or Equals

Determine whether this period ends on or before a given date.

Equals

Determine whether this period equals another Period.

Gap

Get the gap between the periods.

This method will return a new Period, or null if there's no gap.

Granularity

Get the granularity.

Included End

Get the included end date.

This method will return a DateTime.

Included Start

Get the included start date.

This method will return a DateTime.

Includes End

Determine whether the Period includes the end date.

Includes

Determine whether this period includes a given date.

Includes Start

Determine whether the Period includes the start date.

Length

Get the length of the period.

Overlap

Get the overlap of the periods.

This method will return a new Period, or null if there's no overlap.

Overlap All

Get the overlap of all the periods.

This method will return a new Period, or null if there's no overlap.

Overlap Any

Get the overlaps of any of the periods.

This method will return a new PeriodCollection.

Overlaps With

Determine whether this period overlaps with another Period.

Renew

Create a new period with the same length after this period.

This method will return a new Period.

Start

Get the start date.

This method will return a DateTime.

Start Equals

Determine whether this period starts on a given date.

Starts After

Determine whether this period starts after a given date.

Starts After Or Equals

Determine whether this period starts on or after a given date.

Starts Before

Determine whether this period starts before a given date.

Starts Before Or Equals

Determine whether this period starts on or before a given date.

Subtract

Get the inverse overlap of the periods.

This method will return a new PeriodCollection.

Subtract All

Get the inverse overlap of all periods.

This method will return a new PeriodCollection.

Touches

Determine whether this period touches another Period.

Period Collections

All arguments supplied will be used as periods for the collection.

The PeriodCollection is an implementation of an Iterator and can be used in a foreach loop.

Add

Add periods to the collection.

All arguments supplied will be used as periods to add to the collection.

This method will return a new PeriodCollection.

Boundaries

Get the boundaries of the collection.

This method will return a new Period, or null if the collection is empty.

Gaps

Get the the gaps between the periods in the collection.

This method will return a new PeriodCollection.

Intersect

Intersect a period with every period in the collection.

This method will return a new PeriodCollection.

Overlap All

Get the overlap of all the collections.

All arguments supplied will be used as collections to compare against.

This method will return a new PeriodCollection.

Sort

Sort the periods.

This method will return a new PeriodCollection.

Subtract

Get the inverse overlap of the collections.

This method will return a new PeriodCollection.

Unique

Filter the periods to remove duplicates.

This method will return a new PeriodCollection.


All versions of period with dependencies

PHP Build Version
Package Version
Requires fyre/datetime Version ^3.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 fyre/period contains the following files

Loading the files please wait ....