Skip to content

Instantly share code, notes, and snippets.

View jkostrz's full-sized avatar

Jarosław Kostrz jkostrz

  • Poland, Kraków
View GitHub Profile
@beberlei
beberlei / packagist_proxy.php
Created December 9, 2011 21:09
Composer/Packagist Proxy
<?php
$baseUrl = "http://localhost/packagist";
$baseDir = "/var/www/packagist";
if (!file_exists($baseDir)) {
echo "Base dir $baseDir for local packagist proxy does not exist\n";
exit(1);
}
$packagesJson = $baseDir . "/packages.json";