Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
118 changes: 118 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# Custom added rules
/bin/

# Created by https://www.toptal.com/developers/gitignore/api/composer,phpunit,phpstorm+all
# Edit at https://www.toptal.com/developers/gitignore?templates=composer,phpunit,phpstorm+all

### Composer ###
composer.phar
/vendor/

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock

### PhpStorm+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

### PhpStorm+all Patch ###
# Ignore everything but code style settings and run configurations
# that are supposed to be shared within teams.

.idea/*

!.idea/codeStyles
!.idea/runConfigurations

### PHPUnit ###
# Covers PHPUnit
# Reference: https://phpunit.de/

# Generated files
.phpunit.result.cache
.phpunit.cache

# PHPUnit
/app/phpunit.xml
/phpunit.xml

# Build data
/build/

# End of https://www.toptal.com/developers/gitignore/api/composer,phpunit,phpstorm+all
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
<img src="https://www.pay.nl/uploads/1/brands/main_logo.png" width="100px" style="margin-bottom: -30px"/> <h1 style="position:relative;top:-6px;padding-left:10px;display: inline-block">PHP SDK</h1>

<div style="display:flex;align-items:center;gap:20px;">
<img src="https://www.pay.nl/uploads/1/brands/main_logo.png" alt="Pay NL SDK" width="100px"/>
<h1 style="margin: 0;padding: 0;">PHP SDK</h1>
</div>

Use this SDK to implement Pay. into your PHP integration.
<br>

#### Requirements

> PHP 7.4 or PHP 8+
> PHP 8.3+
JSON extension installed
CURL extension installed
<br>

#### Installation

If requirements are met, go ahead with the [installation and set-up](https://github.com/paynl/php-sdk/wiki/Install) of the SDK!

<br>
#### Usage

To get you started, you should check these [Samples](https://github.com/paynl/SDK-PHP/blob/main/samples).

<br>

#### Documentation

For more detailed information, have a look at the [Wiki](https://github.com/paynl/php-sdk/wiki/) page.
26 changes: 12 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"version": "0.1.0",
"type": "library",
"require": {
"php": "^7.4|^8.0",
"php": "^8.3",
"ext-curl": "*",
"ext-json": "*",
"psr/container": "^1.0",
"psr/http-message": "~1.0"
"psr/container": "^2",
"psr/http-message": "^2"
},
"license": "MIT",
"support": {
Expand All @@ -22,13 +22,13 @@
],
"require-dev": {
"ext-simplexml": "*",
"guzzlehttp/guzzle": "^6.3",
"phpmd/phpmd": "^2.7",
"phpstan/phpstan": "1.10.4",
"phpunit/phpunit": "^10",
"guzzlehttp/guzzle": "^7",
"phpmd/phpmd": "^2",
"phpstan/phpstan": "^2",
"phpunit/phpunit": "^11",
"roave/security-advisories": "dev-master",
"squizlabs/php_codesniffer": "^3.4",
"symfony/var-dumper": "^4.3"
"squizlabs/php_codesniffer": "^3",
"symfony/var-dumper": "^7"
},
"autoload": {
"psr-4": {
Expand All @@ -50,8 +50,6 @@
"repositories": [
],
"config": {
"bin-dir": "bin",
"secure-http": false,
"optimize-autoloader": true,
"sort-packages": true,
"discard-changes": true
Expand All @@ -65,9 +63,9 @@
"@phpmd",
"@phpcs"
],
"phpstan": "bin/phpstan analyse",
"phpmd": "bin/phpmd src,samples text phpmd.xml",
"phpcs": "bin/phpcs"
"phpstan": "vendor/bin/phpstan analyse",
"phpmd": "vendor/bin/phpmd src,samples text phpmd.xml",
"phpcs": "vendor/bin/phpcs"
},
"archive": {
"exclude": [
Expand Down
Loading