diff --git a/.gitignore b/.gitignore index c8370e4..21e4b0d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ build/ raw-tests/ vendor/ .php-cs-fixer.cache +.phpunit.cache .phpunit.result.cache composer.lock composer.phar diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d96d7c9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2019 Hafiz Muhammad Moaz + +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/composer.json b/composer.json index d274839..b7a24ae 100644 --- a/composer.json +++ b/composer.json @@ -1,16 +1,33 @@ { "name": "webisters/theme", - "type": "library", "description": "Webisters Theme Library", + "license": "MIT", + "type": "library", "keywords": [ - "theme" + "theme", + "layout", + "view", + "html" ], - "homepage": "https://webisters.com/docs/theme", - "license": "proprietary", "authors": [ { "name": "Hafiz Muhammad Moaz", - "email": "hafizmoazkhalid@gmail.com" + "email": "hafizmoazkhalid@gmail.com", + "homepage": "https://github.com/HafizMMoaz" + } + ], + "homepage": "https://webisters.com/packages/theme", + "support": { + "email": "support@webisters.com", + "issues": "https://github.com/webisters/theme/issues", + "forum": "https://github.com/webisters/forum", + "source": "https://github.com/webisters/theme", + "docs": "https://webisters.com" + }, + "funding": [ + { + "type": "Webisters Sponsor", + "url": "https://webisters.com/sponsor" } ], "require": { @@ -18,13 +35,10 @@ }, "require-dev": { "webisters/coding-standard": "*", - "phpunit/phpunit": "^9.5" - }, - "config": { - "optimize-autoloader": true, - "preferred-install": "dist", - "sort-packages": true + "phpunit/phpunit": "^10.5" }, + "minimum-stability": "dev", + "prefer-stable": true, "autoload": { "psr-4": { "Framework\\Theme\\": "src/" @@ -35,14 +49,9 @@ "Tests\\Theme\\": "tests/" } }, - "minimum-stability": "dev", - "prefer-stable": true, - "support": { - "email": "hafizmoazkhalid@gmail.com", - "issues": "https://gitlab.com/webisters/libraries/theme/issues", - "wiki": "https://gitlab.com/webisters/libraries/theme/wikis/home", - "source": "https://gitlab.com/webisters/libraries/theme", - "docs": "https://webisters.gitlab.io/libraries/theme/docs/" + "config": { + "optimize-autoloader": true, + "preferred-install": "dist", + "sort-packages": true } } - diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 741d40f..905c202 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,13 +1,10 @@ - - - src - + bootstrap="vendor/autoload.php" colors="true" stopOnError="false" stopOnFailure="false" + stopOnIncomplete="false" stopOnSkipped="false" + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" + cacheDirectory=".phpunit.cache"> + @@ -18,4 +15,9 @@ tests + + + src + +