Skip to content
P

Period

PHP's time range API

by thephpleagueFree

#2423in Developer Tools
0In stores

Description

Period is an open source PHP library from The PHP League that provides a time range class built as an immutable value object. It is based on…

Highlights

  • Immutable time range value objects for PHP
  • Named constructors for intervals, datepoints and durations
  • Iterate over or split intervals
  • Compare, modify and format ranges
  • Find gaps and render Gantt charts
  • Composer install as league/period

Ratings & Reviews

No ratings yet

Be the first to rate Period.

People also visit

D

datepair.js

A javascript plugin for intelligently selecting date and time ranges

UI Libraries
Launch
D

date-time-range-picker-shadcn

Fully featured date-time range picker

UI Libraries
Launch
M

Moment.php

Parse, validate, manipulate, and display dates in PHP w/ i18n support

Productivity
Launch
C

crontab.guru

Translate any cron schedule expression into plain English as you type

Developer Tools
Launch
P

Pricore

Private Composer Registry for PHP Teams

Developer Tools
Launch
L

litepicker

Date range picker - lightweight, no dependencies

UI Libraries
Launch

Period FAQ

What is Period?

PHP's time range class: a library with immutable value objects that cover basic operations on time ranges.

How do I install it?

Run composer require league/period.

What can it do with intervals?

Create them with named constructors, iterate over dates, split them, compare and modify them, format them, find gaps and display them as a Gantt chart.

How long are old versions supported?

After a new major version, the previous stable release gets patches and security fixes for six more months.

What are the best Period alternatives?

Popular alternatives to Period include crontab.guru, Pricore and PHPAlgorithms. See all Period alternatives

Developer Stuff

Badges