-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from Grandt/2.0.5
2.0.5
- Loading branch information
Showing
29 changed files
with
1,680 additions
and
3,026 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
If you already know how to use composer, skip this file. | ||
|
||
Start by reading https://getcomposer.org/download/ | ||
|
||
1. download composer.phar as shown in that page. | ||
|
||
2. from the legacy folder, run | ||
#>php <path to composer>/composer.phar install | ||
|
||
This will download dependencies for these test files. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"require": { | ||
"php": ">=5.3.0", | ||
"grandt/binstring": "0.2.0.*@dev", | ||
"grandt/relativepath": "1.0.1.*@dev", | ||
"grandt/phpzipmerge": ">=1.0.1" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"PHPZip\\Zip\\": "../src/Zip" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,7 @@ | ||
<?php | ||
/** | ||
* User: Grandt | ||
* Date: 29-07-14 | ||
*/ | ||
|
||
$currentExtensions = spl_autoload_extensions(); | ||
if (strpos($currentExtensions, ",.php") === false) { | ||
spl_autoload_extensions($currentExtensions . ',.php'); | ||
} | ||
// autoload.php @generated by Composer | ||
|
||
/*** class Loader ***/ | ||
function PHPZipLoader($class) { | ||
$filename = str_replace('PHPZip\\Zip\\', '../src/Zip/', $class); | ||
require_once __DIR__ . '/composer' . '/autoload_real.php'; | ||
|
||
$file = $filename . '.php'; | ||
|
||
if ("\\" != DIRECTORY_SEPARATOR) { | ||
$file = str_replace("\\", DIRECTORY_SEPARATOR, $file); | ||
} | ||
|
||
if ("/" != DIRECTORY_SEPARATOR) { | ||
$file = str_replace("/", DIRECTORY_SEPARATOR, $file); | ||
} | ||
|
||
if (!file_exists($file)) { | ||
return false; | ||
} | ||
require($file); | ||
} | ||
|
||
/*** register the loader functions ***/ | ||
spl_autoload_register('PHPZipLoader'); | ||
return ComposerAutoloaderInite6c13717920b2806b80a413638fd1ff9::getLoader(); |
Oops, something went wrong.