PHPackages                             davidyell/fortnights - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. davidyell/fortnights

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

davidyell/fortnights
====================

A small class for working out the start and end dates of a two week period when given a date

1.0.0(10y ago)0109MITPHP

Since Feb 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/davidyell/Fortnights)[ Packagist](https://packagist.org/packages/davidyell/fortnights)[ RSS](/packages/davidyell-fortnights/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Fortnights
==========

[](#fortnights)

A small class which can calculate the start and end dates for a two week period when given a date.

If you are looking for a more featured Time Period library, check out [Period](http://period.thephpleague.com/) from The PHP League.

Installation
------------

[](#installation)

`composer require davidyell/fortnights`

Usage
-----

[](#usage)

```
// For today
$dates = (new Fortnight())->dates();

// Arbitrary date
$dates = (new Fortnight())->dates(new DateTime('2016-02-01'));
```

License
-------

[](#license)

The MIT License (MIT) Copyright (c) 2016 David Yell

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3785d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d57752a98aa935325fbb6daf6ddb0fa42e4c8576f84a82e7ce8e263fa04ba852?d=identicon)[davidyell](/maintainers/davidyell)

---

Top Contributors

[![davidyell](https://avatars.githubusercontent.com/u/49889?v=4)](https://github.com/davidyell "davidyell (2 commits)")

---

Tags

datesfortnight

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/davidyell-fortnights/health.svg)

```
[![Health](https://phpackages.com/badges/davidyell-fortnights/health.svg)](https://phpackages.com/packages/davidyell-fortnights)
```

###  Alternatives

[cpx/cpx

Run any command from any composer package, even if it's not installed in your project.

40814.5k1](/packages/cpx-cpx)[monero-integrations/monerophp

A Monero library written in PHP by the Monero-Integrations team.

12525.6k1](/packages/monero-integrations-monerophp)[elgentos/magento2-product-duplicate-images-remove

Magento 2 find duplicate product images from your product list and from this list you can easily remove them by running a command

201.9k](/packages/elgentos-magento2-product-duplicate-images-remove)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
