2017 © Pedro Peláez
 

library airac

AIRAC generation

image

getsky/airac

AIRAC generation

  • Sunday, July 22, 2018
  • by JimmDiGrizli
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,139 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

phpAIRAC

Build Status Scrutinizer Code Quality Code Coverage, (*1)

This generator helps you to count the date AIRAC. it's very easy:, (*2)

<?php
use GetSky\AIRAC\AiracProducer;

$producer = new AiracProducer();

$nowAirac = $producer->now(new DateTime('2018-04-05'));
// or
$nowAirac = $producer->nowByNumber('1804');  
// return Airac with dateStart 2018-03-29 and number 1804

$nextAirac = $producer->next(new DateTime('2018-01-10'));
// or
$nextAirac = $producer->nextByNumber('1801'); 
// or
$airac = $producer->now(new DateTime('2018-01-10'));
$nextAirac = $producer->nextByAirac($airac); 
// return Airac with dateStart 2018-02-01 and number 1802

$lastAirac = $producer->last(new DateTime('2018-01-10')); 
// or
$lastAirac = $producer->lastByNumber('1801');
// or
$airac = $producer->now(new DateTime('2018-01-10'));
$nextAirac = $producer->lastByAirac($airac); 
// return Airac with dateStart 2017-12-07 and number 1713

Installation

Run command:, (*3)

composer require getsky/airac

Or add string in your composer.json:, (*4)

"getsky/airac": "dev-master"

Change bearing date

You can change the reference date to shift your cycles:, (*5)

<?php
use GetSky\AIRAC\AiracProducer;

$producer = new AiracProducer(new DateTime('2015-01-22')); // now cycle shifted by 14 days

The Versions

22/07 2018

dev-master

9999999-dev

AIRAC generation

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Avatar JimmDiGrizli
by Alexander Getmanskii

airac aero

22/07 2018

1.1.x-dev

1.1.9999999.9999999-dev

AIRAC generation

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Alexander Getmanskii

airac aero

22/07 2018

v1.1.0

1.1.0.0

AIRAC generation

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Alexander Getmanskii

airac aero

21/07 2018

1.0.x-dev

1.0.9999999.9999999-dev

AIRAC generation

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

by Alexander Getmanskii

airac aero

12/11 2017

v1.0.0

1.0.0.0

AIRAC generation

  Sources   Download

MIT

The Requires

  • php ^5.6 || ^7.0

 

The Development Requires

by Alexander Getmanskii

airac aero