2 const INCLUDED
= __FILE__
;
4 require_once "index.php";
12 <meta charset
="utf-8">
13 <title
>Replicator
</title
>
14 <link rel
="stylesheet" href
="concise/css/concise.min.css">
15 <link href
="//fonts.googleapis.com/css?family=Droid+Sans" rel
="stylesheet" type
="text/css">
16 <meta name
="viewport" content
="width=device-width, initial-scale=1">
34 box
-shadow
: 0px
0px
.8em
.4em
#89a;
41 .header h1 a
, .footer a
:hover
{
42 text
-decoration
: none
;
45 text
-decoration
: underline
;
48 /* normalize browser difference */
51 .header h1 a
, .footer
, .footer a
{
53 text
-shadow
: grey
0 0 .1em
;
58 text
-shadow
: white
0 0 .2em
;
61 list-style
-type
: circle
;
70 padding
: 0 1.5em
1.5em
1em
;
73 display
: inline
-block
;
81 @media
(max
-width
: 80em
) {
92 <h1
class="container">
93 <a href
="?">Replicator
</a
><br
>
94 <small
>Replicating PECL releases
as pharext packages since
2015</small
>
96 <a href
="https://github.com/m6w6/replicator"><img style
="position: absolute; top: 0; right: 0; border: 0;" src
="https://camo.githubusercontent.com/652c5b9acfaddf3a9c326fa6bde407b87f7be0f4/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f6f72616e67655f6666373630302e706e67" alt
="Fork me on GitHub" data
-canonical
-src
="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png"></a
>
99 <div
class="container">
101 <?php
if (!empty($package)) : $versions = package_versions($package); ?
>
103 <h2
><?
= htmlspecialchars($package) ?
></h2
>
104 <table
class="table table-full">
107 <th
class="text-left" colspan
="2">Package
</th
>
108 <th
class="text-left" colspan
="<?= count(SIGS) ?>">Signatures
</th
>
109 <th
class="text-left">Date
</th
>
110 <th
class="text-right">Pharext
</th
>
115 <?php
foreach (array_reverse($versions) as $version => $phars) : ?
>
116 <?php
foreach (array_map("array_values", $phars) as $ext => list($phar, $date, $size, $pharext)) : ?
>
118 <?php
if (empty($ext)) : ?
>
119 <td
class="text-left" rowspan
="<?= count($phars) ?>">
120 <?
= htmlspecialchars($package) ?
>
121 <?
= htmlspecialchars($version) ?
>
125 <td
class="text-left">
126 ⤋ <a href="<?= htmlspecialchars($phar) ?>"
127 download
>phar
<?
= htmlspecialchars($ext) ?
></a
> 
;<small
>(<?
= human_size($size) ?
>)</small
><br
>
129 <?php
foreach (SIGS
as $typ => $sig) : ?
>
131 # <a href="<?= sigof($phar, $sig) ?>" download><?= "$typ.$sig" ?></a>
134 <td
class="text-left">
135 <?
= human_date($date); ?
>
138 <td
class="text-right <?= version_compare($pharext, "3.0.1", "<") ? "color
-red
":"" ?>">
149 <h2
>Available Packages
</h2
>
150 <ul
class="list-inline">
151 <?php
foreach (array_map("htmlspecialchars", $packages) as $index => $pkg) : ?
>
152 <?php
$next = strtolower($pkg{0}); ?
>
153 <?php
if (isset($prev) && $next != $prev) : ?
>
156 <ul
class="list-inline">
159 <li
><a href
="?<?= $pkg ?>"><?
= $pkg ?
></a
></li
>
160 <?php
$prev = $next; ?
>
167 <?php
if (empty($package)) : ?
>
169 <?php
else : list($phar) = array_values(current(end($versions))); ?
>
170 <h3
>Download latest version
and signatures
:</h3
>
171 <div
class="column-16">
172 <pre
class="code fit-code"><code
>
174 -O https
://replicator.pharext.org/<?= htmlspecialchars($phar) ?><?php foreach (SIGS as $sig) : ?> \
175 -O https
://replicator.pharext.org/<?= htmlspecialchars(sigof($phar, $sig)) ?><?php endforeach; ?></code></pre>
179 <h3
>Verify with a
public key
:</h3
>
182 <div
class="column-8">
183 <h4
>RSA
<small
><a href
="replicator.pub" download
>replicator
.pub
</a
></small
></h4
>
184 <?php
if (!empty($phar)) : ?
>
185 <pre
class="code"><code
>
186 curl
-sSO https
://replicator.pharext.org/replicator.pub
189 -verify replicator
.pub \
190 -signature
<?
= htmlspecialchars(basename($phar)).".sig" ?
> \
191 <?
= htmlspecialchars(basename($phar)) ?
></code
></pre
>
193 <pre
class="publickey"><?php
readfile("./replicator.pub") ?
></pre
>
195 <div
class="column-8">
196 <h4
>OpenPGP
<small
><a href
="4093AEF6.pub" download
>4093AEF6
.pub
</a
></small
></h4
>
197 <?php
if (!empty($phar)) : ?
>
198 <pre
class="code"><code
>
199 curl
-sSO https
://replicator.pharext.org/4093AEF6.pub
201 gpg
--import
4093AEF6
.pub
203 gpg
--verify
<?
= htmlspecialchars(basename($phar)).".asc" ?
> \
204 <?
= htmlspecialchars(basename($phar)) ?
></code
></pre
>
206 <pre
class="publickey"><?php
readfile("./4093AEF6.pub") ?
></pre
>
212 ©
; 2015 <a href
="https://m6w6.name">m6w6
</a
>, Michael Wallner
&mdash
; Powered by
<a href
="//github.com/m6w6/pharext">pharext
214 require_once "../vendor/autoload.php";
215 printf("v%s\n", pharext\Metadata
::version());