-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.php
More file actions
55 lines (50 loc) · 2.38 KB
/
Copy pathindex.php
File metadata and controls
55 lines (50 loc) · 2.38 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
<?php include __DIR__ . '/inc/header.php'; ?>
<div class="jumbotron">
<div class="container" style="text-align: center">
<img src="<?php echo $base; ?>/img/logo_small.png" alt="TypeSchema" class="rounded-circle">
<h1 class="display-4">TypeSchema</h1>
<p class="lead">TypeSchema is a JSON specification to describe data models.</p>
<p>
<a class="btn btn-primary" href="<?php echo $router->getAbsolutePath([\App\Controller\Specification::class, 'show']); ?>" role="button">Specification</a>
<a class="btn btn-secondary" href="https://sandbox.sdkgen.app/" role="button">Sandbox</a>
</p>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-12">
<h2>Features</h2>
<ul class="lead">
<li>An elegant specification optimized for code-generation</li>
<li>A portable format to share data models across different programming languages</li>
<li>Generate clean and simple to use <abbr title="Data-Transfer-Objects">DTOs</abbr></li>
<li>Handle advanced concepts like inheritance, polymorphism and generics</li>
<li>Use reflection to easily turn any class into a TypeSchema specification</li>
<li>Easily implement your own code generator</li>
</ul>
<hr>
<img src="<?php echo $base; ?>/img/typeschema_structure.svg" class="img-fluid" alt="TypeSchema structure">
</div>
</div>
<div class="row">
<div class="col-12">
<hr>
<h2>Examples</h2>
<p class="lead">At the following list you can take a look at example output for each supported programming language.</p>
</div>
<?php foreach ($types as $chunk): ?>
<div class="col-6">
<div class="list-group">
<?php foreach ($chunk as $type => $typeTitle): ?>
<a href="<?php echo $router->getAbsolutePath([\App\Controller\Example::class, 'show'], ['type' => $type]); ?>" class="list-group-item list-group-item-action"><?php echo $typeTitle; ?></a>
<?php endforeach; ?>
</div>
</div>
<?php endforeach; ?>
</div>
<div class="typeschema-edit">
<a href="https://github.com/apioo/typeschema/blob/master/www/resources/template/<?php echo pathinfo(__FILE__, PATHINFO_BASENAME); ?>"><i class="bi bi-pencil"></i> Edit this page</a>
</div>
</div>
<script>window.addEventListener('load', function() { hljs.highlightAll() });</script>
<?php include __DIR__ . '/inc/footer.php'; ?>