diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..021c67e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +/.gitattributes export-ignore +/.gitignore export-ignore +/README.md export-ignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d0acbb9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/.idea/ +/composer.lock +/vendor/ diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1693676 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Set Based IT Consultancy + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..379263b --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +# PhpPlaisio: Trusted Host Authority + + + + + + + + + + + + + + + + +
SocialLegalRelease
+Gitter + +License + +Latest Stable Version +
+ +Interface for determining whether a remote host (i.e. the next hop) is a trusted host. + +# Design + +This is an [abstract, responsible and stable package](https://matthiasnoback.nl/book/principles-of-package-design/). +Hence, if you see little or non-recent activity in this repository it doesn't mean this projects is dead, but it means +we have achieved one of the essentials goals of this package. + +# License + +This project is licensed under the MIT license. diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..1040c5c --- /dev/null +++ b/composer.json @@ -0,0 +1,19 @@ +{ + "name": "plaisio/trusted-host-authority", + "description": "PhpPlaisio: Trusted Host Authority", + "keywords": [ + "PhpPlaisio", + "Trusted", + "Host", + "Authority" + ], + "license": "MIT", + "require": { + "php": ">=8.1" + }, + "autoload": { + "psr-4": { + "Plaisio\\TrustedHostAuthority\\": "src/" + } + } +} diff --git a/plaisio-kernel.xml b/plaisio-kernel.xml new file mode 100644 index 0000000..038ca68 --- /dev/null +++ b/plaisio-kernel.xml @@ -0,0 +1,9 @@ + + + + \Plaisio\TrustedHostAuthority\TrustedHostAuthority + trustedHostAuthority + The object for determining whether the remote host (i.e. the next hop) is a trusted host. + + + diff --git a/src/TrustedHostAuthority.php b/src/TrustedHostAuthority.php new file mode 100644 index 0000000..c02ca2d --- /dev/null +++ b/src/TrustedHostAuthority.php @@ -0,0 +1,27 @@ +