Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.0.0 #1

Merged
merged 216 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
216 commits
Select commit Hold shift + click to select a range
9ea4411
Init Lumen framework
Nov 24, 2023
09a20e3
Updated README.md
Nov 24, 2023
cfaa859
Added docker-compose
Nov 24, 2023
4cf6945
Added health check
Nov 24, 2023
d4db625
Added PhoneController
Nov 24, 2023
dbb2711
Added SearchService
Nov 24, 2023
fff5416
Updated SearchService
Nov 24, 2023
14494aa
Added redis cache
Dec 12, 2023
c311bd3
Added cached response
Dec 12, 2023
ce7a0d4
Updated response
Dec 12, 2023
017c7dc
Addede KZ and Test SearchProviders
Dec 12, 2023
4909429
Updated KZSearchProvider
Dec 12, 2023
c510282
Added some tests
Dec 12, 2023
2ef4f78
Minor fixes
Dec 12, 2023
c24a9bc
Add AbstractSearchProvider
Dec 13, 2023
ec4f33f
Updated tests
Dec 13, 2023
28e37bf
Updated Makefile
Dec 13, 2023
6877088
Minor fix
Dec 13, 2023
3d9c5c2
Added TDSearchProviderTest
Dec 13, 2023
d1ae713
Added enabled switcher
Dec 13, 2023
4e0e609
Updated enabled switcher
Dec 13, 2023
6586af7
Minor fix
PetrenkoAnton Dec 13, 2023
953b912
Added apidoc
PetrenkoAnton Dec 13, 2023
45fc9ea
Added apidoc
PetrenkoAnton Dec 13, 2023
f0d5b75
Added basic validation
PetrenkoAnton Dec 13, 2023
5e790c2
Added PhoneNumberValidator
PetrenkoAnton Dec 14, 2023
b8696c6
Added PhoneNumberValidator tests
PetrenkoAnton Dec 14, 2023
a9945cf
Added UrlFormatter tests
PetrenkoAnton Dec 14, 2023
082fef7
Added OutputPhoneNumberFormatterTest
PetrenkoAnton Dec 14, 2023
8253269
Added CommentFormatterInterface::ignore method
PetrenkoAnton Dec 15, 2023
e687ad1
Added temporary err hanlder
PetrenkoAnton Dec 15, 2023
143dd38
Updated TDCommentFormatter
PetrenkoAnton Dec 15, 2023
a7c1ed4
Updated TDCommentFormatter
PetrenkoAnton Dec 15, 2023
b77bb1d
Minor fix
PetrenkoAnton Dec 15, 2023
8d65e44
Added CISearchProvider
PetrenkoAnton Dec 15, 2023
b656375
Minor fixes
PetrenkoAnton Dec 15, 2023
79b0ae0
Minor fixes
PetrenkoAnton Dec 15, 2023
ecb05cd
Refactoring
PetrenkoAnton Dec 15, 2023
793ffc3
Refactoring
PetrenkoAnton Dec 15, 2023
6e1501e
Refactoring
PetrenkoAnton Dec 15, 2023
7632ef6
Fixes via php-cs-fixer
PetrenkoAnton Dec 16, 2023
4f4e8eb
Fixes via php-cs-fixer
PetrenkoAnton Dec 16, 2023
c4a59ea
Added CISearchProviderTest
PetrenkoAnton Dec 16, 2023
14644cd
Minor fixes
PetrenkoAnton Dec 16, 2023
37cda3f
Refactoring
PetrenkoAnton Dec 16, 2023
6f5a85d
Added UserAgentInterface
PetrenkoAnton Dec 17, 2023
70f2971
Updated AbstractProvider
PetrenkoAnton Dec 17, 2023
fc74a96
Added AbstractProviderTest
PetrenkoAnton Dec 18, 2023
6d6084c
Some fixes
PetrenkoAnton Dec 18, 2023
041af61
Some fixes
PetrenkoAnton Dec 18, 2023
3c449d3
Added KCProvider
PetrenkoAnton Dec 18, 2023
51132f9
Added KCProviderTest
PetrenkoAnton Dec 18, 2023
6823e4b
Added Parser tests
PetrenkoAnton Dec 18, 2023
843230e
Some fixes
PetrenkoAnton Dec 18, 2023
8d3d297
Added CFIgnoreComment
PetrenkoAnton Dec 18, 2023
240096b
Minor fix
PetrenkoAnton Dec 18, 2023
0827289
Updated README
PetrenkoAnton Dec 18, 2023
3c6952b
Minor fix
PetrenkoAnton Dec 19, 2023
b81aa50
Added strategies
PetrenkoAnton Dec 19, 2023
9be7246
Updated tests
PetrenkoAnton Dec 19, 2023
f3ade65
Some fixes
PetrenkoAnton Dec 19, 2023
5d0e4ee
Updated tests
PetrenkoAnton Dec 20, 2023
78bb96f
Updated tests
PetrenkoAnton Dec 20, 2023
8383b44
Refactoring
PetrenkoAnton Dec 20, 2023
35bf52d
Added CommentsService
PetrenkoAnton Dec 20, 2023
f176dba
Added getUrl method
PetrenkoAnton Dec 20, 2023
a0ecf57
Updated README
PetrenkoAnton Dec 20, 2023
4292723
Updated Makefile
PetrenkoAnton Dec 20, 2023
494887a
Minor fixes
PetrenkoAnton Dec 21, 2023
8af28ec
Added redis extension
PetrenkoAnton Dec 25, 2023
774381c
Revert "Added redis extension"
PetrenkoAnton Dec 25, 2023
846cddb
Revert "Minor fixes"
PetrenkoAnton Dec 25, 2023
270a916
Added redis extension (updated)
PetrenkoAnton Dec 25, 2023
6f5bac1
Updated Makefile
PetrenkoAnton Dec 25, 2023
2eb27a5
Updated Makefile
PetrenkoAnton Dec 25, 2023
4170e58
Added InfoService
PetrenkoAnton Dec 28, 2023
d698532
Added Http tests
PetrenkoAnton Dec 28, 2023
19111f0
Added petrenkoanton/php-collection package
PetrenkoAnton Jan 11, 2024
a47ae5c
Added phpcs and psalm configs
PetrenkoAnton Jan 25, 2024
b56d007
Updated docker services
PetrenkoAnton Jan 25, 2024
b14c91b
Updated README
PetrenkoAnton Jan 25, 2024
1236174
Updated README
PetrenkoAnton Jan 25, 2024
8c2b79c
Updated README
PetrenkoAnton Jan 25, 2024
154871e
Updated composer dependencies
PetrenkoAnton Jan 25, 2024
084bb22
Updated docker-compose + xdebug
PetrenkoAnton Jan 25, 2024
47ed842
Added PHPStan
PetrenkoAnton Jan 26, 2024
086b3b6
Updated README
PetrenkoAnton Jan 26, 2024
71ad23a
Some fixes
PetrenkoAnton Jan 26, 2024
76689db
PHPStan level 0
PetrenkoAnton Jan 26, 2024
7ac8f12
PHPStan level 2
PetrenkoAnton Jan 26, 2024
7b91a35
PHPStan level 5
PetrenkoAnton Jan 26, 2024
59f8d09
PHPStan level 6 (in progress)
PetrenkoAnton Jan 26, 2024
7970b0a
PHPStan level 6
PetrenkoAnton Jan 27, 2024
812db0b
PHPStan level 7
PetrenkoAnton Jan 27, 2024
c4059ee
PHPStan level 8
PetrenkoAnton Jan 27, 2024
84fd8c5
Updated .gitignore
PetrenkoAnton Jan 27, 2024
3662ca4
Temporary commit
PetrenkoAnton Jan 28, 2024
4bfd43a
Temporary commit
PetrenkoAnton Jan 28, 2024
fb309b9
Added Acceptance ProviderTest
PetrenkoAnton Jan 28, 2024
e9d7f13
Added Api tests (Codeception)
PetrenkoAnton Jan 29, 2024
e726ab1
Deleted doc assets
PetrenkoAnton Jan 29, 2024
83b5502
Updated DefaultUserAgent
PetrenkoAnton Jan 30, 2024
0ba2696
Updated ProviderCollectionTest
PetrenkoAnton Jan 30, 2024
0487573
phpcs
PetrenkoAnton Feb 6, 2024
c8b32e0
phpcs
PetrenkoAnton Feb 6, 2024
3713ad7
phpcs
PetrenkoAnton Feb 6, 2024
f591c64
phpcs
PetrenkoAnton Feb 6, 2024
9f6d0d7
Wed Feb 7 20:18:45 EET 2024
PetrenkoAnton Feb 7, 2024
286833e
Wed Feb 7 20:22:53 EET 2024
PetrenkoAnton Feb 7, 2024
5dc6a87
code coverage fixes
PetrenkoAnton Feb 8, 2024
72cb232
code coverage fixes
PetrenkoAnton Feb 8, 2024
5c31113
code coverage fixes
PetrenkoAnton Feb 8, 2024
a67a4cc
code coverage fixes
PetrenkoAnton Feb 10, 2024
31ccd1a
Updated github actions
PetrenkoAnton Feb 10, 2024
1c79676
Updated github actions
PetrenkoAnton Feb 10, 2024
470ca33
Updated github actions
PetrenkoAnton Feb 10, 2024
2f23b7c
Updated github actions
PetrenkoAnton Feb 10, 2024
d0e17f8
Updated github actions
PetrenkoAnton Feb 10, 2024
35f7ee4
Updated github actions
PetrenkoAnton Feb 10, 2024
0e0529b
Updated github actions
PetrenkoAnton Feb 11, 2024
ab3d75e
Updated github actions
PetrenkoAnton Feb 11, 2024
1858596
Updated github actions
PetrenkoAnton Feb 11, 2024
12c2cfd
Updated github actions
PetrenkoAnton Feb 11, 2024
8cb7fcb
Updated github actions
PetrenkoAnton Feb 11, 2024
f4e1dc2
Updated github actions
PetrenkoAnton Feb 11, 2024
866a59a
Updated github actions
PetrenkoAnton Feb 11, 2024
393663c
Updated github actions
PetrenkoAnton Feb 11, 2024
bcf2194
Updated github actions
PetrenkoAnton Feb 11, 2024
3b6dd13
Updated github actions
PetrenkoAnton Feb 11, 2024
cbd87a5
Updated github actions
PetrenkoAnton Feb 11, 2024
91ee2ed
Updated github actions
PetrenkoAnton Feb 11, 2024
2f233b8
Updated github actions
PetrenkoAnton Feb 11, 2024
0ecb4a9
Updated github actions
PetrenkoAnton Feb 11, 2024
b760baa
Updated github actions
PetrenkoAnton Feb 11, 2024
5e86e98
Updated github actions
PetrenkoAnton Feb 11, 2024
b32f2bb
Updated github actions
PetrenkoAnton Feb 11, 2024
b6b509d
Updated github actions
PetrenkoAnton Feb 11, 2024
0a68fd9
Updated github actions
PetrenkoAnton Feb 11, 2024
458ffe8
Updated github actions
PetrenkoAnton Feb 11, 2024
6d577cc
Updated github actions
PetrenkoAnton Feb 11, 2024
f39a36a
Updated github actions
PetrenkoAnton Feb 11, 2024
6590d60
Updated github actions
PetrenkoAnton Feb 11, 2024
cd4351d
Updated github actions
PetrenkoAnton Feb 11, 2024
4058311
Updated github actions
PetrenkoAnton Feb 11, 2024
b8c3e02
Updated github actions
PetrenkoAnton Feb 11, 2024
7493740
Updated github actions
PetrenkoAnton Feb 11, 2024
7d962e6
Updated github actions
PetrenkoAnton Feb 11, 2024
966b575
Updated github actions
PetrenkoAnton Feb 11, 2024
708beb2
Updated github actions
PetrenkoAnton Feb 11, 2024
210b38c
PHPStan
PetrenkoAnton Feb 11, 2024
da5c811
Codeception
PetrenkoAnton Feb 11, 2024
9734b98
Codeception
PetrenkoAnton Feb 11, 2024
b4fd09a
Codeception
PetrenkoAnton Feb 11, 2024
9e4ccd4
Codeception
PetrenkoAnton Feb 11, 2024
f4af06e
Codeception
PetrenkoAnton Feb 11, 2024
6f5eb70
Codeception
PetrenkoAnton Feb 11, 2024
d487718
Codeception
PetrenkoAnton Feb 11, 2024
7c20947
Codeception
PetrenkoAnton Feb 11, 2024
24c5605
Codeception
PetrenkoAnton Feb 11, 2024
1a913c5
Codeception
PetrenkoAnton Feb 12, 2024
efe57f2
Codeception
PetrenkoAnton Feb 12, 2024
7d5c2a8
Codeception
PetrenkoAnton Feb 12, 2024
aa9be5f
Codeception
PetrenkoAnton Feb 12, 2024
b4e772f
Codeception
PetrenkoAnton Feb 12, 2024
b169865
Codeception
PetrenkoAnton Feb 12, 2024
60b4b3d
Codeception
PetrenkoAnton Feb 12, 2024
ddacd2f
Codeception
PetrenkoAnton Feb 12, 2024
916d09c
Codeception
PetrenkoAnton Feb 12, 2024
3414b91
Codeception
PetrenkoAnton Feb 12, 2024
649777a
Codeception
PetrenkoAnton Feb 12, 2024
273d607
Codeception
PetrenkoAnton Feb 12, 2024
b633f60
github actions
PetrenkoAnton Feb 12, 2024
d2abd2b
github actions
PetrenkoAnton Feb 12, 2024
90f64fa
phpstan
PetrenkoAnton Feb 12, 2024
9961637
Some fixes
PetrenkoAnton Feb 12, 2024
3284862
Added SearchServiceTest
PetrenkoAnton Feb 14, 2024
55038c2
Updated tests
PetrenkoAnton Feb 14, 2024
583f066
Updated tests
PetrenkoAnton Feb 14, 2024
df38a40
Updated tests
PetrenkoAnton Feb 14, 2024
65ece70
Updated tests
PetrenkoAnton Feb 14, 2024
5bc74f4
temp commit
PetrenkoAnton Feb 14, 2024
7641653
temp commit
PetrenkoAnton Feb 14, 2024
3837738
Updated Handler
PetrenkoAnton Feb 15, 2024
d33e8a8
Some fixes
PetrenkoAnton Feb 18, 2024
b5fce8e
Some fixes
PetrenkoAnton Feb 18, 2024
9fdc226
Some fixes
PetrenkoAnton Feb 18, 2024
ac858e0
Some fixes
PetrenkoAnton Feb 18, 2024
0d5e7c8
Fixed coding-style.yml
PetrenkoAnton Feb 18, 2024
275e2dc
Fixed coding-style.yml
PetrenkoAnton Feb 18, 2024
9a644bf
Added HealthCheckDto(Factory)
PetrenkoAnton Feb 18, 2024
44a1d1a
Added HealthCheckDtoFactoryTest [ci skip]
PetrenkoAnton Feb 20, 2024
1d2546d
Added InfoDto(Factory) + tests
PetrenkoAnton Feb 20, 2024
d77455d
Temp commit
PetrenkoAnton Feb 20, 2024
a3c4fcb
wip
PetrenkoAnton Feb 22, 2024
e0fcd4a
wip
PetrenkoAnton Feb 22, 2024
cbdf3d9
wip
PetrenkoAnton Feb 22, 2024
207fdae
wip
PetrenkoAnton Feb 22, 2024
a9d3660
wic
PetrenkoAnton Feb 23, 2024
8b4ddba
Updated apidoc
PetrenkoAnton Feb 23, 2024
301ea74
phpcs
PetrenkoAnton Feb 23, 2024
7d89740
phpstan
PetrenkoAnton Feb 23, 2024
0108914
Added KeyGenerateCommand
PetrenkoAnton Feb 25, 2024
f6d012c
Updated Makefile
PetrenkoAnton Feb 25, 2024
99f138f
Updated README
PetrenkoAnton Feb 25, 2024
e65989f
Updated README
PetrenkoAnton Feb 25, 2024
4fdf140
Updated README
PetrenkoAnton Feb 25, 2024
9b196c5
Minor fixes
PetrenkoAnton Feb 25, 2024
182073b
Minor fixes
PetrenkoAnton Feb 25, 2024
52defbc
Updated README
PetrenkoAnton Feb 25, 2024
16ce2fd
Updated README
PetrenkoAnton Feb 25, 2024
5fc0862
Updated README
PetrenkoAnton Feb 25, 2024
473d43a
Updated README
PetrenkoAnton Feb 25, 2024
0786698
Updated README
PetrenkoAnton Feb 25, 2024
ed4dcce
Updated README
PetrenkoAnton Feb 25, 2024
feca37c
Updated README
PetrenkoAnton Feb 26, 2024
ee27ea4
Updated README [ci skip]
PetrenkoAnton Feb 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .docker/services/nginx/default.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
server {
listen 80;
listen [::]:80;
server_name example.com;
root /app/public;

add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";

index index.php;

charset utf-8;

location / {
root /app/public;
try_files $uri $uri/ /index.php?$query_string;
}

location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }

