Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascono committed Jun 3, 2018
0 parents commit f6533b7
Show file tree
Hide file tree
Showing 550 changed files with 319,773 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .apigen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# docta/mercadolibre
# @copyright 2018 Lucas Banegas
# @license MIT

title: MercadoLibre PHP SDK
baseUrl: https://docta.github.io/mercadolibre/
main: Docta\MercadoLibre
download: true

source:
- "./src"
- "./vendor/docta/oauth2-mercadolibre"
- "./vendor/guzzlehttp/guzzle"
- "./vendor/guzzlehttp/promises"
- "./vendor/guzzlehttp/psr7"
- "./vendor/league/oauth2-client"
- "./vendor/psr/http-message"

exclude: ["*/tests/*"]
destination: "./docs"
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# docta/mercadolibre
# @copyright 2018 Lucas Banegas
# @license MIT

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
165 changes: 165 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
# docta/mercadolibre
# @copyright 2018 Lucas Banegas
# @license MIT

# Auto-detect
* text=auto
* eol=lf

# Source code
*.bat text
*.coffee text
*.css text
*.html text
*.htm text
*.inc text
*.ini text
*.json text
*.js text
*.jsx text
*.less text
*.php text
*.pl text
*.py text
*.rb text
*.sass text
*.scm text
*.scss text
*.sh text
*.sql text
*.styl text
*.ts text
*.xhtml text
*.xml text

# Documentation
*.markdown text
*.mdown text
*.md text
*.mdtext text
*.mdtxt text
*.mdwn text
*.mkdn text
*.mkd text
*.txt text
*README* text
AUTHORS text
CHANGELOG text
CHANGES text
CONTRIBUTING text
COPYING text
INSTALL text
LICENSE text
license text
NEWS text
readme text
TODO text

# Templates
*.dot text
*.ejs text
*.haml text
*.handlebars text
*.hbs text
*.hbt text
*.jade text
*.latte text
*.mustache text
*.phtml text
*.tmpl text

# Linters
.csslintrc text
.eslintrc text
.jscsrc text
.jshintignore text
.jshintrc text
.stylelintrc text

# Configs
*.bowerrc text
*.cnf text
*.config text
*.conf text
*.npmignore text
*.yaml text
*.yml text
.editorconfig text
.gitattributes text
.gitconfig text
.gitignore text
.htaccess text
makefile text
Makefile text

# Heroku
.slugignore text
Procfile text

# Graphics
*.ai binary
*.bmp binary
*.eps binary
*.gif binary
*.ico binary
*.jng binary
*.jp2 binary
*.jpeg binary
*.jpg binary
*.jpx binary
*.jxr binary
*.pdf binary
*.png binary
*.psb binary
*.psd binary
*.svg text
*.svgz binary
*.tif binary
*.tiff binary
*.wbmp binary
*.webp binary

# Audio
*.kar binary
*.m4a binary
*.mid binary
*.midi binary
*.mp3 binary
*.ogg binary
*.ra binary

# Video
*.3gp binary
*.3gpp binary
*.as binary
*.asf binary
*.asx binary
*.fla binary
*.flv binary
*.m4v binary
*.mng binary
*.mov binary
*.mp4 binary
*.mpeg binary
*.mpg binary
*.swc binary
*.swf binary
*.webm binary

# Archives
*.7z binary
*.gz binary
*.rar binary
*.tar binary
*.zip binary

# Fonts
*.eot binary
*.otf binary
*.ttf binary
*.woff2 binary
*.woff binary

# Executables
*.exe binary
*.pyc binary
73 changes: 73 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# docta/mercadolibre
# @copyright 2018 Lucas Banegas
# @license MIT

# Composer
/vendor/
composer.phar

# Git
*.orig

# Linux
*~
.directory
.fuse_hidden*
.nfs*
.Trash-*

# macOS
*.DS_Store
.apdisk
.AppleDB
.AppleDesktop
.AppleDouble
.com.apple.timemachine.donotpresent
.DocumentRevisions-V100
.fseventsd
.LSOverride
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
._*
Icon
Network Trash Folder
Temporary Items

# NotepadPP
*.bak

# SublimeText
*.stTheme.cache
*.sublime-project
*.sublime-workspace
*.tmlanguage.cache
*.tmPreferences.cache
bh_unicode_properties.cache
GitHub.sublime-settings
oscrypto-ca-bundle.crt
Package Control.ca-bundle
Package Control.ca-certs/
Package Control.ca-list
Package Control.cache/
Package Control.last-run
Package Control.merged-ca-bundle
Package Control.system-ca-bundle
Package Control.user-ca-bundle
sftp-config.json

# Test
/build/

# Windows
$RECYCLE.BIN/
*.cab
*.lnk
*.msi
*.msm
*.msp
Desktop.ini
ehthumbs.db
ehthumbs_vista.db
Thumbs.db
29 changes: 29 additions & 0 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# docta/mercadolibre
# @copyright 2018 Lucas Banegas
# @license MIT

build:
nodes:
analysis:
tests:
override:
- php-scrutinizer-run

filter:
excluded_paths: ["./tests"]

tools:
external_code_coverage: true
php_analyzer: true
php_code_coverage: false
php_code_sniffer:
config:
standard: PSR2
filter:
paths: ["./src"]
php_cpd:
enabled: true
excluded_dirs: ["./tests", "./vendor"]
php_loc:
enabled: true
excluded_dirs: ["./tests", "./vendor"]
51 changes: 51 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# docta/mercadolibre
# @copyright 2018 Lucas Banegas
# @license MIT

language: php

matrix:
include:
- php: 5.6
- php: 7
- php: 7.1
- php: 7.2
- php: nightly
- php: hhvm-3.6
sudo: required
dist: trusty
group: edge
- php: hhvm-3.9
sudo: required
dist: trusty
group: edge
- php: hhvm-3.12
sudo: required
dist: trusty
group: edge
- php: hhvm-3.15
sudo: required
dist: trusty
group: edge
- php: hhvm-nightly
sudo: required
dist: trusty
group: edge
fast_finish: true
allow_failures:
- php: nightly
- php: hhvm-nightly


before_install:
- travis_retry composer self-update

install:
- travis_retry composer require --no-interaction --prefer-source --dev scrutinizer/ocular
- travis_retry composer install --no-interaction --prefer-source

script:
- composer test-travis

after_success:
- travis_retry php ./vendor/bin/ocular code-coverage:upload --format=php-clover ./build/logs/clover.xml
36 changes: 36 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Contributing

Contributions are **welcome** and will be fully **credited**.

Accept contributions via Pull Requests on [Github](https://github.com/docta/mercadolibre).


## Pull Requests

- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer).

- **Ensure no coding standards violations** - Please run PHP Code Sniffer using the PSR-2 standard (see below) before submitting your pull request. A violation will cause the build to fail, so please make sure there are no violations. Don't accept a patch if the build fails.

- **Add tests** - Your patch won't be accepted if it doesn't have tests.

- **Ensure tests pass** - Please run the tests (see below) before submitting your pull request, and make sure they pass. Don't accept until all tests pass.

- **Consider the launch cycle** - Follow [SemVer](https://semver.org/). Randomly breaking public APIs is not an option.

- **Create topic branches** - Don't ask to get out of your main branch.

- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.

- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.

- **Document any change in behaviour** - make sure all relevant documentation is kept up-to-date.

## Testing

The following tests must pass for a build to be considered successful. If contributing, please ensure these pass before submitting a pull request.

``` bash
$ composer all
```

**Happy coding**!
Loading

0 comments on commit f6533b7

Please sign in to comment.