-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html.twig
More file actions
373 lines (350 loc) · 26.4 KB
/
Copy pathindex.html.twig
File metadata and controls
373 lines (350 loc) · 26.4 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
{% extends '@layout/default.html.twig' %}
{% block json_ld %} {{ include('@jsonld/index.jsonld.twig') }} {% endblock %}
{% block title %}A PSR-15 compliant application{% endblock %}
{% block content %}
<section class="hero">
<div class="wrap hero-grid">
<div>
<span class="eyebrow">PSR-15 . middleware-first architecture</span>
<h1>A headless platform for building modern web applications</h1>
<p class="sub">Dotkernel is a collection of open-source application skeletons built on Mezzio and Laminas - pre-configured and ready for anything from a presentation site to an enterprise-grade API.</p>
<div class="hero-ctas">
<a class="btn btn-primary" href="https://docs.dotkernel.org" target="_blank" rel="noopener">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/></svg>
Read the docs
</a>
<a class="btn btn-ghost" href="https://github.com/dotkernel" target="_blank" rel="noopener">
<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 .5a12 12 0 0 0-3.79 23.4c.6.1.83-.27.83-.58v-2.17c-3.34.73-4.04-1.42-4.04-1.42-.55-1.4-1.34-1.77-1.34-1.77-1.08-.75.09-.73.09-.73 1.2.08 1.84 1.24 1.84 1.24 1.07 1.84 2.8 1.3 3.49 1 .1-.78.42-1.3.76-1.6-2.67-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.13-.3-.54-1.53.12-3.18 0 0 1-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.3-1.55 3.3-1.23 3.3-1.23.66 1.65.25 2.88.12 3.18.77.84 1.24 1.91 1.24 3.22 0 4.61-2.8 5.63-5.48 5.92.43.37.81 1.1.81 2.22v3.29c0 .31.22.69.83.57A12 12 0 0 0 12 .5z"/></svg>
View on GitHub
</a>
</div>
<div class="hero-stack-note">
<div><span>Runtime</span> Mezzio + Laminas</div>
<div><span>Standards</span> PSR-7 . PSR-11 . PSR-15</div>
<div><span>License</span> BSD-3-Clause</div>
</div>
</div>
<div class="pipeline">
<div class="pipeline-label"><span>Request lifecycle</span></div>
<div class="pipeline-track">
<div class="pl-packet" aria-hidden="true"></div>
<div class="pl-step"><span class="name">Router</span><span class="tag">FastRoute</span></div>
<div class="pl-step"><span class="name">Authentication</span><span class="tag">dot-authentication</span></div>
<div class="pl-step"><span class="name">RBAC guard</span><span class="tag">dot-rbac-guard</span></div>
<div class="pl-step"><span class="name">Your handler</span><span class="tag">PSR-15</span></div>
<div class="pl-step"><span class="name">Response</span><span class="tag">Diactoros</span></div>
</div>
</div>
</div>
</section>
<section class="what-is-platform">
<div class="wrap split">
<div>
<span class="eyebrow">What it is</span>
<h2>What is the Dotkernel Headless Platform?</h2>
<p class="lede">
The Dotkernel Headless Platform is made up of Open Source components aimed at businesses that need custom solutions.
It supports microservices, as well as enterprise-grade APIs.
Its modern, future-proof architecture is based on middleware and PSRs.
</p>
<div class="extending">
Extending the power of
<div class="extending-logo">
<img src="{{ asset('images/app/content/mezzio-by-laminas.svg') }}" alt="Mezzio by Laminas" loading="lazy">
</div>
</div>
</div>
<div class="traits">
<div class="trait">
<img class="icon icon-lg" decoding="async" src="{{ asset('images/app/content/traffic-sign-50.svg') }}" alt="Unmatched flexibility" loading="lazy">
<p>Unmatched flexibility</p>
</div>
<div class="trait">
<img class="icon icon-lg" decoding="async" src="{{ asset('images/app/content/success-50.svg') }}" alt="Unlimited scalability" loading="lazy">
<p>Unlimited scalability</p>
</div>
<div class="trait">
<img class="icon icon-lg" decoding="async" src="{{ asset('images/app/content/speed-radar-50.svg') }}" alt="Lightning-fast performance" loading="lazy">
<p>Lightning-fast performance</p>
</div>
<div class="trait">
<img class="icon icon-lg" decoding="async" src="{{ asset('images/app/content/maintenance.svg') }}" alt="Easier maintenance and onboarding" loading="lazy">
<p>Easier maintenance and onboarding</p>
</div>
</div>
</div>
</section>
<section style="background:var(--surface-2);border-top:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft);">
<div class="wrap">
<div class="section-head">
<span class="eyebrow">Headless Platform</span>
<h2>Three applications, one platform</h2>
<p>API, Admin, and Queue are designed to integrate into a single, unified headless platform - better together than the sum of their parts.</p>
</div>
<div class="products-grid">
<div class="card" style="--accent:var(--brand-red)">
<div class="card-top">
<div><span class="kicker">Skeleton</span><h3>API</h3></div>
</div>
<div class="badges">
<img alt="PHP" src="https://img.shields.io/packagist/dependency-v/dotkernel/api/php?style=flat&label=php">
<img alt="Packagist" src="https://img.shields.io/packagist/v/dotkernel/api?style=flat">
<img alt="License" src="https://img.shields.io/github/license/dotkernel/api?style=flat">
<img alt="Stars" src="https://img.shields.io/github/stars/dotkernel/api?style=flat&label=%E2%98%85">
</div>
<p class="desc">An alternative to legacy Laminas API Tools (Apigility). A framework-less, opinionated toolkit for intermediate-to-advanced developers who want to ship REST APIs quickly and efficiently.</p>
<div class="card-btns">
<a class="btn btn-ghost btn-sm" href="https://github.com/dotkernel/api" target="_blank" rel="noopener">GitHub</a>
<a class="btn btn-ghost btn-sm" href="https://api.dotkernel.net/" target="_blank" rel="noopener">Demo</a>
<a class="btn btn-ghost btn-sm" href="https://docs.dotkernel.org/api-documentation/" target="_blank" rel="noopener">Guide</a>
</div>
</div>
<div class="card" style="--accent:var(--brand-red)">
<div class="card-top">
<div><span class="kicker">Skeleton</span><h3>Admin</h3></div>
</div>
<div class="badges">
<img alt="PHP" src="https://img.shields.io/packagist/dependency-v/dotkernel/admin/php?style=flat&label=php">
<img alt="Packagist" src="https://img.shields.io/packagist/v/dotkernel/admin?style=flat">
<img alt="License" src="https://img.shields.io/github/license/dotkernel/admin?style=flat">
<img alt="Stars" src="https://img.shields.io/github/stars/dotkernel/admin?style=flat&label=%E2%98%85">
</div>
<p class="desc">A ready-to-go admin skeleton for managing your platform's records with a simple, table-based approach - plus the tools to build reports and dashboards.</p>
<div class="card-btns">
<a class="btn btn-ghost btn-sm" href="https://github.com/dotkernel/admin" target="_blank" rel="noopener">GitHub</a>
<a class="btn btn-ghost btn-sm" href="https://admin7.dotkernel.net/" target="_blank" rel="noopener">Demo</a>
<a class="btn btn-ghost btn-sm" href="https://docs.dotkernel.org/admin/" target="_blank" rel="noopener">Guide</a>
</div>
</div>
<div class="card" style="--accent:var(--brand-red)">
<div class="card-top">
<div><span class="kicker">Skeleton</span><h3>Queue</h3></div>
</div>
<div class="badges">
<img alt="PHP" src="https://img.shields.io/packagist/php-v/dotkernel/queue?style=flat&label=php">
<img alt="Packagist" src="https://img.shields.io/packagist/v/dotkernel/queue?style=flat">
<img alt="License" src="https://img.shields.io/github/license/dotkernel/queue?style=flat">
<img alt="Stars" src="https://img.shields.io/github/stars/dotkernel/queue?style=flat&label=%E2%98%85">
</div>
<p class="desc">Asynchronous task queuing built on Symfony Messenger, wired into the Laminas Service Manager container via netglue/laminas-messenger.</p>
<div class="card-btns">
<a class="btn btn-ghost btn-sm" href="https://github.com/dotkernel/queue" target="_blank" rel="noopener">GitHub</a>
<a class="btn btn-ghost btn-sm" href="https://docs.dotkernel.org/queue-documentation/" target="_blank" rel="noopener">Guide</a>
</div>
</div>
</div>
</div>
</section>
<section>
<div class="wrap">
<div class="section-head">
<span class="eyebrow">Local Development</span>
<h2>Set up your workspace</h2>
<p>Get a production-like environment running on your machine in minutes, ready for building and testing before anything reaches your users.</p>
</div>
<div class="products-grid">
<div class="card" style="--accent:var(--brand-red)">
<div class="card-top">
<div><span class="kicker">Environment</span><h3>Development</h3></div>
</div>
<p class="desc">A controlled, safe, and efficient local workspace for building and testing applications before release. Runs AlmaLinux on Windows Subsystem for Linux (WSL2) for a RHEL-compatible, enterprise-grade setup, with an install script that pre-configures PHP, Apache, MariaDB, Git, Composer, Node.js, and phpMyAdmin - every essential tool, ready to go.</p>
<div class="card-btns">
<a class="btn btn-ghost btn-sm" href="https://github.com/dotkernel/development" target="_blank" rel="noopener">GitHub</a>
</div>
</div>
<div class="card" style="--accent:var(--brand-red)">
<div class="card-top">
<div><span class="kicker">Environment . Coming soon</span><h3>DevBox</h3></div>
</div>
<p class="desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua, ut enim ad minim veniam quis nostrud exercitation.</p>
<div class="card-btns">
<span class="btn btn-ghost btn-sm" aria-disabled="true">Coming Soon</span>
</div>
</div>
</div>
</div>
</section>
<section style="background:var(--surface-2);border-top:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft);">
<div class="wrap">
<div class="section-head">
<span class="eyebrow">Other skeletons</span>
<h2>For projects outside the platform</h2>
<p>Not every project needs a headless platform. These two skeletons stand on their own, outside the API/Admin/Queue bundle above.</p>
</div>
<div class="products-grid">
<div class="card" style="--accent:var(--brand-red)">
<div class="card-top">
<div><span class="kicker">Skeleton . Didactic</span><h3>Light</h3></div>
</div>
<div class="badges">
<img alt="PHP" src="https://img.shields.io/packagist/php-v/dotkernel/light?style=flat&label=php">
<img alt="Packagist" src="https://img.shields.io/packagist/v/dotkernel/light?style=flat">
<img alt="License" src="https://img.shields.io/github/license/dotkernel/light?style=flat">
<img alt="Stars" src="https://img.shields.io/github/stars/dotkernel/light?style=flat&label=%E2%98%85">
</div>
<p class="desc">A minimal, PSR-15 compliant skeleton built for learning purposes - a simple, didactic example of how to put together a basic website, not a Headless Platform component.</p>
<div class="card-btns">
<a class="btn btn-ghost btn-sm" href="https://github.com/dotkernel/light" target="_blank" rel="noopener">GitHub</a>
<a class="btn btn-ghost btn-sm" href="https://light.dotkernel.net/" target="_blank" rel="noopener">Demo</a>
<a class="btn btn-ghost btn-sm" href="https://docs.dotkernel.org/light-documentation/" target="_blank" rel="noopener">Guide</a>
</div>
</div>
<div class="card" style="--accent:var(--brand-red)">
<div class="card-top">
<div><span class="kicker">Skeleton . Standalone</span><h3>Frontend</h3></div>
</div>
<div class="badges">
<img alt="PHP" class="badge-fetch" src="https://img.shields.io/packagist/php-v/dotkernel/frontend?style=flat&label=php">
<img alt="Packagist" class="badge-fetch" src="https://img.shields.io/packagist/v/dotkernel/frontend?style=flat">
<img alt="License" class="badge-fetch" src="https://img.shields.io/github/license/dotkernel/frontend?style=flat&">
<img alt="Stars" class="badge-fetch" src="https://img.shields.io/github/stars/dotkernel/frontend?style=flat&label=%E2%98%85">
</div>
<p class="desc">A web starter skeleton for building frontend applications on Mezzio and Laminas - a standalone alternative, separate from the Headless Platform.</p>
<div class="card-btns">
<a class="btn btn-ghost btn-sm" href="https://github.com/dotkernel/frontend" target="_blank" rel="noopener">GitHub</a>
<a class="btn btn-ghost btn-sm" href="https://v5.dotkernel.net/" target="_blank" rel="noopener">Demo</a>
<a class="btn btn-ghost btn-sm" href="https://docs.dotkernel.org/frontend/" target="_blank" rel="noopener">Guide</a>
</div>
</div>
</div>
</div>
</section>
<section style="background:var(--surface-2);border-top:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft);">
<div class="wrap">
<div class="section-head">
<span class="eyebrow">Components</span>
<h2>Every layer, on its own</h2>
<p>Small, independent dot-* packages - pull in what you need. Lifecycle status for each lives on the <a href="https://www.dotkernel.com/dotkernel-packages-oss-lifecycle/" style="color:var(--teal);">Packages Lifecycle</a> page.</p>
</div>
<div class="components-grid">
<div>
<details class="acc" open>
<summary>Authentication <span class="chev">+</span></summary>
<div class="acc-body">
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-authentication" target="_blank" rel="noopener">dot-authentication</a><span class="pkg-desc">core authentication interfaces</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-auth-social" target="_blank" rel="noopener">dot-auth-social</a><span class="pkg-desc">Facebook auth via thephpleague/oauth2-client</span></div>
</div>
</details>
<details class="acc">
<summary>Authorization <span class="chev">+</span></summary>
<div class="acc-body">
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-authorization" target="_blank" rel="noopener">dot-authorization</a><span class="pkg-desc">core authorization interfaces</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-rbac" target="_blank" rel="noopener">dot-rbac</a><span class="pkg-desc">RBAC implementation</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-rbac-guard" target="_blank" rel="noopener">dot-rbac-guard</a><span class="pkg-desc">RBAC for authorizing app sections</span></div>
</div>
</details>
<details class="acc">
<summary>Controllers <span class="chev">+</span></summary>
<div class="acc-body">
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-controller" target="_blank" rel="noopener">dot-controller</a><span class="pkg-desc">controller-like middleware for Mezzio</span></div>
</div>
</details>
<details class="acc">
<summary>Forms <span class="chev">+</span></summary>
<div class="acc-body">
<div class="pkg-row"><a href="https://github.com/laminas/laminas-form" target="_blank" rel="noopener">laminas-form</a><span class="pkg-desc">validate and display forms</span></div>
</div>
</details>
<details class="acc">
<summary>Session <span class="chev">+</span></summary>
<div class="acc-body">
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-session" target="_blank" rel="noopener">dot-session</a><span class="pkg-desc">extends laminas-session</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-flashmessenger" target="_blank" rel="noopener">dot-flashmessenger</a><span class="pkg-desc">short-lived session messages</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-cache" target="_blank" rel="noopener">dot-cache</a><span class="pkg-desc">extends symfony/cache</span></div>
</div>
</details>
<details class="acc">
<summary>Logging & error handling <span class="chev">+</span></summary>
<div class="acc-body">
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-log" target="_blank" rel="noopener">dot-log</a><span class="pkg-desc">structured application logging</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-errorhandler" target="_blank" rel="noopener">dot-errorhandler</a><span class="pkg-desc">centralized error handling</span></div>
</div>
</details>
</div>
<div>
<details class="acc">
<summary>Emailing <span class="chev">+</span></summary>
<div class="acc-body">
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-mail" target="_blank" rel="noopener">dot-mail</a><span class="pkg-desc">extends symfony/mailer</span></div>
</div>
</details>
<details class="acc">
<summary>Backend abstraction (database) <span class="chev">+</span></summary>
<div class="acc-body">
<div class="pkg-row"><a href="https://github.com/doctrine/orm/" target="_blank" rel="noopener">doctrine/orm</a><span class="pkg-desc">object-relational mapper for PHP</span></div>
<div class="pkg-row"><a href="https://github.com/doctrine/dbal/" target="_blank" rel="noopener">doctrine/dbal</a><span class="pkg-desc">DB abstraction, schema introspection</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-data-fixtures" target="_blank" rel="noopener">dot-data-fixtures</a><span class="pkg-desc">extends doctrine/data-fixtures</span></div>
</div>
</details>
<details class="acc">
<summary>Navigation <span class="chev">+</span></summary>
<div class="acc-body">
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-navigation" target="_blank" rel="noopener">dot-navigation</a><span class="pkg-desc">easy menu configuration & parsing</span></div>
</div>
</details>
<details class="acc">
<summary>Template engine <span class="chev">+</span></summary>
<div class="acc-body">
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-twigrenderer" target="_blank" rel="noopener">dot-twigrenderer</a><span class="pkg-desc">Twig + laminas-view helpers</span></div>
</div>
</details>
<details class="acc">
<summary>Tools <span class="chev">+</span></summary>
<div class="acc-body">
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-annotated-services" target="_blank" rel="noopener">dot-annotated-services</a><span class="pkg-desc">inject services via annotations</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-event" target="_blank" rel="noopener">dot-event</a><span class="pkg-desc">extends laminas-eventmanager</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-helpers" target="_blank" rel="noopener">dot-helpers</a><span class="pkg-desc">shared utility helpers</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-cli" target="_blank" rel="noopener">dot-cli</a><span class="pkg-desc">extends laminas-cli</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-doctrine-metadata" target="_blank" rel="noopener">dot-doctrine-metadata</a><span class="pkg-desc">extends mezzio/mezzio-hal</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-response-header" target="_blank" rel="noopener">dot-response-header</a><span class="pkg-desc">custom response headers</span></div>
</div>
</details>
<details class="acc">
<summary>Extra libraries <span class="chev">+</span></summary>
<div class="acc-body">
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-user-agent-sniffer" target="_blank" rel="noopener">dot-user-agent-sniffer</a><span class="pkg-desc">parses device info from user agent</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-debugbar" target="_blank" rel="noopener">dot-debugbar</a><span class="pkg-desc">extends maximebf/php-debugbar</span></div>
<div class="pkg-row"><a href="https://github.com/dotkernel/dot-geoip" target="_blank" rel="noopener">dot-geoip</a><span class="pkg-desc">extends maxmind/GeoIP2-php</span></div>
</div>
</details>
</div>
</div>
</div>
</section>
{% if posts is defined and posts is iterable %}
<section>
<div class="wrap">
<div class="section-head">
<span class="eyebrow">From the blog</span>
<h2>Useful reads</h2>
</div>
<div class="posts-grid">
{% for post in posts %}
<a class="post-card" href="{{ url('page::blog-resource', {categorySlug: post.category.slug, slug: post.slug}) }}">
<div class="post-date">{{ post.postDate|date('M d, Y') }}</div>
<h3>{{ post.title }}</h3>
<p>{{ post.excerpt }}</p>
<span class="read-more">Read more →</span>
</a>
{% else %}
<p class="text-muted text-center mb-0">No recent posts.</p>
{% endfor %}
</div>
</div>
</section>
{% endif %}
<section class="about-band">
<div class="wrap about-inner">
<div>
<span class="eyebrow">Designed & built by Apidemia</span>
<h2>Control, scalability & performance you can build on.</h2>
</div>
<div>
<p class="about-text">Dotkernel is an open-source project created and led by the dev team at Apidemia - built first as an internal tool for handling complex architectures, now freely shared as our way of giving back to the community.</p>
<div class="about-cta">
<a class="btn btn-ghost" href="{{ url('page::contact') }}">See more about us →</a>
</div>
</div>
</div>
</section>
{% endblock %}