Skip to content

Commit 02d618f

Browse files
committed
Initial files for this library
1 parent edeafca commit 02d618f

File tree

9 files changed

+1038
-14
lines changed

9 files changed

+1038
-14
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Unix-style newlines with a newline ending every file
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = false
8+
charset = utf-8
9+
indent_style = tab
10+
trim_trailing_whitespace = true
11+
tab_width = 4
12+
13+
[{package.json,.travis.yml}]
14+
indent_style = space
15+
indent_size = 2

.gitattributes

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
# Auto detect text files and perform LF normalization
1+
# Set the default behavior, in case people don't have core.autocrlf set.
22
* text=auto
33

4-
# Custom for Visual Studio
5-
*.cs diff=csharp
4+
# Declare files that will always have LF line endings on checkout.
5+
*.php text eol=lf
6+
*.js text eol=lf
67

7-
# Standard to msysgit
8-
*.doc diff=astextplain
9-
*.DOC diff=astextplain
10-
*.docx diff=astextplain
11-
*.DOCX diff=astextplain
12-
*.dot diff=astextplain
13-
*.DOT diff=astextplain
14-
*.pdf diff=astextplain
15-
*.PDF diff=astextplain
16-
*.rtf diff=astextplain
17-
*.RTF diff=astextplain
8+
# Denote all files that are truly binary and should not be modified.
9+
*.png binary
10+
*.jpg binary
11+
*.gif binary
12+
*.ico binary
13+
*.ttf binary

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/.settings
2+
/.buildpath
3+
/.project
4+
/.idea
5+
*.bak
6+
vendor/
7+
*.lock

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: php
2+
3+
php:
4+
- 5.1
5+
- 5.2
6+
- 5.3
7+
- 5.4
8+
- 5.5
9+
- 5.6
10+
- 7.0
11+
12+
script: |
13+
composer install --optimize-autoloader --no-suggest --no-dev
14+
phpunit

composer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name":"impresscms/php-downloader",
3+
"description":"Some classes from php-downloade v1.0 by www.ipunkt.biz package that were used in Xoops but can't be found outside",
4+
"type":"library",
5+
"require-dev":{
6+
"phpunit/phpunit":"*"
7+
},
8+
"license":"GPL",
9+
"require":{
10+
"php":">=5.0"
11+
},
12+
"autoload":{
13+
"classmap":[
14+
"./src/zipfile.php",
15+
"./src/tar.php"
16+
]
17+
}
18+
}

phpunit.xml.dist

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit bootstrap="vendor/autoload.php" colors="true">
4+
<testsuites>
5+
<testsuite name="php-downloader test suite">
6+
<directory>tests/</directory>
7+
</testsuite>
8+
</testsuites>
9+
10+
<filter>
11+
<whitelist>
12+
<directory suffix=".php">tests/</directory>
13+
</whitelist>
14+
</filter>
15+
</phpunit>

0 commit comments

Comments
 (0)