Skip to content

Commit 17ef0e5

Browse files
committed
Synchronized package files with skeleton template
1 parent 0d1c7a1 commit 17ef0e5

6 files changed

Lines changed: 39 additions & 20 deletions

File tree

.github/skeleton.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"package.name": "Polymorphine/App",
3+
"repository.name": "polymorphine/app",
4+
"package.description": "PHP Front Controller for HTTP applications",
5+
"namespace.src": "Polymorphine\\App",
6+
"author.name": "Shudd3r",
7+
"author.email": "q3.shudder@gmail.com"
8+
}

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ jobs:
5050
- name: "Coding standard CodeSniffer checks"
5151
run: |
5252
vendor/bin/phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml src
53-
vendor/bin/phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml --ignore=*/CodeSamples/* tests
53+
vendor/bin/phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml --ignore=*/code-samples/* tests
54+
- name: "Package skeleton validation"
55+
run: vendor/bin/polymorphine-skeleton check
5456
- name: "Run PhpUnit tests with coverage"
5557
run: |
5658
mkdir -p build/logs

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.dev/
2-
.idea/
3-
vendor/
1+
/.dev/
2+
/vendor/
43
/composer.lock

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Polymorphine App
2-
[![Latest Stable Version](https://poser.pugx.org/polymorphine/app/version)](https://packagist.org/packages/polymorphine/app)
1+
# Polymorphine/App
2+
[![Latest stable release](https://poser.pugx.org/polymorphine/app/version)](https://packagist.org/packages/polymorphine/app)
33
[![Build status](https://github.com/polymorphine/app/workflows/build/badge.svg)](https://github.com/polymorphine/app/actions)
44
[![Coverage status](https://coveralls.io/repos/github/polymorphine/app/badge.svg?branch=develop)](https://coveralls.io/github/polymorphine/app?branch=develop)
55
[![PHP version](https://img.shields.io/packagist/php-v/polymorphine/app.svg)](https://packagist.org/packages/polymorphine/app)
66
[![LICENSE](https://img.shields.io/github/license/polymorphine/app.svg?color=blue)](LICENSE)
7-
### PHP Front Controller for HTTP applications (in development)
7+
### PHP Front Controller for HTTP applications
88

99
##### Goals: Framework should be *easy to learn* when programming is *difficult to master*
1010
- minimum conventions, simple API
@@ -20,3 +20,11 @@
2020
- [x] encapsulated configuration
2121
- [x] PSR-11 container (optional use)
2222
- [x] composite routing (polymorphic structure)
23+
24+
### Installation with [Composer](https://getcomposer.org/)
25+
```bash
26+
composer require polymorphine/app
27+
```
28+
29+
...
30+

composer.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
"name": "polymorphine/app",
33
"description": "PHP Front Controller for HTTP applications",
44
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Shudd3r",
9+
"email": "q3.shudder@gmail.com"
10+
}
11+
],
512
"minimum-stability": "dev",
613
"prefer-stable": true,
714
"require": {
@@ -12,15 +19,8 @@
1219
"psr/http-server-middleware": "^1.0"
1320
},
1421
"require-dev": {
15-
"polymorphine/dev": "0.1.*"
22+
"polymorphine/dev": "0.2.*"
1623
},
17-
"license": "MIT",
18-
"authors": [
19-
{
20-
"name": "Shudd3r",
21-
"email": "q3.shudder@gmail.com"
22-
}
23-
],
2424
"autoload": {
2525
"psr-4": {
2626
"Polymorphine\\App\\": "src/"
@@ -33,9 +33,11 @@
3333
},
3434
"scripts": {
3535
"test-cs": [
36-
"vendor/bin/php-cs-fixer --dry-run -v --config=cs-fixer.php.dist --path-mode=intersection fix src tests",
37-
"vendor/bin/phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml src",
38-
"vendor/bin/phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml --ignore=*/CodeSamples/* tests"
39-
]
36+
"php-cs-fixer --dry-run -v --config=cs-fixer.php.dist --path-mode=intersection fix src tests",
37+
"phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml src",
38+
"phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml --ignore=*/code-samples/* tests"
39+
],
40+
"test-php": "phpunit",
41+
"test-skeleton": "polymorphine-skeleton check"
4042
}
4143
}

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
5-
cacheResultFile=".dev/.phpunit.result.cache"
5+
cacheResultFile=".dev/temp/.phpunit.result.cache"
66
colors="true"
77
bootstrap="vendor/autoload.php"
88
>

0 commit comments

Comments
 (0)