Skip to content

Commit f26028c

Browse files
author
Orkuncakilkaya
committed
feat(minor): initial version
0 parents  commit f26028c

Some content is hidden

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

75 files changed

+20807
-0
lines changed

.env.example

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FP_PRIVATE_API_KEY=<your private api key comes here>
2+
FP_API_HOST=https://api.fpjs.io

.github/resources/logo_dark.svg

+1
Loading

.github/resources/logo_light.svg

+1
Loading

.github/workflows/release.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
tests:
9+
name: "PHP ${{ matrix.php_version }}"
10+
runs-on: "ubuntu-latest"
11+
12+
strategy:
13+
matrix:
14+
php_version: [ "7.3", "7.4", "8.0", "8.1" ]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
php-version: "${{ matrix.php_version }}"
22+
coverage: none
23+
tools: composer:v2
24+
- name: Install Dependencies
25+
run: composer install -q --profile --ignore-platform-reqs --no-interaction --no-ansi --no-scripts --no-suggest --prefer-dist
26+
- uses: php-actions/phpunit@v3
27+
with:
28+
php_version: "${{ matrix.php_version }}"
29+
bootstrap: vendor/autoload.php
30+
configuration: phpunit.xml.dist
31+
args: --coverage-text
32+
release:
33+
name: Release Version
34+
runs-on: "ubuntu-latest"
35+
needs: tests
36+
37+
steps:
38+
- name: Checkout
39+
uses: actions/checkout@v2
40+
with:
41+
fetch-depth: 0
42+
- name: SemVer
43+
id: semver
44+
uses: paulhatch/semantic-version@v4.0.2
45+
with:
46+
tag_prefix: "v"
47+
bump_each_commit: false
48+
format: "${major}.${minor}.${patch}"
49+
- name: Generate Code
50+
shell: bash
51+
run: ./scripts/generate.sh -v ${{ steps.semver.outputs.version }}
52+
- name: Create commits
53+
uses: stefanzweifel/git-auto-commit-action@v4
54+
with:
55+
commit_message: Bump version to ${{ steps.semver.outputs.version }}
56+
skip_fetch: true
57+
- name: Create Release
58+
id: release
59+
uses: actions/create-release@v1
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
with:
63+
tag_name: v${{ steps.semver.outputs.version }}
64+
release_name: Release ${{ steps.semver.outputs.version }}
65+
draft: false
66+
prerelease: false

.github/workflows/test.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
8+
jobs:
9+
tests:
10+
name: "PHP ${{ matrix.php_version }}"
11+
runs-on: "ubuntu-latest"
12+
13+
strategy:
14+
matrix:
15+
php_version: [ "7.3", "7.4", "8.0", "8.1" ]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: "${{ matrix.php_version }}"
23+
coverage: none
24+
tools: composer:v2
25+
- name: Install Dependencies
26+
run: composer install -q --profile --ignore-platform-reqs --no-interaction --no-ansi --no-scripts --no-suggest --prefer-dist
27+
- uses: php-actions/phpunit@v3
28+
with:
29+
php_version: "${{ matrix.php_version }}"
30+
bootstrap: vendor/autoload.php
31+
configuration: phpunit.xml.dist
32+
args: --coverage-text

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.idea
2+
/vendor/
3+
/.cache
4+
.phpunit.result.cache
5+
.DS_Store
6+
.vscode
7+
.env

.swagger-codegen-ignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.gitignore

.swagger-codegen/VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.34

CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @orkuncakilkaya

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 FingerprintJS
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)