-
Notifications
You must be signed in to change notification settings - Fork 12
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
32 changed files
with
1,595 additions
and
48 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 |
---|---|---|
@@ -1,51 +1,62 @@ | ||
{ | ||
"name": "slim/console", | ||
"type": "library", | ||
"description": "Slim Console", | ||
"keywords": ["framework","php","slim"], | ||
"homepage": "https://www.slimframework.com", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Pierre Berube", | ||
"email": "pierre@lgse.com", | ||
"homepage": "http://www.lgse.com" | ||
} | ||
], | ||
"require": { | ||
"ext-json": "*", | ||
"php": "^7.2", | ||
"symfony/console": "^5.1" | ||
}, | ||
"require-dev": { | ||
"adriansuter/php-autoload-override": "^1.1", | ||
"phpspec/prophecy": "^1.10", | ||
"phpstan/phpstan": "^0.12.31", | ||
"phpunit/phpunit": "^8.5", | ||
"squizlabs/php_codesniffer": "^3.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Slim\\Console\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Slim\\Tests\\Console\\": "tests" | ||
} | ||
"name": "slim/console", | ||
"type": "library", | ||
"description": "Slim Console", | ||
"keywords": [ | ||
"framework", | ||
"php", | ||
"slim" | ||
], | ||
"homepage": "https://www.slimframework.com", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Pierre Berube", | ||
"email": "pierre@lgse.com", | ||
"homepage": "http://www.lgse.com" | ||
}, | ||
"scripts": { | ||
"test": [ | ||
"@phpunit", | ||
"@phpcs", | ||
"@phpstan" | ||
], | ||
"phpunit": "phpunit", | ||
"phpcs": "phpcs", | ||
"phpstan": "phpstan analyse src --memory-limit=-1" | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
}, | ||
"bin": ["bin/slim"] | ||
{ | ||
"name": "Temuri Takalandze", | ||
"email": "me@abgeo.dev", | ||
"homepage": "https://abgeo.dev" | ||
} | ||
], | ||
"require": { | ||
"ext-json": "*", | ||
"php": "^7.2", | ||
"symfony/console": "^5.1" | ||
}, | ||
"require-dev": { | ||
"adriansuter/php-autoload-override": "^1.1", | ||
"phpspec/prophecy": "^1.10", | ||
"phpstan/phpstan": "^0.12.31", | ||
"phpunit/phpunit": "^8.5", | ||
"squizlabs/php_codesniffer": "^3.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Slim\\Console\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Slim\\Tests\\Console\\": "tests" | ||
} | ||
}, | ||
"scripts": { | ||
"test": [ | ||
"@phpunit", | ||
"@phpcs", | ||
"@phpstan" | ||
], | ||
"phpunit": "phpunit", | ||
"phpcs": "phpcs", | ||
"phpstan": "phpstan analyse src --memory-limit=-1" | ||
}, | ||
"config": { | ||
"sort-packages": true | ||
}, | ||
"bin": [ | ||
"bin/slim" | ||
] | ||
} |
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,35 @@ | ||
<?php | ||
|
||
/** | ||
* Slim Framework (https://slimframework.com) | ||
* | ||
* @license https://github.com/slimphp/Slim-Console/blob/0.x/LICENSE.md (MIT License) | ||
*/ | ||
|
||
namespace Slim\Console\Command\Initializer\Dependency; | ||
|
||
abstract class Dependency | ||
{ | ||
public const NAME = 'Abstract Dependency'; | ||
|
||
/** | ||
* @var array<string> | ||
*/ | ||
protected $packages = []; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getName(): string | ||
{ | ||
return static::NAME; | ||
} | ||
|
||
/** | ||
* @return array<string> | ||
*/ | ||
public function getPackages(): array | ||
{ | ||
return $this->packages; | ||
} | ||
} |
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,24 @@ | ||
<?php | ||
|
||
/** | ||
* Slim Framework (https://slimframework.com) | ||
* | ||
* @license https://github.com/slimphp/Slim-Console/blob/0.x/LICENSE.md (MIT License) | ||
*/ | ||
|
||
namespace Slim\Console\Command\Initializer\Dependency; | ||
|
||
use Slim\Console\Command\Initializer\Profiles\blank\DependencyVersions; | ||
|
||
class GuzzleDependency extends Dependency | ||
{ | ||
public const NAME = 'Guzzle'; | ||
|
||
/** | ||
* @var array<string> | ||
*/ | ||
protected $packages = [ | ||
'guzzlehttp/psr7' => DependencyVersions::GUZZLE_PSR_7, | ||
'http-interop/http-factory-guzzle' => DependencyVersions::HTTP_FACTORY_GUZZLE, | ||
]; | ||
} |
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,23 @@ | ||
<?php | ||
|
||
/** | ||
* Slim Framework (https://slimframework.com) | ||
* | ||
* @license https://github.com/slimphp/Slim-Console/blob/0.x/LICENSE.md (MIT License) | ||
*/ | ||
|
||
namespace Slim\Console\Command\Initializer\Dependency; | ||
|
||
use Slim\Console\Command\Initializer\Profiles\blank\DependencyVersions; | ||
|
||
class LaminasDependency extends Dependency | ||
{ | ||
public const NAME = 'Laminas'; | ||
|
||
/** | ||
* @var array<string> | ||
*/ | ||
protected $packages = [ | ||
'laminas/laminas-diactoros' => DependencyVersions::LAMINAS_DIACTOROS, | ||
]; | ||
} |
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,23 @@ | ||
<?php | ||
|
||
/** | ||
* Slim Framework (https://slimframework.com) | ||
* | ||
* @license https://github.com/slimphp/Slim-Console/blob/0.x/LICENSE.md (MIT License) | ||
*/ | ||
|
||
namespace Slim\Console\Command\Initializer\Dependency; | ||
|
||
use Slim\Console\Command\Initializer\Profiles\blank\DependencyVersions; | ||
|
||
class MonologDependency extends Dependency | ||
{ | ||
public const NAME = 'Monolog'; | ||
|
||
/** | ||
* @var array<string> | ||
*/ | ||
protected $packages = [ | ||
'monolog/monolog' => DependencyVersions::MONOLOG, | ||
]; | ||
} |
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,24 @@ | ||
<?php | ||
|
||
/** | ||
* Slim Framework (https://slimframework.com) | ||
* | ||
* @license https://github.com/slimphp/Slim-Console/blob/0.x/LICENSE.md (MIT License) | ||
*/ | ||
|
||
namespace Slim\Console\Command\Initializer\Dependency; | ||
|
||
use Slim\Console\Command\Initializer\Profiles\blank\DependencyVersions; | ||
|
||
class NyholmDependency extends Dependency | ||
{ | ||
public const NAME = 'Nyholm'; | ||
|
||
/** | ||
* @var array<string> | ||
*/ | ||
protected $packages = [ | ||
'nyholm/psr7' => DependencyVersions::NYHOLM_PSR_7, | ||
'nyholm/psr7-server' => DependencyVersions::NYHOLM_PSR_7_SERVER, | ||
]; | ||
} |
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,30 @@ | ||
<?php | ||
|
||
/** | ||
* Slim Framework (https://slimframework.com) | ||
* | ||
* @license https://github.com/slimphp/Slim-Console/blob/0.x/LICENSE.md (MIT License) | ||
*/ | ||
|
||
namespace Slim\Console\Command\Initializer\Dependency; | ||
|
||
class OtherDependency extends Dependency | ||
{ | ||
public const NAME = 'Other'; | ||
|
||
/** | ||
* @var array<string> | ||
*/ | ||
protected $packages = []; | ||
|
||
/** | ||
* Add to packages. | ||
* | ||
* @param string $package Package Name (vendor/name). | ||
* @param string $version Package Version. | ||
*/ | ||
public function addPackage(string $package, string $version): void | ||
{ | ||
$this->packages[$package] = $version; | ||
} | ||
} |
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,23 @@ | ||
<?php | ||
|
||
/** | ||
* Slim Framework (https://slimframework.com) | ||
* | ||
* @license https://github.com/slimphp/Slim-Console/blob/0.x/LICENSE.md (MIT License) | ||
*/ | ||
|
||
namespace Slim\Console\Command\Initializer\Dependency; | ||
|
||
use Slim\Console\Command\Initializer\Profiles\blank\DependencyVersions; | ||
|
||
class PHPDIDependency extends Dependency | ||
{ | ||
public const NAME = 'PHP DI'; | ||
|
||
/** | ||
* @var array<string> | ||
*/ | ||
protected $packages = [ | ||
'php-di/php-di' => DependencyVersions::PHP_DI, | ||
]; | ||
} |
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,23 @@ | ||
<?php | ||
|
||
/** | ||
* Slim Framework (https://slimframework.com) | ||
* | ||
* @license https://github.com/slimphp/Slim-Console/blob/0.x/LICENSE.md (MIT License) | ||
*/ | ||
|
||
namespace Slim\Console\Command\Initializer\Dependency; | ||
|
||
use Slim\Console\Command\Initializer\Profiles\blank\DependencyVersions; | ||
|
||
class PimpleDependency extends Dependency | ||
{ | ||
public const NAME = 'Pimple'; | ||
|
||
/** | ||
* @var array<string> | ||
*/ | ||
protected $packages = [ | ||
'pimple/pimple' => DependencyVersions::PIMPLE, | ||
]; | ||
} |
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,23 @@ | ||
<?php | ||
|
||
/** | ||
* Slim Framework (https://slimframework.com) | ||
* | ||
* @license https://github.com/slimphp/Slim-Console/blob/0.x/LICENSE.md (MIT License) | ||
*/ | ||
|
||
namespace Slim\Console\Command\Initializer\Dependency; | ||
|
||
use Slim\Console\Command\Initializer\Profiles\blank\DependencyVersions; | ||
|
||
class SlimPsr7Dependency extends Dependency | ||
{ | ||
public const NAME = 'Slim PSR-7'; | ||
|
||
/** | ||
* @var array<string> | ||
*/ | ||
protected $packages = [ | ||
'slim/psr7' => DependencyVersions::SLIM_PSR_7, | ||
]; | ||
} |
Oops, something went wrong.