Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Commit fb1ddfb

Browse files
committed
first release
1 parent 2f76304 commit fb1ddfb

File tree

80 files changed

+10988
-9
lines changed

Some content is hidden

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

80 files changed

+10988
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/vendor
2+
.phpunit.result.cache

.php-cs-fixer.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
3+
// https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/doc/rules/index.rst
4+
return (new PhpCsFixer\Config())
5+
->setRules([
6+
'@PSR12'=> true,
7+
'array_indentation'=> true,
8+
'array_syntax'=> [
9+
'syntax'=> 'short',
10+
],
11+
'concat_space'=> [
12+
'spacing'=> 'one',
13+
],
14+
'function_typehint_space'=> true,
15+
'method_argument_space' => [
16+
'on_multiline' => 'ignore',
17+
// 'on_multiline' => 'ensure_single_line',
18+
'keep_multiple_spaces_after_comma' => false,
19+
],
20+
'method_chaining_indentation'=> true,
21+
'native_function_casing'=> true,
22+
'native_function_type_declaration_casing'=> true,
23+
'no_empty_statement'=> true,
24+
'no_leading_namespace_whitespace'=> true,
25+
'no_singleline_whitespace_before_semicolons'=> true,
26+
'no_trailing_comma_in_singleline_array'=> true,
27+
'no_unused_imports'=> true,
28+
'no_whitespace_before_comma_in_array'=> true,
29+
'object_operator_without_whitespace'=> true,
30+
'ordered_imports' => [
31+
'sort_algorithm' => 'alpha',
32+
'imports_order' => null,
33+
],
34+
'single_blank_line_before_namespace'=> true,
35+
'single_quote'=> true,
36+
'standardize_not_equals'=> true,
37+
'ternary_operator_spaces'=> true,
38+
'trailing_comma_in_multiline'=> [
39+
'elements'=> [
40+
'arrays',
41+
],
42+
],
43+
'unary_operator_spaces'=> true,
44+
'whitespace_after_comma_in_array'=> true,
45+
])
46+
->setLineEnding("\n");

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Work in progress, don't use for production!!

composer.json

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,56 @@
11
{
2+
"version": "0.0.2",
23
"name": "gradints/laravel-midtrans",
4+
"description": "Integrate Midtrans payment gateway to Laravel project.",
5+
"keywords": [
6+
"midtrans",
7+
"laravel",
8+
"payment-gateway"
9+
],
310
"type": "library",
411
"license": "MIT",
12+
"homepage": "https://github.com/gradints/laravel-midtrans",
13+
"authors": [
14+
{
15+
"name": "Christhofer",
16+
"email": "[email protected]"
17+
},
18+
{
19+
"name": "Rizky",
20+
"email": "[email protected]"
21+
}
22+
],
523
"autoload": {
624
"psr-4": {
725
"Gradints\\LaravelMidtrans\\": "src/"
826
}
927
},
10-
"authors": [
11-
{
12-
"name": "Gradin Tech Solution"
28+
"autoload-dev": {
29+
"psr-4": {
30+
"Tests\\": "tests/"
1331
}
14-
],
15-
"minimum-stability": "stable"
32+
},
33+
"minimum-stability": "stable",
34+
"require-dev": {
35+
"phpunit/phpunit": "^9.5",
36+
"orchestra/testbench": "^7.4"
37+
},
38+
"require": {
39+
"php": ">8.1",
40+
"illuminate/support": ">9",
41+
"midtrans/midtrans-php": "^2"
42+
},
43+
"extra": {
44+
"laravel": {
45+
"providers": [
46+
"Gradints\\LaravelMidtrans\\MidtransServiceProvider"
47+
],
48+
"aliases": {
49+
"Midtrans": "Gradints\\LaravelMidtrans\\MidtransFacade"
50+
}
51+
}
52+
},
53+
"scripts": {
54+
"test": "vendor/bin/phpunit"
55+
}
1656
}

0 commit comments

Comments
 (0)