Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
tzurbaev committed Jun 30, 2017
1 parent 7110998 commit 5cae1d9
Show file tree
Hide file tree
Showing 36 changed files with 4,966 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://editorconfig.org

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
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
* text=auto

/tests export-ignore
/docs export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.styleci.yml export-ignore
/.travis.yml export-ignore
/.editorconfig export-ignore
/.php_cs export-ignore
/composer.lock export-ignore
/CONTRIBUTING.md export-ignore
/CHANGELOG.md export-ignore
/README.md export-ignore
/phpunit.xml export-ignore
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.idea/
/dev/
/vendor/
17 changes: 17 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

$finder = PhpCsFixer\Finder::create()->in([__DIR__.'/src', __DIR__.'/tests']);

return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
'@PSR2' => true,
'phpdoc_align' => true,
'phpdoc_no_empty_return' => true,
'phpdoc_order' => true,
'phpdoc_separation' => true,
'array_syntax' => ['syntax' => 'short'],
'no_unused_imports' => true,
'phpdoc_trim' => true,
])
->setFinder($finder);
4 changes: 4 additions & 0 deletions .styleci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
preset: psr2
finder:
path:
- "src"
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: php
php:
- 7.0
- 7.1
sudo: false
before_install:
- composer self-update
- composer install --no-interaction --prefer-dist --no-suggest
script:
- vendor/bin/phpunit
notifications:
email:
on_success: never
on_failure: always
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Change Log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [0.9.0]
### Initial release.

[Unreleased]: https://github.com/tzurbaev/laravel-achievements
[0.9.0]: https://github.com/tzurbaev/laravel-achievements/releases/tag/0.9.0
31 changes: 31 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Contributing

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

We accept contributions via Pull Requests on [Github](https://github.com/tzurbaev/laravel-achievements).


## Pull Requests

- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - Check the code style with ``$ php-cs-fixer fix --dry-run --diff`` and fix it with ``$ php-cs-fixer fix``. See **[PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer)** repository for more info.

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

- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.

- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.

- **Create feature branches** - Don't ask us to pull from your master 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](http://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.


## Running Tests

``` bash
$ vendor/bin/phpunit
```

**Happy coding**!
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 tzurbaev

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.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
[ico-version]: https://poser.pugx.org/tzurbaev/laravel-achievements/version?format=flat
[ico-license]: https://poser.pugx.org/tzurbaev/laravel-achievements/license?format=flat
[ico-travis]: https://api.travis-ci.org/tzurbaev/laravel-achievements.svg?branch=master
[ico-styleci]: https://styleci.io/repos/XXX/shield?branch=master&style=flat
[ico-styleci]: https://styleci.io/repos/95869727/shield?branch=master&style=flat
[ico-scrutinizer]: https://scrutinizer-ci.com/g/tzurbaev/laravel-achievements/badges/quality-score.png?b=master

[link-packagist]: https://packagist.org/packages/tzurbaev/laravel-achievements
[link-travis]: https://travis-ci.org/tzurbaev/laravel-achievements
[link-styleci]: https://styleci.io/repos/XXX
[link-styleci]: https://styleci.io/repos/95869727
[link-scrutinizer]: https://scrutinizer-ci.com/g/tzurbaev/laravel-achievements/
[link-author]: https://github.com/tzurbaev
36 changes: 36 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "tzurbaev/laravel-achievements",
"description": "Achievements System for Laravel framework",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "tzurbaev",
"email": "zurbaev@gmail.com"
}
],
"require": {
"php": ">=7.0",
"illuminate/support": "5.4.*",
"tzurbaev/achievements": "^0.9.0"
},
"require-dev": {
"phpunit/phpunit": "^6.1",
"mockery/mockery": "^0.9.9",
"orchestra/testbench": "~3.0"
},
"autoload": {
"psr-4": {
"Laravel\\Achievements\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Laravel\\Achievements\\Tests\\": "tests/"
},
"files": [
"database/seeds/AchievementsSeeder.php"
]
},
"minimum-stability": "stable"
}

0 comments on commit 5cae1d9

Please sign in to comment.