Repository navigation
Expand file tree
/
Copy pathintroduction.html.twig
More file actions
137 lines (130 loc) · 7.13 KB
/
Copy pathintroduction.html.twig
File metadata and controls
137 lines (130 loc) · 7.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{% extends 'docs.html.twig' %}
{% block title %}Aeon PHP - Introduction - Documentation{% endblock %}
{% block body %}
<div class="row doc-content-body">
<article class="col-md-9">
<h1>Introduction</h1>
<p>
Aeon is a set of libraries that makes easier to work with PHP Date & Time in elegant Object Oriented way.
</p>
<div class="alert alert-info">
<h4>Quote</h4>
<p>
The word aeon /ˈiːɒn/, also spelled eon (in American English), originally meant "life", "vital force" or "being",
"generation" or "a period of time", though it tended to be translated as "age" in the sense of "ages", "forever",
"timeless" or "for eternity".
</p>
<i class="icon-alert-circle"></i>
</div>
<p class="text-right">
<a href="https://en.wikipedia.org/wiki/Aeon" target="_blank">Wikipedia</a>
</p>
<section id="features">
<h5 class="section-title-2">Features</h5>
<hr/>
<ul>
<li>Full immutability</li>
<li>No dependencies</li>
<li>Object oriented interface</li>
<li>Mocking time in tests</li>
<li>Retry fragile operations</li>
<li>CLI application</li>
<li>Regional holidays detection</li>
<li>Business hours abstraction</li>
<li>Doctrine DBAL integration</li>
<li>Compatibility with all modern frameworks</li>
<li>Intuitive API and IDE autocompletion</li>
<li>Optional leap seconds support</li>
<li>High precision of elapsed time measurement</li>
<li>Smooth integration with built in <a href="https://www.php.net/manual/en/class.datetimeinterface.php" target="_blank">\DateTimeInterface</a></li>
</ul>
</section>
<section id="components">
<h5 class="section-title-2">Components</h5>
<hr/>
<ul>
<li><a href="https://packagist.org/packages/aeon-php/calendar" target="_blank">aeon-php/calendar</a></li>
<li><a href="https://packagist.org/packages/aeon-php/process" target="_blank">aeon-php/process</a> - improved sleep function</li>
<li><a href="https://packagist.org/packages/aeon-php/retry" target="_blank">aeon-php/retry</a> - retry strategy for failing processes</li>
<li><a href="https://packagist.org/packages/aeon-php/cli" target="_blank">aeon-php/cli</a> - CLI app to check if time is synced</li>
<li><a href="https://packagist.org/packages/aeon-php/calendar-doctrine" target="_blank">aeon-php/calendar-doctrine</a> - DBAL types</li>
<li><a href="https://packagist.org/packages/aeon-php/calendar-holidays" target="_blank">aeon-php/calendar-holidays</a> - Regional Holidays abstraction /li>
<li><a href="https://packagist.org/packages/aeon-php/calendar-holidays-yasumi" target="_blank">aeon-php/calendar-holidays-yasumi</a> - Yasumi bridge</li>
<li><a href="https://packagist.org/packages/aeon-php/business-hours" target="_blank">aeon-php/business-hours</a> - Business Hours abstraction</li>
</ul>
</section>
<section id="calendar-interface">
<h5 class="section-title-2">Calendar Interface - {{ calendarVersion }}</h5>
<hr/>
<ul>
{% for phpClass in calendarClasses %}
<li><a href="{{ phpClass.name | class_url(calendarVersion) }}">{{ phpClass.shortName }}</a></li>
{% endfor %}
</ul>
</section>
<section id="calendar-interface">
<h5 class="section-title-2">Calendar Twig Interface - {{ calendarTwigVersion }}</h5>
<hr/>
<ul>
{% for phpClass in calendarTwigClasses %}
<li><a href="{{ phpClass.name | class_url(calendarVersion) }}">{{ phpClass.shortName }}</a></li>
{% endfor %}
</ul>
</section>
<section id="process-interface">
<h5 class="section-title-2">Process Interface - {{ sleepVersion }}</h5>
<hr/>
<ul>
{% for phpClass in sleepClasses %}
<li><a href="{{ phpClass.name | class_url(sleepVersion) }}">{{ phpClass.shortName }}</a></li>
{% endfor %}
</ul>
</section>
<section id="retry-interface">
<h5 class="section-title-2">Retry Interface - {{ retryVersion }}</h5>
<hr/>
<ul>
{% for phpClass in retryClasses %}
<li><a href="{{ phpClass.name | class_url(retryVersion) }}">{{ phpClass.shortName }}</a></li>
{% endfor %}
</ul>
</section>
<section id="calendar-holidays-interface">
<h5 class="section-title-2">Calendar Holidays Interface - {{ calendarHolidaysVersion }}</h5>
<hr/>
<ul>
{% for phpClass in calendarHolidaysClasses %}
<li><a href="{{ phpClass.name | class_url(calendarHolidaysVersion) }}">{{ phpClass.shortName }}</a></li>
{% endfor %}
</ul>
</section>
</article>
<aside class="col-md-3 col-xxl-3 d-none d-md-block">
<div class="sticky">
<ul id="toc" class="nav flex-column toc">
<li class="nav-item">
<a data-scroll class="nav-link" href="#features">Features</a>
</li>
<li class="nav-item">
<a data-scroll class="nav-link" href="#components">Components</a>
</li>
<li class="nav-item">
<a data-scroll class="nav-link" href="#calendar-interface">Calendar Interface</a>
</li>
<li class="nav-item">
<a data-scroll class="nav-link" href="#process-interface">Process</a>
</li>
<li class="nav-item">
<a data-scroll class="nav-link" href="#retry-interface">Retry</a>
</li>
<li class="nav-item">
<a data-scroll class="nav-link" href="#calendar-holidays-interface">Calendar Holidays Interface</a>
</li>
</ul>
<section class="text-center mt-2">
<a href="https://github.com/aeon-php/website/blob/1.x/templates/{{ _self }}" class="btn btn-secondary p-1" target="_blank"><i class="fab fa-github"></i> Edit this page</a>
</section>
</div>
</aside>
</div>
{% endblock %}