error_page 404 /index.php;

location ~ \.php$ {
fastcgi_pass php:9000;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}

location ~ /\.(?!well-known).* {
deny all;
}
}
41 changes: 41 additions & 0 deletions .docker/services/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
FROM php:8.3-fpm

ARG user=a
ARG uid=1000

# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
libpng-dev \
libonig-dev \
libxml2-dev \
libzip-dev \
zip \
libcurl4-openssl-dev \
pkg-config \
libssl-dev \
unzip \
gnupg \
wget

# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*

# Install PHP extensions
RUN pecl install xdebug && docker-php-ext-enable xdebug
RUN pecl install redis && docker-php-ext-enable redis
RUN docker-php-ext-install pdo pdo_mysql zip mbstring intl sockets bcmath opcache

# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

# Create system user to run Composer
RUN useradd -G www-data,root -u $uid -d /home/$user $user
RUN mkdir -p /home/$user/.composer && \
chown -R $user:$user /home/$user

# Set working directory
WORKDIR /app

USER $user
1 change: 1 addition & 0 deletions .docker/services/php/ini/error_reporting.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
error_reporting=E_ALL
13 changes: 13 additions & 0 deletions .docker/services/php/ini/opcache.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
zend_extension=opcache

[opcache]
opcache.enable=1
; 0 means it will check on every request
; 0 is irrelevant if opcache.validate_timestamps=0 which is desirable in production
opcache.revalidate_freq=0
opcache.validate_timestamps=1
opcache.max_accelerated_files=10000
opcache.memory_consumption=192
opcache.max_wasted_percentage=10
opcache.interned_strings_buffer=16
opcache.fast_shutdown=1
7 changes: 7 additions & 0 deletions .docker/services/php/ini/xdebug.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
zend_extension=xdebug

