Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
matt committed Jan 27, 2024
1 parent e7d89c3 commit 9659241
Show file tree
Hide file tree
Showing 9 changed files with 6,055 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitattributes
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
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.phpcs-cache
/.phpunit.cache
/.phpunit.result.cache
/phpunit.xml
/vendor/
23 changes: 23 additions & 0 deletions .psr-container.php.stub
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;
}
}
6 changes: 6 additions & 0 deletions README.md
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/
61 changes: 61 additions & 0 deletions composer.json
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"
}
}
Loading

0 comments on commit 9659241

Please sign in to comment.