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">
33 box
-shadow
: 0px
0px
1em
.4em
#89a;
40 .header h1 a
, .footer a
:hover
{
41 text
-decoration
: none
;
44 text
-decoration
: underline
;
47 /* normalize browser difference */
50 .header h1 big
, .footer
, .footer a
{
52 text
-shadow
: grey
0 0 .1em
;
56 text
-shadow
: white
0 0 .2em
;
59 list-style
-type
: circle
;
66 <h1
class="container">
67 <a href
="?"><big
>Replicator
</big
></a
><br
>
68 <small
>Replicating PECL releases
as pharext packages since
2015</small
>
70 <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
>
73 <div
class="container">
75 <?php
if (!empty($package)) : ?
>
77 <h2
><?
= htmlspecialchars($package) ?
></h2
>
78 <table
class="table table-full">
81 <th
class="text-left" colspan
="4">Package
</th
>
82 <th
class="text-left">Date
</th
>
83 <th
class="text-right">Pharext
</th
>
88 <?php
foreach (array_reverse(package_versions($package)) as $version => $phars) : ?
>
91 <td
class="text-left">
92 <?
= htmlspecialchars($package) ?
>
93 <?
= htmlspecialchars($version) ?
>
96 <?php
foreach (array_map("array_values", $phars) as $ext => list($phar, $date, $size, $pharext)) : ?
>
97 <td
class="text-left">
98 <a href
="<?= htmlspecialchars($phar) ?>"
99 >ext
.phar
<?
= htmlspecialchars($ext) ?
></a
><br
>
100 <small
>⤋ <?= human_size($size) ?></small>
103 <?php
for($i = 0; $i < 3-count($phars); ++
$i) : ?
>
108 <td
class="text-left">
109 <?
= human_date($date); ?
>
112 <td
class="text-right <?= version_compare($pharext, "3.0.1", "<") ? "color
-red
":"" ?>">
122 <h2
>Available Packages
</h2
>
123 <ul
class="list-inline">
124 <?php
foreach (array_map("htmlspecialchars", $packages) as $index => $package) : ?
>
125 <?php
$next = strtolower($package{0}); ?
>
126 <?php
if (isset($prev) && $next != $prev) : ?
>
129 <ul
class="list-inline">
132 <li
><a href
="?<?= $package ?>"><?
= $package ?
></a
></li
>
133 <?php
$prev = $next; ?
>
141 ©
; 2015 m6w6
, Michael Wallner
&mdash
; Powered by
<a href
="//github.com/m6w6/pharext">pharext
143 require_once "../vendor/autoload.php";
144 printf("v%s\n", pharext\Metadata
::version());