[xdebug]
xdebug.discover_client_host=true
xdebug.max_nesting_level=250
xdebug.mode=coverage,debug
xdebug.log_level=0
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.git
.docker
.dockerignore
docker-compose.yml
.idea
.phpunit.result.cache
Makefile
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2
41 changes: 41 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
APP_NAME=wic_api
APP_ENV=local
APP_KEY=
APP_DEBUG=0
APP_URL=http://localhost
APP_PORT=8080
APP_TIMEZONE=UTC

XDEBUG_SESSION=PHPSTORM
XDEBUG_IDE_KEY=PHPSTORM
XDEBUG_SERVER_NAME=localhost
XDEBUG_CLIENT_HOST=host.docker.internal
XDEBUG_START_WITH_REQUEST=trigger # yes | no | trigger

LOG_CHANNEL=stack

CACHE_DRIVER=redis

# Depends on APP_NAME value
# {APP_NAME}_redis
REDIS_HOST=wic_api_redis
REDIS_PORT=6379
REDIS_PASSWORD=password

QUEUE_CONNECTION=sync

USE_RANDOM_USER_AGENT=1
DEFAULT_USER_AGENT='Mozilla/5.0 (Linux; Android 13; SM-G998B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36'

# callfilter.app
CF_PROVIDER=1
# callinsider.com.ua
CI_PROVIDER=1
# kto-zvonil.com.ua
KC_PROVIDER=1
# ktozvonil.net
KZ_PROVIDER=1
# slick.ly
SL_PROVIDER=1
# telefonnyjdovidnyk.com.ua
TD_PROVIDER=1
17 changes: 17 additions & 0 deletions .env.github-actions-testing
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
APP_DEBUG=0

