Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 2258086

Browse files
authored
Feature/update dependencies (#45)
* feat : updated dependencies and removed tmp solutions * feat : changed phpstan check * feat : fixed workflow * feat : added infection * fix : fixed markdown lint errors
1 parent 92301be commit 2258086

40 files changed

+4984
-696
lines changed

.dependabot/config.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,28 @@
33
version: 1
44

55
update_configs:
6-
- automerged_updates:
6+
- package_manager: "php:composer"
7+
directory: "/"
8+
update_schedule: "live"
9+
version_requirement_updates: "increase_versions"
10+
allowed_updates:
711
- match:
812
dependency_type: "development"
913
commit_message:
1014
include_scope: true
1115
prefix: "Build"
1216
default_labels:
1317
- "dependency"
18+
19+
- package_manager: "javascript"
1420
directory: "/"
15-
package_manager: "php:composer"
1621
update_schedule: "live"
1722
version_requirement_updates: "increase_versions"
23+
allowed_updates:
24+
- match:
25+
dependency_type: "all"
26+
commit_message:
27+
include_scope: true
28+
prefix: "Build"
29+
default_labels:
30+
- "dependency"

.docker/php/Dockerfile

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
ARG NAMESPACE
2+
ARG PHP_VERSION
3+
4+
FROM ${NAMESPACE}:${PHP_VERSION}-cli
5+
6+
RUN apt-get update && \
7+
apt-get install -y \
8+
apt-utils \
9+
libxml2-dev \
10+
curl \
11+
zlib1g-dev \
12+
libicu-dev \
13+
git \
14+
g++ \
15+
unzip \
16+
libzip-dev \
17+
zip \
18+
libtool \
19+
make \
20+
build-essential \
21+
automake \
22+
ca-certificates && \
23+
apt-get autoremove -y && \
24+
apt-get clean -y && \
25+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
26+
27+
RUN docker-php-ext-install opcache bcmath zip pcntl
28+
29+
RUN docker-php-ext-configure zip
30+
31+
RUN { \
32+
echo "short_open_tag=off"; \
33+
echo "date.timezone=Europe/Berlin"; \
34+
echo "opcache.max_accelerated_files=20000"; \
35+
echo "realpath_cache_size=4096K"; \
36+
echo "realpath_cache_ttl=600"; \
37+
echo "error_reporting = E_ALL"; \
38+
echo "display_startup_errors = On"; \
39+
echo "ignore_repeated_errors = Off"; \
40+
echo "ignore_repeated_source = Off"; \
41+
echo "html_errors = On"; \
42+
echo "display_errors = On"; \
43+
echo "log_errors = On"; \
44+
echo "error_log = /var/log/php/cli-error.log"; \
45+
} > /usr/local/etc/php/php.ini
46+
47+
# set recommended PHP.ini settings
48+
# see https://secure.php.net/manual/en/opcache.installation.php
49+
RUN { \
50+
echo 'opcache.memory_consumption=128'; \
51+
echo 'opcache.interned_strings_buffer=8'; \
52+
echo 'opcache.max_accelerated_files=4000'; \
53+
echo 'opcache.revalidate_freq=2'; \
54+
echo 'opcache.fast_shutdown=1'; \
55+
echo 'opcache.enable_cli=1'; \
56+
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
57+
58+
ENV COMPOSER_ALLOW_SUPERUSER 1
59+
60+
RUN php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer && \
61+
composer global require phploc/phploc ergebnis/composer-normalize narrowspark/automatic-composer-prefetcher narrowspark/automatic-security-audit
62+
63+
ARG INSTALL_XDEBUG
64+
ARG XDEBUG_VERSION
65+
66+
RUN if [ ${INSTALL_XDEBUG} = true ]; then pecl install "xdebug-${XDEBUG_VERSION}" ;fi
67+
68+
RUN { \
69+
echo 'xdebug.idekey=PHPSTORM'; \
70+
echo 'xdebug.remote_port=9000'; \
71+
echo 'xdebug.remote_enable=on'; \
72+
echo 'xdebug.remote_connect_back=on'; \
73+
echo 'xdebug.profiler_output_dir="/var/log/xdebug"'; \
74+
echo 'xdebug.cli_color=1'; \
75+
} > /usr/local/etc/php/conf.d/php-ext-xdebug.ini
76+
77+
RUN if [ ${INSTALL_XDEBUG} = true ]; then docker-php-ext-enable xdebug ;fi
78+
79+
RUN mkdir /var/log/php && touch /var/log/php/cli-error.log && chmod 0664 /var/log/php/cli-error.log
80+
81+
WORKDIR /var/www/package
82+
83+
ENV PATH="/root/.composer/vendor/bin:${PATH}"
84+
ENV DOKCER_RUN=true

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ insert_final_newline = true
77
indent_style = space
88
indent_size = 4
99
trim_trailing_whitespace = true
10+
11+
[*.yml]
12+
indent_size = 2

.gitattributes

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
11
* text=auto
22
*.php text eol=lf
33

4-
bin/ export-ignore
5-
.github export-ignore
6-
.dependabot export-ignore
7-
8-
.mergify.yml export-ignore
9-
.changelog export-ignore
10-
.editorconfig export-ignore
11-
.gitattributes export-ignore
12-
.gitignore export-ignore
13-
.travis.yml export-ignore
14-
README.md export-ignore
15-
CONTRIBUTING.md export-ignore
4+
.build/ export-ignore
5+
.dependabot export-ignore
6+
.docker export-ignore
7+
.github/ export-ignore
8+
9+
bin export-ignore
10+
11+
tests/ export-ignore
12+
13+
.changelog export-ignore
14+
.editorconfig export-ignore
15+
.gitattributes export-ignore
16+
.gitignore export-ignore
17+
.nvmrc export-ignore
18+
.php_cs export-ignore
19+
.textlintrc export-ignore
20+
.travis.yml export-ignore
21+
docker-compose.yml export-ignore
22+
infection.json export-ignore
23+
package.json export-ignore
24+
package-lock.json export-ignore
25+
phpstan.neon export-ignore
26+
phpunit.xml export-ignore
27+
psalm.xml export-ignore
28+
psalm-baseline.xml export-ignore

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @prisis

.github/CODE_OF_CONDUCT.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8+
9+
## Our Standards
10+
11+
Examples of behavior that contributes to a positive environment for our community include:
12+
13+
* Demonstrating empathy and kindness toward other people
14+
* Being respectful of differing opinions, viewpoints, and experiences
15+
* Giving and gracefully accepting constructive feedback
16+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17+
* Focusing on what is best not just for us as individuals, but for the overall community
18+
19+
Examples of unacceptable behavior include:
20+
21+
* The use of sexualized language or imagery, and sexual attention or
22+
advances of any kind
23+
* Trolling, insulting or derogatory comments, and personal or political attacks
24+
* Public or private harassment
25+
* Publishing others' private information, such as a physical or email
26+
address, without their explicit permission
27+
* Other conduct which could reasonably be considered inappropriate in a
28+
professional setting
29+
30+
## Enforcement Responsibilities
31+
32+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33+
34+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35+
36+
## Scope
37+
38+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39+
40+
## Enforcement
41+
42+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [d.bannert@anolilab.de](mailto:d.bannert@anolilab.de). All complaints will be reviewed and investigated promptly and fairly.
43+
44+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45+
46+
## Enforcement Guidelines
47+
48+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49+
50+
### 1. Correction
51+
52+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53+
54+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55+
56+
### 2. Warning
57+
58+
**Community Impact**: A violation through a single incident or series of actions.
59+
60+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61+
62+
### 3. Temporary Ban
63+
64+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65+
66+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67+
68+
### 4. Permanent Ban
69+
70+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71+
72+
**Consequence**: A permanent ban from any sort of public interaction within the community.
73+
74+
## Attribution
75+
76+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78+
79+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80+
81+
[homepage]: https://www.contributor-covenant.org
82+
83+
For answers to common questions about this code of conduct, see the FAQ at
84+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.

.github/CONTRIBUTING.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Contributing
2+
Narrowspark and Narrowspark package are open source, community-driven projects.
3+
4+
If you'd like to contribute, please read the following documents:
5+
6+
* [Reviewing issues/pull requests][0]
7+
* [Reporting a Bug][1]
8+
* [Submitting a Patch][2]
9+
* [Narrowspark Core Team][3]
10+
* [Security Issues][4]
11+
* [Running Narrowspark Tests][5]
12+
* [Our Backwards Compatibility Promise][6]
13+
* [Coding Standards][7]
14+
* [Conventions][8]
15+
16+
[0]: https://narrowspark.com/docs/current/contributing/community/reviews.html
17+
[1]: https://narrowspark.com/docs/current/contributing/code/bugs.html
18+
[2]: https://narrowspark.com/docs/current/contributing/code/patches.html
19+
[3]: https://narrowspark.com/docs/current/contributing/code/core_team.html
20+
[4]: https://narrowspark.com/docs/current/contributing/code/security.html
21+
[5]: https://narrowspark.com/docs/current/contributing/code/tests.html
22+
[6]: https://narrowspark.com/docs/current/contributing/code/bc.html
23+
[7]: https://narrowspark.com/docs/current/contributing/code/standards.html
24+
[8]: https://narrowspark.com/docs/current/contributing/code/conventions.html

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: prisis
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: 🐛 Bug Report
3+
about: If something isn't working as expected.
4+
labels: Type: Bug
5+
6+
---
7+
8+
<!--
9+
The Code of Conduct (../CODE_OF_CONDUCT.md) applies to all the activity on this repository.
10+
-->
11+
12+
**Narrowspark version(s) affected**: x.y.z
13+
14+
**Description**
15+
<!-- A clear and concise description of the problem. -->
16+
17+
**How to reproduce**
18+
<!--- Code and/or config needed to reproduce the problem. -->
19+
20+
**Possible Solution**
21+
<!-- Optional: only if you have suggestions on a fix/reason for the bug -->
22+
23+
**Additional context**
24+
<!-- Optional: any other context about the problem: log messages, screenshots, etc. -->
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: 📚 Documentation Issue
3+
about: Anything related to Narrowspark package documentation
4+
5+
---
6+
7+
<!--
8+
The Code of Conduct (../CODE_OF_CONDUCT.md) applies to all the activity on this repository.
9+
-->

0 commit comments

Comments
 (0)