Skip to content

Commit 46c9998

Browse files
authored
Merge pull request #1 from XternalSoft/feature/initial-release
feat(core)!: rename to xternalsoft/php-whois and bump to PHP 8.2
2 parents 7e518c8 + fa3d16e commit 46c9998

702 files changed

Lines changed: 32189 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM ubuntu:20.04
2+
3+
RUN export DEBIAN_FRONTEND=noninteractive \
4+
&& apt update \
5+
&& apt install -y php7.4-cli php7.4-dev php7.4-mbstring php7.4-curl php7.4-intl git zip unzip libicu-dev
6+
7+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
8+
9+
RUN mkdir -p /xdebug && git clone https://github.com/xdebug/xdebug.git --recursive --branch 3.1.0 /xdebug
10+
RUN cd /xdebug \
11+
&& phpize \
12+
&& ./configure --enable-xdebug \
13+
&& make \
14+
&& make install \
15+
&& echo 'zend_extension=xdebug' > /etc/php/7.4/cli/conf.d/99-xdebug.ini
16+
17+
RUN php -v
18+
19+
CMD ["sleep", "infinity"]

.devcontainer/devcontainer.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "php-whois-dev",
3+
"dockerComposeFile": "docker-compose.yml",
4+
"service": "php-whois-dev",
5+
"workspaceFolder": "/opt/project",
6+
"shutdownAction": "stopCompose",
7+
"customizations": {
8+
"vscode": {
9+
"extensions": [
10+
"xdebug.php-debug",
11+
"xdebug.php-pack"
12+
]
13+
}
14+
}
15+
}

.devcontainer/docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: '3.9'
2+
3+
services:
4+
php-whois-dev:
5+
build: .
6+
volumes:
7+
- ../:/opt/project
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: 🐛 Bug Report
3+
about: Report errors and problems
4+
---
5+
6+
**PHP-Whois version**: x.y.z
7+
8+
**PHP version**: x.y.z
9+
10+
**Description**
11+
<!-- A clear and concise description of the problem -->
12+
13+
**How to reproduce**
14+
<!-- Code and/or config needed to reproduce the problem -->
15+
16+
**Possible Solution**
17+
<!--- Optional: only if you have suggestions on a fix/reason for the bug -->
18+
19+
**Additional context**
20+
<!-- Optional: any other context about the problem: log messages, screenshots, etc. -->
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: 🚀 Feature Request
3+
about: RFC and ideas for new features and improvements
4+
---
5+
6+
**Description**
7+
<!-- A clear and concise description of the new feature -->
8+
9+
**Example**
10+
<!-- A simple example of the new feature in action (include PHP code, config, etc.)
11+
If the new feature changes an existing feature, include a simple before/after comparison -->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
| Q | A
2+
| ------------- | ---
3+
| Branch? | master
4+
| Bug fix? | yes/no
5+
| New feature? | yes/no <!-- please add use-case examples to README.md -->
6+
| BC breaks? | no
7+
| Deprecations? | yes/no
8+
| Tests pass? | yes <!-- please add some, will be required by reviewers -->
9+
| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->
10+
| License | MIT
11+
12+
<!--
13+
Write a short README entry for your feature/bugfix here (replace this comment block.)
14+
This will help to understand your PR.
15+
-->

.github/workflows/tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on: [push, pull_request]
2+
3+
env:
4+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
5+
6+
jobs:
7+
8+
php-intl:
9+
runs-on: ubuntu-24.04
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
php-version: ['8.2', '8.3', '8.4', '8.5']
14+
15+
steps:
16+
- uses: actions/checkout@v6
17+
with:
18+
fetch-depth: 1
19+
20+
- name: Setup PHP
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: ${{ matrix.php-version }}
24+
extensions: curl, mbstring, json, intl
25+
26+
- run: php -v
27+
- run: php -m
28+
- run: composer -V
29+
- run: composer install
30+
- run: vendor/bin/phpunit --bootstrap tests/bootstrap.php tests

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/.idea/
2+
/.local/
3+
/vendor/
4+
5+
docker-compose.local.yml
6+
composer.lock

CODE_OF_CONDUCT.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of the project, we pledge to respect everyone who contributes by posting issues, updating documentation, submitting pull requests, providing feedback in comments, and any other activities.
4+
5+
Communication must be constructive and never resort to personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
6+
7+
If any member of the community violates this code of conduct, the maintainers of the project may take action, removing issues, comments, and PRs or blocking accounts as deemed appropriate.

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
ARG IMAGE
2+
FROM ${IMAGE}
3+
4+
# packages
5+
ARG PACKAGES
6+
RUN if [ "${PACKAGES}" ]; then apk update && apk add -f ${PACKAGES}; fi
7+
8+
# php modules
9+
ARG PHPMODS
10+
RUN if [ "${PHPMODS}" ]; then docker-php-ext-install ${PHPMODS}; fi
11+
12+
# composer
13+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
14+
15+
VOLUME /workdir
16+
WORKDIR /workdir
17+
18+
COPY "./run-tests.sh" "/run-tests.sh"
19+
RUN chmod +x "/run-tests.sh"
20+
21+
ENTRYPOINT []

0 commit comments

Comments
 (0)