Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2da3ec1
First commit for new version of Jotform PHP API
burakdemirtas-jtf Oct 11, 2021
d1d3584
Updated condition and query preparing.
burakdemirtas-jtf Oct 15, 2021
a7100bf
Added API version into the base URL. Also, updated code format.
burakdemirtas-jtf Oct 25, 2021
9c2a170
Update filename
burakdemirtas-jtf Oct 27, 2021
0cee829
Updated README.
burakdemirtas-jtf Oct 27, 2021
0da9ea1
Merge branch 'v2' of https://github.com/burakdemirtas-jtf/jotform-api…
burakdemirtas-jtf Oct 27, 2021
04fdbd4
Update services and tests. Also, configured workflow.
burakdemirtas-jtf Nov 8, 2021
b3c20fc
Fix syntax styling
burakdemirtas-jtf Nov 8, 2021
36c8e91
Updated workflow
burakdemirtas-jtf Nov 8, 2021
fbe2251
Merge branch 'v2' of https://github.com/burakdemirtas-jtf/jotform-api…
burakdemirtas-jtf Nov 8, 2021
5880294
Fixed Stringable::__toString() compatible.
burakdemirtas-jtf Nov 8, 2021
0ebfd1b
Update README
burakdemirtas-jtf Nov 8, 2021
e84ae4d
First commit for new version of Jotform PHP API
burakdemirtas-jtf Oct 11, 2021
952bc84
Updated condition and query preparing.
burakdemirtas-jtf Oct 15, 2021
b3288c2
Added API version into the base URL. Also, updated code format.
burakdemirtas-jtf Oct 25, 2021
265a1e1
Update filename
burakdemirtas-jtf Oct 27, 2021
7d12578
Updated README.
burakdemirtas-jtf Oct 27, 2021
0e21977
Update services and tests. Also, configured workflow.
burakdemirtas-jtf Nov 8, 2021
512f400
Fix syntax styling
burakdemirtas-jtf Nov 8, 2021
5004316
Updated workflow
burakdemirtas-jtf Nov 8, 2021
c022d9c
Fixed Stringable::__toString() compatible.
burakdemirtas-jtf Nov 8, 2021
95766b3
Update README
burakdemirtas-jtf Nov 8, 2021
c918767
Fixed issue related with autoload class.
burakdemirtas-jtf Nov 12, 2021
b3582f5
Fixed some issues and updated readme.
burakdemirtas-jtf Jan 28, 2022
6d3ec35
Fixed issue and resolved conflicts.
burakdemirtas-jtf Jan 28, 2022
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
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
indent_size = 4
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: :jotform-api-php
3 changes: 3 additions & 0 deletions .github/SECURITY.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Security Policy

If you discover any security related issues, please email api@jotform.com instead of using the issue tracker.
23 changes: 23 additions & 0 deletions .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Check & fix styling

on: [push]

jobs:
php-cs-fixer:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Run PHP CS Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --config=.php-cs-fixer.dist.php --allow-risky=yes

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Fix syntax styling
39 changes: 39 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests

on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [7.3, 8.0]
stability: [prefer-stable]

name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
coverage: none

- name: Setup problem matchers
run: |
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction

- name: Execute tests
run: composer test
env:
JOTFORM_API_KEY: ${{ secrets.JOTFORM_API_KEY }}
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.idea
.vscode
.php_cs
.php_cs.cache
.phpunit.result.cache
build
composer.lock
coverage
docs
phpunit.xml
vendor
.php-cs-fixer.cache
39 changes: 39 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

$finder = Symfony\Component\Finder\Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);

return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'no_unused_imports' => true,
'not_operator_with_successor_space' => false,
'trailing_comma_in_multiline' => true,
'phpdoc_scalar' => true,
'unary_operator_spaces' => true,
'binary_operator_spaces' => true,
'blank_line_before_statement' => [
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
],
'phpdoc_single_line_var_spacing' => true,
'phpdoc_var_without_name' => true,
'class_attributes_separation' => [
'elements' => [
'method' => 'one',
],
],
'method_argument_space' => [
'on_multiline' => 'ensure_fully_multiline',
'keep_multiple_spaces_after_comma' => true,
],
'single_trait_insert_per_statement' => true,
])
->setFinder($finder);
Loading