Skip to content

Commit

Permalink
Carpe Diem
Browse files Browse the repository at this point in the history
  • Loading branch information
adrorocker committed Apr 11, 2017
0 parents commit 5e9369a
Show file tree
Hide file tree
Showing 12 changed files with 932 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage_clover: build/logs/clover.xml
json_path: build/logs/coveralls-upload.json
18 changes: 18 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Enforce Unix newlines
* text=lf

# Exclude unused files
# see: https://redd.it/2jzp6k
/example export-ignore
/docs export-ignore
/tests export-ignore
/.codeclimate.yml export-ignore
/.coveralls.yml export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/CONTRIBUTING.md export-ignore
/README.md export-ignore
/phpcs.xml export-ignore
/phpunit.xml.dist export-ignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- hhvm

sudo: required

install: composer install

before_script:
# navigate out of module directory to prevent blown stack by recursive module lookup
- wget https://phar.phpunit.de/phpunit.phar
- chmod +x phpunit.phar
- sudo mv phpunit.phar /usr/local/bin/phpunit
- phpunit --version

- wget http://getcomposer.org/composer.phar
- php composer.phar install
- php composer.phar require satooshi/php-coveralls

script:
- mkdir -p build/logs
- phpunit -c phpunit.xml.dist

after_script:
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then travis_retry php vendor/bin/coveralls -v; fi
- if [[ "$TRAVIS_PHP_VERSION" == '7.0' ]]; then travis_retry php vendor/bin/coveralls -v; fi
21 changes: 21 additions & 0 deletions LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017, Alejandro Morelos.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[Aws3](https://github.com/adrosoftware/aws3)
===================================

A simple PHP s3 class for AWS.

[![Build status][Master image]][Master]
[![Coverage Status][Master covarage image]][Master covarage]
[![Latest Stable Version][Stable version image]][Stable version]
[![License][License image]][License]

-----------------------------------

## Installation

```
composer require adrosoftware/aws3
```

## Authors:

[Alejandro Morelos](https://github.com/adrorocker).

[Master]: https://travis-ci.org/adrosoftware/aws3/
[Master image]: https://travis-ci.org/adrosoftware/aws3.svg?branch=master
[Master covarage]: https://coveralls.io/github/adrosoftware/aws3
[Master covarage image]: https://coveralls.io/repos/github/adrosoftware/aws3/badge.svg?branch=master
[Stable version]: https://packagist.org/packages/adrosoftware/aws3
[Stable version image]: https://poser.pugx.org/adrosoftware/aws3/v/stable
[License]: https://packagist.org/packages/adrosoftware/aws3
[License image]: https://poser.pugx.org/adrosoftware/aws3/license
40 changes: 40 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "adrosoftware/aws3",
"description": "A simple PHP s3 class for AWS",
"license": "MIT",
"keywords": ["s3", "php", "aws", "adrorocker"],
"homepage": "https://github.com/adrosoftware/aws3",
"type": "library",
"authors": [
{
"name": "Adro Rocker",
"email": "alejandro.morelos@jarwebdev.com",
"homepage": "https://github.com/adrorocker"
}
],
"require": {
"php": ">= 5.6"
},
"require-dev": {
"phpunit/phpunit": "5.6.*"
},
"autoload": {
"psr-4": {
"Adrosoftware\\Aws3\\": "src/"
},
"files": [
]
},
"autoload-dev": {
"psr-4": {
"Adrosoftware\\Aws3\\": "tests/"
},
"files": [
]
},
"extra": {
"branch-alias": {
"dev-master": "0.1-dev"
}
}
}
Empty file added docs/.gitkeep
Empty file.
37 changes: 37 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="./tests/bootstrap.php">
<php>
<ini name="error_reporting" value="E_ALL" />
</php>

<testsuites>
<testsuite name="PHP Aws3 test suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./src</directory>
<exclude>
<directory>./build</directory>
<directory>./composer</directory>
<directory>./tests</directory>
<directory>./vendor</directory>
</exclude>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>

0 comments on commit 5e9369a

Please sign in to comment.