Skip to content

Commit eaca5d2

Browse files
Init commit
0 parents  commit eaca5d2

14 files changed

+233
-0
lines changed

Diff for: .editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
indent_size = 4
9+
indent_style = space
10+
end_of_line = lf
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

Diff for: .gitattributes

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Path-based git attributes
2+
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
4+
# Ignore all test and documentation with "export-ignore".
5+
/.gitattributes export-ignore
6+
/.gitignore export-ignore
7+
/.travis.yml export-ignore
8+
/phpunit.xml.dist export-ignore
9+
/.scrutinizer.yml export-ignore
10+
/.styleci.yml export-ignore
11+
/docs export-ignore
12+
/tests export-ignore
13+
/.editorconfig export-ignore

Diff for: .gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.DS_Store
2+
.buildpath
3+
.project
4+
.settings
5+
.phpunit.result.cache
6+
.idea
7+
build
8+
composer.lock
9+
composer.phar
10+
nbproject
11+
vendor
12+
phpunit.phar
13+
phpunit.xml
14+
Thumbs.db

Diff for: .scrutinizer.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
filter:
2+
excluded_paths: [tests/*]
3+
4+
checks:
5+
php:
6+
remove_extra_empty_lines: true
7+
remove_php_closing_tag: true
8+
remove_trailing_whitespace: true
9+
fix_use_statements:
10+
remove_unused: true
11+
preserve_multiple: false
12+
preserve_blanklines: true
13+
order_alphabetically: true
14+
fix_php_opening_tag: true
15+
fix_linefeed: true
16+
fix_line_ending: true
17+
fix_identation_4spaces: true
18+
fix_doc_comments: true
19+

Diff for: .styleci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
preset: laravel
2+
3+
disabled:
4+
- single_class_element_per_statement
5+
6+
finder:
7+
not-path:
8+
- "tests/ClassWithSyntaxError.php"

Diff for: .travis.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: php
2+
3+
php:
4+
- 7.1
5+
- 7.2
6+
- 7.3
7+
8+
install:
9+
- composer self-update
10+
- composer install
11+
12+
before_script:
13+
- travis_retry composer self-update
14+
- travis_retry composer install --no-interaction --prefer-source --dev
15+
16+
script:
17+
- vendor/bin/phpunit --testdox --coverage-text --coverage-clover=coverage.clover
18+
19+
after_script:
20+
- vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover

Diff for: CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
Tất cả lịch sử tiến trình phát triển thư viện

Diff for: LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) PHP Viet
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
13+
all 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
21+
THE SOFTWARE.

Diff for: README.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<p align="center">
2+
<a href="https://momo.vn" target="_blank">
3+
<img src="https://raw.githubusercontent.com/phpviet/omnipay-onepay/master/resources/logo.png" height="100px">
4+
</a>
5+
<h1 align="center">Omnipay: OnePay</h1>
6+
<br>
7+
<p align="center">
8+
<a href="https://packagist.org/packages/phpviet/omnipay-onepay"><img src="https://img.shields.io/packagist/v/phpviet/omnipay-onepay.svg?style=flat-square" alt="Latest version"></a>
9+
<a href="https://travis-ci.org/phpviet/omnipay-onepay"><img src="https://img.shields.io/travis/phpviet/omnipay-onepay/master.svg?style=flat-square" alt="Build status"></a>
10+
<a href="https://scrutinizer-ci.com/g/phpviet/omnipay-onepay"><img src="https://img.shields.io/scrutinizer/g/phpviet/omnipay-onepay.svg?style=flat-square" alt="Quantity score"></a>
11+
<a href="https://styleci.io/repos/189053576"><img src="https://styleci.io/repos/189053576/shield?branch=master" alt="StyleCI"></a>
12+
<a href="https://packagist.org/packages/phpviet/omnipay-onepay"><img src="https://img.shields.io/packagist/dt/phpviet/omnipay-onepay.svg?style=flat-square" alt="Total download"></a>
13+
<a href="https://packagist.org/packages/phpviet/omnipay-onepay"><img src="https://img.shields.io/packagist/l/phpviet/omnipay-onepay.svg?style=flat-square" alt="License"></a>
14+
</p>
15+
</p>
16+
17+
## Thông tin
18+
19+
Thư viện hổ trợ tích cổng thanh toán MoMo phát triển trên nền tảng [Omnipay League](https://github.com/thephpleague/omnipay).
20+
21+
## Cài đặt
22+
23+
Cài đặt Omnipay MoMo thông qua [Composer](https://getcomposer.org):
24+
25+
```bash
26+
composer require phpviet/omnipay-onepay
27+
```
28+
## Cách sử dụng
29+
30+
### Tích hợp sẵn trên các framework phổ biến hiện tại
31+
32+
- [`Laravel`](https://github.com/phpviet/laravel-omnipay)
33+
- [`Symfony`](https://github.com/phpviet/symfony-omnipay)
34+
- [`Yii`](https://github.com/phpviet/yii-omnipay)
35+
36+
hoặc nếu bạn muốn sử dụng không dựa trên framework thì tiếp tục xem tiếp.
37+
38+
### Cách sử dụng các gateway
39+
40+
- [`Domestic (nội địa)`](docs/Domestic.md)
41+
- [`International (quốc tế)`](docs/International.md)
42+
43+
## Dành cho nhà phát triển
44+
45+
Nếu như bạn cảm thấy thư viện chúng tôi còn thiếu sót hoặc sai sót và bạn muốn đóng góp để phát triển chung,
46+
chúng tôi rất hoan nghênh! Hãy tạo các `issue` để đóng góp ý tưởng cho phiên bản kế tiếp hoặc tạo `PR`
47+
để đóng góp phần thiếu sót hoặc sai sót. Riêng đối với các lỗi liên quan đến bảo mật thì phiền bạn gửi email đến
48+
[email protected] thay vì tạo issue. Cảm ơn!

Diff for: composer.json

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "phpviet/omnipay-onepay",
3+
"type": "library",
4+
"description": "Thư viện hổ trợ tích hợp cổng thanh toán OnePay.",
5+
"keywords": [
6+
"phpviet",
7+
"onepay",
8+
"payment",
9+
"vietnam-payment",
10+
"payment-gateway",
11+
"vietnam-payment-gateway"
12+
],
13+
"homepage": "https://github.com/phpviet/omnipay-onepay",
14+
"license": "MIT",
15+
"authors": [
16+
{
17+
"name": "Vuong Xuong Minh",
18+
"email": "[email protected]"
19+
}
20+
],
21+
"require": {
22+
"php": "^7.1",
23+
"omnipay/common": "^3.0"
24+
},
25+
"require-dev": {
26+
"omnipay/tests": "^3.0",
27+
"scrutinizer/ocular": "^1.5"
28+
},
29+
"autoload": {
30+
"psr-4": {
31+
"Omnipay\\OnePay\\": "src"
32+
}
33+
},
34+
"autoload-dev": {
35+
"psr-4": {
36+
"Omnipay\\OnePay\\Tests\\": "tests"
37+
}
38+
},
39+
"scripts": {
40+
"test": "\"vendor/bin/phpunit\""
41+
},
42+
"config": {
43+
"sort-packages": true
44+
},
45+
"extra": {
46+
"branch-alias": {
47+
"dev-master": "1.0-dev"
48+
}
49+
}
50+
}

Diff for: docs/Domestic.md

Whitespace-only changes.

Diff for: docs/International.md

Whitespace-only changes.

Diff for: phpunit.xml.dist

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="vendor/autoload.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
verbose="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false">
12+
<testsuites>
13+
<testsuite name="PHP Viet Test Suite">
14+
<directory>tests</directory>
15+
</testsuite>
16+
</testsuites>
17+
<filter>
18+
<whitelist>
19+
<directory suffix=".php">src/</directory>
20+
</whitelist>
21+
</filter>
22+
</phpunit>

Diff for: resources/logo.png

5.35 KB
Loading

0 commit comments

Comments
 (0)