PHPackages                             rafamalaga86/landing-helper - 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. rafamalaga86/landing-helper

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

rafamalaga86/landing-helper
===========================

These helper classes aid in making landing pages in with php

017PHP

Since Jun 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rafamalaga86/landing-helper)[ Packagist](https://packagist.org/packages/rafamalaga86/landing-helper)[ RSS](/packages/rafamalaga86-landing-helper/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Landing helper
==============

[](#landing-helper)

This package are helper functions for the proper functioning of dates in landing pages.

HumanDates static class
-----------------------

[](#humandates-static-class)

This class will handle a date in a human way. At the momment, only in spanish.

The only public method so far is spanishLongDate($date = null, $comma = ',', $of1 = 'de', $of2 = 'de'). The first argument is the date and the next ones are the separators.

Example

```
HumanDate::spanishLongDate('2016-01-01'); // output: "domingo, 3 de Abril de 2016"

```

LandingDate static class
------------------------

[](#landingdate-static-class)

This class will handle operations regarding dates for landing pages.

The only public method so far is roundUpDate($daysToRound, $date = null). Using the function landingDateSpanish with a argument of days you will get back a date in the near future based in the argument $daysToRound. This day will be the same till this day is reached, when the sum of days will be added again.

Example:

```
echo LandingDate::roundUpDate(3, '2017-01-03')->format('Y-m-d'); // output: "2017-01-06"
echo LandingDate::roundUpDate(3, '2017-01-04')->format('Y-m-d'); // output: "2017-01-06"
echo LandingDate::roundUpDate(3, '2017-01-05')->format('Y-m-d'); // output: "2017-01-06"
echo LandingDate::roundUpDate(3, '2017-01-06')->format('Y-m-d'); // output: "2017-01-09"
echo LandingDate::roundUpDate(3, '2017-01-07')->format('Y-m-d'); // output: "2017-01-09"
echo LandingDate::roundUpDate(3, '2017-01-08')->format('Y-m-d'); // output: "2017-01-09"
echo LandingDate::roundUpDate(3, '2017-01-09')->format('Y-m-d'); // output: "2017-01-12"

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

[![rafamalaga86](https://avatars.githubusercontent.com/u/5671797?v=4)](https://github.com/rafamalaga86 "rafamalaga86 (1 commits)")

### Embed Badge

![Health badge](/badges/rafamalaga86-landing-helper/health.svg)

```
[![Health](https://phpackages.com/badges/rafamalaga86-landing-helper/health.svg)](https://phpackages.com/packages/rafamalaga86-landing-helper)
```

PHPackages © 2026

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