PHP Classes

PHP Easter Date in the Orthodox Calendar: Get the dates of the Easter holiday over the years

Recommend this page to a friend!
  Info   Example   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 19 All time: 11,306 This week: 41Up
Version License PHP version Categories
orthodox-easter 1.0.1Freeware8Time and Date, PHP 8
Description 

Author

This package can get the dates of the Easter holiday over the years.

It can take as parameters the number of the start and end years.

The package can return an array with the Orthodox Easter in all the specified year ranges.

It can also output the Easter data in HTML to display as part of the current script page content.

Picture of ASCOOS CMS
  Performance   Level  
Name: ASCOOS CMS <contact>
Classes: 12 packages by
Country: Greece Greece
Innovation award
Innovation award
Nominee: 8x

Example

<?php
/**
 * __ _ ___ ___ ___ ___ ___ ____ _ __ ___ ___
 * / _` |/ / / __/ _ \ / _ \ / / / __/| '_ ` _ \ / /
 * | (_| |\ \| (_| (_) | (_) |\ \ | (__ | | | | | |\ \
 * \__,_|/__/ \___\___/ \___/ /__/ \___\|_| |_| |_|/__/
 *
  *************************************************************************************
 * @ASCOOS-NAME : ASCOOS CMS 24' *
 * @ASCOOS-VERSION : 24.0.0 *
 * @ASCOOS-CATEGORY : Kernel (Frontend and Administration Side) *
 * @ASCOOS-CREATOR : Drogidis Christos *
 * @ASCOOS-SITE : www.ascoos.com *
 * @ASCOOS-LICENSE : [Commercial] http://docs.ascoos.com/lics/ascoos/AGL-F.html *
 * @ASCOOS-COPYRIGHT : Copyright (c) 2007 - 2023, AlexSoft Software. *
 *************************************************************************************
 *
 * @package : ASCOOS CMS - Orthodox Easter
 * @subpackage : Example for Orthodox Easter
 * @source : /OrthodoxEaster/src/test/orthodox-easter.php
 * @version : **** - $release: 1.0 - $revision: 1 - $build: ****
 * @created : 2023-07-07 07:00:00 UTC+3
 * @updated : 2023-07-09 01:00:00 UTC+3
 * @author : Drogidis Christos
 * @authorSite : www.alexsoft.gr
 *
 * @since 1.0.1
 */

define('ALEXSOFT_RUN_CMS', true);

$cms_path = str_replace('/OrthodoxEaster/test', '',str_replace('\\', '/', __DIR__));

require_once(
$cms_path."/OrthodoxEaster/src/kernel/coreEaster.php");



$yearStart = 2024;
$yearEnd = 2050;

$params = [
 
'class="default"',
 
'data-role="easters"'
];

$objEaster = new \ASCOOS\CMS\KERNEL\CORE\Dates\Easter\TEasterHandler($yearStart, $yearEnd);

?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>ASCOOS - Test Orthodox Easter</title>
   
    <link rel="icon" href="favicon.ico" />
  </head>

  <body>
    <!-- Orthodox Easter of current year -->
    <div>
      <p><b><?php echo 'Orthodox Easter of current year :</b> '.$objEaster->getDateEasters(); ?></p>
    </div>
    <hr>
    <!-- Orthodox Easter of year... -->
    <div>
      <p><b>Orthodox Easter of year <?php echo $yearStart; ?>:</b> <?php echo $objEaster->getDateEasters($yearStart); ?></p>
    </div>
    <hr>
   
    <!-- Orthodox Easter HTML Select list -->
    <div>
      <form>
        <label for="easters"><b>Choose a Orthodox Easter:</b></label>
        <?php
         
echo $objEaster->getHtmlSelect('easters', $params);
         
?>
</form>
    </div>
    <hr>
    <!-- Orthodox Easter in a period of years -->
    <div>
      <p><b><?php echo 'Orthodox Easter of years '.$yearStart.' - '.$yearEnd; ?>: </b></p>
      <?php echo $objEaster->getDateEasters($yearStart, $yearEnd); ?>
</div>

  </body>
</html>


Details

<p align="center"><img src="https://dl.ascoos.com/images/ascoos.png" height=120 /></p>

orthodox-easter

This package shows the dates on which the Orthodox Easter is celebrated.

*

Descript

This package can get the dates of the Easter holiday over the years.

It can take as parameters the number of the start and end years.

The package can return an array with the Orthodox Easter in all the specified year ranges.

It can also output the Easter data in HTML to display as part of the current script page content.

*

<p align="center"><img src="https://github.com/ascoos/orthodox-easter/blob/main/screenshot/oeaster-02-010001.png" /></p>


Screenshots (1)  
  • screenshot/oeaster-01.png
  Files folder image Files (8)  
File Role Description
Files folder imagescreenshot (2 files)
Files folder imagesrc (1 directory)
Files folder imagetest (2 files)
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (8)  /  screenshot  
File Role Description
  Accessible without login HTML file index.html Doc. Documentation
  Accessible without login Image file oeaster-02-010001.png Data Auxiliary data

  Files folder image Files (8)  /  src  
File Role Description
Files folder imagekernel (1 file)

  Files folder image Files (8)  /  src  /  kernel  
File Role Description
  Plain text file coreEaster.php Class Class source

  Files folder image Files (8)  /  test  
File Role Description
  Accessible without login Image file favicon.ico Data Auxiliary data
  Accessible without login Plain text file orthodox-easter.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:19
This week:0
All time:11,306
This week:41Up