Skip to content

Commit 51251df

Browse files
Added common files
0 parents  commit 51251df

File tree

11 files changed

+235
-0
lines changed

11 files changed

+235
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
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

.gitattributes

Lines changed: 13 additions & 0 deletions
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+
/tests export-ignore
12+
/docs export-ignore
13+
/.editorconfig export-ignore

.gitignore

Lines changed: 14 additions & 0 deletions
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

.scrutinizer.yml

Lines changed: 19 additions & 0 deletions
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+

.styleci.yml

Lines changed: 8 additions & 0 deletions
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"

.travis.yml

Lines changed: 20 additions & 0 deletions
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

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
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

LICENSE.md

Lines changed: 21 additions & 0 deletions
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.

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<p align="center">
2+
<a href="https://github.com/laravel" target="_blank">
3+
<img src="https://avatars0.githubusercontent.com/u/958072" height="100px">
4+
</a>
5+
<h1 align="center">Laravel Flysystem</h1>
6+
<br>
7+
<p align="center">
8+
<a href="https://packagist.org/packages/phpviet/laravel-flysystem"><img src="https://img.shields.io/packagist/v/phpviet/laravel-flysystem.svg?style=flat-square" alt="Latest version"></a>
9+
<a href="https://travis-ci.org/phpviet/laravel-flysystem"><img src="https://img.shields.io/travis/phpviet/laravel-flysystem/master.svg?style=flat-square" alt="Build status"></a>
10+
<a href="https://scrutinizer-ci.com/g/phpviet/laravel-flysystem"><img src="https://img.shields.io/scrutinizer/g/phpviet/laravel-flysystem.svg?style=flat-square" alt="Quantity score"></a>
11+
<a href="https://styleci.io/repos/189053932"><img src="https://styleci.io/repos/189053932/shield?branch=master" alt="StyleCI"></a>
12+
<a href="https://packagist.org/packages/phpviet/laravel-flysystem"><img src="https://img.shields.io/packagist/dt/phpviet/laravel-flysystem.svg?style=flat-square" alt="Total download"></a>
13+
<a href="https://packagist.org/packages/phpviet/laravel-flysystem"><img src="https://img.shields.io/packagist/l/phpviet/laravel-flysystem.svg?style=flat-square" alt="License"></a>
14+
</p>
15+
</p>
16+
17+
## Thông tin
18+
19+
Package hổ trợ bạn tích hợp các dịch vụ lưu trữ đám mây (cloud storage) trong nước.
20+
21+
Các dịch vụ lưu trữ đang được hổ trợ:
22+
23+
+ **[Viettel](https://viettelidc.com.vn)**
24+
25+
26+
## Cài đặt
27+
28+
Cài đặt Laravel Flysystem thông qua [Composer](https://getcomposer.org):
29+
30+
```bash
31+
composer require phpviet/laravel-flysystem
32+
```
33+
34+
## Cách sử dụng
35+
36+
+ [Viettel Cloud Storage](/docs/Viettel.md)
37+
38+
39+
## Dành cho nhà phát triển
40+
41+
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,
42+
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`
43+
để đó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
44+
[email protected] thay vì tạo issue. Cảm ơn!

composer.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"name": "phpviet/laravel-flysystem",
3+
"description": "Laravel Flysystem hổ trợ tích hợp các dịch vụ lưu trữ đám mây (cloud storage) trong nước.",
4+
"keywords": [
5+
"phpviet",
6+
"laravel-flysystem",
7+
"flysystem",
8+
"viettel-cloud-storage"
9+
],
10+
"homepage": "https://github.com/phpviet/laravel-flysystem",
11+
"license": "MIT",
12+
"authors": [
13+
{
14+
"name": "Vuong Xuong Minh",
15+
"email": "[email protected]"
16+
}
17+
],
18+
"require": {
19+
"php": "^7.1",
20+
"illuminate/filesystem": "^5.7",
21+
"illuminate/support": "^5.7"
22+
},
23+
"require-dev": {
24+
"league/flysystem-aws-s3-v2": "^1.0",
25+
"league/flysystem-cached-adapter": "^1.0",
26+
"orchestra/testbench": "^3.7",
27+
"phpunit/phpunit": "~7.5",
28+
"scrutinizer/ocular": "^1.5"
29+
},
30+
"autoload": {
31+
"psr-4": {
32+
"PHPViet\\Laravel\\Flysystem\\": "src"
33+
}
34+
},
35+
"autoload-dev": {
36+
"psr-4": {
37+
"PHPViet\\Laravel\\Flysystem\\Tests\\": "tests"
38+
}
39+
},
40+
"scripts": {
41+
"test": "\"vendor/bin/phpunit\""
42+
},
43+
"config": {
44+
"sort-packages": true
45+
},
46+
"extra": {
47+
"branch-alias": {
48+
"dev-master": "1.0-dev"
49+
},
50+
"laravel": {
51+
"providers": [
52+
"PHPViet\\Laravel\\Flysystem\\FlysystemServiceProvider"
53+
]
54+
}
55+
}
56+
}

0 commit comments

Comments
 (0)