-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
217 changed files
with
39,354 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/.box_dump/ | ||
/vendor/ |
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,12 @@ | ||
{ | ||
"$schema": "../../../res/schema.json", | ||
|
||
"main": "box.php", | ||
"output": "../../../dist/bench/box.phar", | ||
|
||
"directories-bin": ["../../../res/requirement-checker"], | ||
"force-autodiscovery": true, | ||
|
||
"dump-autoload": false, | ||
"datetime": "release-date" | ||
} |
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,60 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the box project. | ||
* | ||
* (c) Kevin Herrera <[email protected]> | ||
* Théo Fidry <[email protected]> | ||
* | ||
* This source file is subject to the MIT license that is bundled | ||
* with this source code in the file LICENSE. | ||
*/ | ||
|
||
namespace KevinGH\Box; | ||
|
||
use Fidry\Console\Application\ApplicationRunner; | ||
use Fidry\Console\IO; | ||
use KevinGH\Box\Console\Application; | ||
use KevinGH\Box\Console\OutputFormatterConfigurator; | ||
use RuntimeException; | ||
use function file_exists; | ||
use function in_array; | ||
use const PHP_EOL; | ||
use const PHP_SAPI; | ||
|
||
// See https://github.com/easysoft/phpmicro for the micro SAPI. | ||
if (false === in_array(PHP_SAPI, ['cli', 'phpdbg', 'embed', 'micro'], true)) { | ||
echo PHP_EOL.'Box may only be invoked from a command line, got "'.PHP_SAPI.'"'.PHP_EOL; | ||
|
||
exit(1); | ||
} | ||
|
||
(static function (): void { | ||
if (file_exists($autoload = __DIR__.'/../../../autoload.php')) { | ||
// Is installed via Composer | ||
include_once $autoload; | ||
|
||
return; | ||
} | ||
|
||
if (file_exists($autoload = __DIR__.'/../vendor/autoload.php')) { | ||
// Is installed locally | ||
include_once $autoload; | ||
|
||
return; | ||
} | ||
|
||
throw new RuntimeException('Unable to find the Composer autoloader.'); | ||
})(); | ||
|
||
register_aliases(); | ||
register_error_handler(); | ||
|
||
$io = IO::createDefault(); | ||
OutputFormatterConfigurator::configure($io); | ||
|
||
$runner = new ApplicationRunner(new Application()); | ||
$runner->run($io); |
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,114 @@ | ||
{ | ||
"name": "humbug/box", | ||
"description": "Fast, zero config application bundler with PHARs.", | ||
"license": "MIT", | ||
"keywords": [ | ||
"phar" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Kevin Herrera", | ||
"email": "[email protected]", | ||
"homepage": "http://kevin.herrera.io" | ||
}, | ||
{ | ||
"name": "Théo Fidry", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": "^8.2", | ||
"ext-iconv": "*", | ||
"ext-mbstring": "*", | ||
"ext-phar": "*", | ||
"composer-plugin-api": "^2.2", | ||
"amphp/parallel-functions": "^1.1", | ||
"composer/semver": "^3.3.2", | ||
"composer/xdebug-handler": "^3.0.3", | ||
"fidry/console": "^0.6.0", | ||
"fidry/filesystem": "^1.1", | ||
"humbug/php-scoper": "^0.18.6", | ||
"justinrainbow/json-schema": "^5.2.12", | ||
"laravel/serializable-closure": "^1.2.2", | ||
"nikic/iter": "^2.2", | ||
"nikic/php-parser": "^4.15.2", | ||
"phpdocumentor/reflection-docblock": "^5.3", | ||
"phpdocumentor/type-resolver": "^1.7", | ||
"psr/log": "^3.0", | ||
"sebastian/diff": "^4.0", | ||
"seld/jsonlint": "^1.9", | ||
"seld/phar-utils": "^1.2", | ||
"symfony/filesystem": "^6.1.5", | ||
"symfony/finder": "^6.1.3", | ||
"symfony/polyfill-iconv": "^1.28", | ||
"symfony/polyfill-mbstring": "^1.28", | ||
"symfony/process": "^6.1.3", | ||
"symfony/var-dumper": "^6.1.6", | ||
"webmozart/assert": "^1.11" | ||
}, | ||
"require-dev": { | ||
"bamarni/composer-bin-plugin": "^1.8.2", | ||
"ergebnis/composer-normalize": "^2.29", | ||
"fidry/makefile": "^1.0.1", | ||
"mikey179/vfsstream": "^1.6.11", | ||
"phpspec/prophecy": "^1.17", | ||
"phpspec/prophecy-phpunit": "^2.0.2", | ||
"phpunit/phpunit": "^9.5.26", | ||
"symfony/phpunit-bridge": "^6.1.6", | ||
"symfony/yaml": "^6.2", | ||
"webmozarts/strict-phpunit": "^7.6" | ||
}, | ||
"replace": { | ||
"symfony/polyfill-php80": "*", | ||
"symfony/polyfill-php81": "*" | ||
}, | ||
"suggest": { | ||
"ext-openssl": "To accelerate private key generation." | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"autoload": { | ||
"psr-4": { | ||
"KevinGH\\Box\\": "src" | ||
}, | ||
"files": [ | ||
"src/functions.php" | ||
], | ||
"exclude-from-classmap": [ | ||
"/Test/", | ||
"vendor/humbug/php-scoper/vendor-hotfix" | ||
] | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"KevinGH\\Box\\": [ | ||
"fixtures", | ||
"tests" | ||
] | ||
} | ||
}, | ||
"bin": [ | ||
"bin/box" | ||
], | ||
"config": { | ||
"allow-plugins": { | ||
"bamarni/composer-bin-plugin": true, | ||
"composer/package-versions-deprecated": false, | ||
"ergebnis/composer-normalize": true | ||
}, | ||
"platform": { | ||
"php": "8.2" | ||
}, | ||
"platform-check": false, | ||
"sort-packages": true | ||
}, | ||
"extra": { | ||
"bamarni-bin": { | ||
"bin-links": false, | ||
"forward-command": false | ||
}, | ||
"branch-alias": { | ||
"dev-main": "4.x-dev" | ||
} | ||
} | ||
} |
Oops, something went wrong.