Skip to content

Commit d0d4b0c

Browse files
committed
Add phar archives for those poor souls without Composer.
1 parent a6d93c3 commit d0d4b0c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

build-phar.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
$archive = new Phar('linear-algebra.phar');
4+
5+
$base = dirname(__FILE__);
6+
7+
$archive->buildFromIterator(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($base . '/src')), $base);
8+
$archive->buildFromIterator(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($base . '/vendor')), $base);
9+
10+
$archive->setStub(Phar::createDefaultStub('vendor/autoload.php'));

linear-algebra.phar

47.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)