USE_RANDOM_USER_AGENT=1
DEFAULT_USER_AGENT='Mozilla/5.0 (Linux; Android 13; SM-G998B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36'

# callfilter.app
CF_PROVIDER=1
# callinsider.com.ua
CI_PROVIDER=1
# kto-zvonil.com.ua
KC_PROVIDER=1
# ktozvonil.net
KZ_PROVIDER=1
# slick.ly
SL_PROVIDER=1
# telefonnyjdovidnyk.com.ua
TD_PROVIDER=1
43 changes: 43 additions & 0 deletions .github/workflows/coding-style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: coding-style

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
coding-style:
name: PHPStan + PHP_CodeSniffer
runs-on: ubuntu-latest
continue-on-error: false
services:
redis:
image: redis:latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup php
uses: shivammathur/setup-php@v2
with:
php-version: 8.3

- name: Install dependencies
uses: ramsey/composer-install@v2

- name: Generate ApiTesterActions.php
run: |
vendor/bin/codecept build
composer dump-autoload

- name: PHPStan
run: ./vendor/bin/phpstan --no-progress --memory-limit=256M

- name: PHP_CodeSniffer
run: ./vendor/bin/phpcs --no-cache
49 changes: 49 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: tests

on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev

jobs:
tests:
name: PHPUnit + Code coverage
runs-on: ubuntu-latest
continue-on-error: false
services:
redis:
image: redis:latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup php
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
coverage: xdebug

- name: Install dependencies
uses: ramsey/composer-install@v2

- name: Init .env
run: cp .env.github-actions-testing .env

- name: PHPUnit + Code coverage
run: vendor/bin/phpunit --coverage-clover ./tests/_output/clover.xml

# - name: Coveralls.io
# env:
# COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# composer require php-coveralls/php-coveralls -n
# vendor/bin/php-coveralls --coverage_clover=./tests/_output/clover.xml -v --json_path=./tests/_output/coveralls-upload.json

- name: Codeception
run: vendor/bin/codecept run
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/.idea/
storage
.env
.phpunit.result.cache
.phpunit.cache
/tests/_output
!/tests/_output/.gitkeep
phpstan.neon
/vendor/
/storage/
!/storage/app/.gitkeep
!/storage/framework/cache/.gitkeep
!/storage/framework/views/.gitkeep
!/storage/logs/.gitkeep
!/.phpstorm.meta.php
/public/doc
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Anton Petrenko

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.
Loading