-
Notifications
You must be signed in to change notification settings - Fork 0
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
matt
committed
Jan 27, 2024
1 parent
e7d89c3
commit 9659241
Showing
9 changed files
with
6,055 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/docs/ export-ignore | ||
/test/ export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.psr-container.php.stub export-ignore | ||
/composer.lock export-ignore | ||
/phpcs.xml export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/psalm.xml export-ignore |
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,5 @@ | ||
/.phpcs-cache | ||
/.phpunit.cache | ||
/.phpunit.result.cache | ||
/phpunit.xml | ||
/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,23 @@ | ||
<?php | ||
/** | ||
* File named as .stub to avoid duplicate declaration of the interface in consuming projects | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Psr\Container { | ||
/** | ||
* Provides automatic type inference for Psalm when retrieving a service from a container using a FQCN | ||
*/ | ||
interface ContainerInterface | ||
{ | ||
/** @param string|class-string $id */ | ||
public function has(string $id): bool; | ||
|
||
/** | ||
* @template T of object | ||
* @psalm-param string|class-string<T> $id | ||
* @psalm-return ($id is class-string ? T : mixed) | ||
*/ | ||
public function get(string $id): object; | ||
} | ||
} |
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,6 @@ | ||
# kynx/laminas-form-cli | ||
|
||
Command line tools for [Laminas forms] | ||
|
||
|
||
[Laminas forms]: https://docs.laminas.dev/laminas-form/ |
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,61 @@ | ||
{ | ||
"name": "kynx/laminas-form-cli", | ||
"description": "Command line tools for Laminas forms", | ||
"type": "library", | ||
"license": "BSD-3-Clause", | ||
"keywords": [ | ||
"laminas", | ||
"form", | ||
"psalm" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Matt Kynaston", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"config": { | ||
"sort-packages": true, | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
} | ||
}, | ||
"require": { | ||
"php": "~8.2 || ~8.3", | ||
"laminas/laminas-cli": "^1.10", | ||
"laminas/laminas-form": "^3.19", | ||
"nette/php-generator": "^4.1" | ||
}, | ||
"require-dev": { | ||
"laminas/laminas-coding-standard": "^2.5", | ||
"phpunit/phpunit": "^10.5", | ||
"psalm/plugin-phpunit": "^0.18.4", | ||
"psr/http-client": "^1.0", | ||
"psr/http-factory": "^1.0", | ||
"roave/security-advisories": "dev-master", | ||
"squizlabs/php_codesniffer": "^3.8", | ||
"vimeo/psalm": "^5.20" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Kynx\\Laminas\\FormDto\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"KynxTest\\Laminas\\FormDto\\": "test/" | ||
} | ||
}, | ||
"scripts": { | ||
"check": [ | ||
"@cs-check", | ||
"@static-analysis", | ||
"@test" | ||
], | ||
"cs-check": "phpcs", | ||
"cs-fix": "phpcbf", | ||
"static-analysis": "psalm --shepherd --stats", | ||
"test": "phpunit --colors=always", | ||
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml" | ||
} | ||
} |
Oops, something went wrong.