Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BeycanDeveloper committed Mar 23, 2024
0 parents commit b6e9d5a
Show file tree
Hide file tree
Showing 41 changed files with 2,923 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
38 changes: 38 additions & 0 deletions .github/workflows/create-auto-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Create auto release

on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
auto_release:
name: Auto release
permissions: write-all
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@master

- name: Check if release already exists
run: |
existing_release=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/releases/tags/${{ github.ref_name }} 2>&1)
if [[ $existing_release == *"Not Found"* ]]; then
echo "RELEASE_EXISTS=false" >> $GITHUB_ENV
else
echo "RELEASE_EXISTS=true" >> $GITHUB_ENV
fi
- name: Create Release
id: create_release
if: ${{ env.RELEASE_EXISTS == 'false' }}
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Version ${{ github.ref_name }}
body: Version ${{ github.ref_name }}
draft: false
prerelease: false
34 changes: 34 additions & 0 deletions .github/workflows/phpcs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: PHPCS Check

on:
push:
branches:
- master

jobs:
phpcs:
name: PHPCS Check
runs-on: ubuntu-latest

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

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'

- name: Install PHPCS
run: |
composer config --global --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer require --dev squizlabs/php_codesniffer=* slevomat/coding-standard
- name: Run PHPCS
run: |
composer phpcs --standard=phpcs.xml .
exit_status=$?
if [ $exit_status -ne 0 ]; then
echo "PHPCS check failed. Please fix the issues before merging."
exit 1
fi
15 changes: 15 additions & 0 deletions app/Loader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace BeycanPress\CryptoPay\NinjaForms;

class Loader
{
/**
* Loader constructor.
*/
public function __construct()
{
}
}
20 changes: 20 additions & 0 deletions app/Models/TransactionsLite.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

declare(strict_types=1);

namespace BeycanPress\CryptoPay\NinjaForms\Models;

use BeycanPress\CryptoPayLite\Models\AbstractTransaction;

class TransactionsLite extends AbstractTransaction
{
public string $addon = 'ninjaforms';

/**
* @return void
*/
public function __construct()
{
parent::__construct('ninjaforms_transaction');
}
}
20 changes: 20 additions & 0 deletions app/Models/TransactionsPro.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

declare(strict_types=1);

namespace BeycanPress\CryptoPay\NinjaForms\Models;

use BeycanPress\CryptoPay\Models\AbstractTransaction;

class TransactionsPro extends AbstractTransaction
{
public string $addon = 'ninjaforms';

/**
* @return void
*/
public function __construct()
{
parent::__construct('ninjaforms_transaction');
}
}
Binary file added assets/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/images/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added assets/js/main.js
Empty file.
15 changes: 15 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"scripts": {
"phpcs": "phpcs --standard=phpcs.xml .",
"phpcbf": "phpcbf --standard=phpcs.xml .",
"install-phpcs": "composer config --global --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true && composer global require --dev squizlabs/php_codesniffer=* slevomat/coding-standard"
},
"autoload": {
"psr-4": {
"BeycanPress\\CryptoPay\\NinjaForms\\": "app/"
}
},
"require": {
"beycanpress/cryptopay-integrator": "^0.1.10"
}
}
54 changes: 54 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php // @phpcs:ignore
// Silence is golden.
Empty file added languages/.gitkeep
Empty file.
Loading

0 comments on commit b6e9d5a

Please sign in to comment.