Skip to content

Commit

Permalink
Regular update
Browse files Browse the repository at this point in the history
  • Loading branch information
paramtamtam committed Feb 17, 2018
1 parent efcc6dd commit 053abca
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 19 deletions.
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

/.github export-ignore
/tests export-ignore
phpunit.xml export-ignore
README.md export-ignore
CONTRIBUTING.md export-ignore
LICENSE export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.styleci.yml export-ignore
.scrutinizer.yml export-ignore
phpunit.xml export-ignore
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Environment deps.
# Composer lock file
composer.lock

# Vendors
Expand Down
24 changes: 22 additions & 2 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,53 @@ checks:
duplication: true

build:
environment:
mysql: false
postgresql: false
mongodb: false
elasticsearch: false
redis: false
memcached: false
neo4j: false
rabbitmq: false

nodes:
php56:
environment:
php: 5.6

tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=clover-file'
coverage:
file: 'clover-file'
format: 'clover'

php70:
environment:
php: 7.0

tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=clover-file'
coverage:
file: 'clover-file'
format: 'clover'

php71:
environment:
php: 7.1
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=clover-file'
coverage:
file: 'clover-file'
format: 'clover'

php72:
environment:
php: 7.2
tests:
override:
-
Expand Down
15 changes: 15 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Contribution Guidelines

Please ensure your pull request adheres to the following guidelines:

- Search previous suggestions before making a new one, as yours may be a duplicate.
- Suggested packages should be tested and documented.
- Make an individual pull request for each suggestion.
- Use the following format: `[service](link) - Description.`
- New categories, or improvements to the existing categorization are welcome.
- Keep descriptions short and simple, but descriptive.
- End all descriptions with a full stop/period.
- Check your spelling and grammar.
- Make sure your text editor is set to remove trailing whitespace.

Thank you for your suggestions!
37 changes: 25 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@

<p align="center">
<img alt="laravel" src="https://habrastorage.org/webt/59/e1/c4/59e1c40b83e9d293787547.png" width="70" height="70" />
<img src="https://laravel.com/assets/img/components/logo-laravel.svg" alt="Laravel" width="240" />
</p>

# Laravel-пакет для работы со статическими справочниками

![Packagist](https://img.shields.io/packagist/v/avto-dev/static-references-laravel.svg?style=flat&maxAge=30)
[![Build Status](https://scrutinizer-ci.com/g/avto-dev/static-references-laravel/badges/build.png?b=master)](https://scrutinizer-ci.com/g/avto-dev/static-references-laravel/build-status/master)
![StyleCI](https://styleci.io/repos/107638384/shield?style=flat&maxAge=30)
[![Code Coverage](https://scrutinizer-ci.com/g/avto-dev/static-references-laravel/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/avto-dev/static-references-laravel/?branch=master)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/avto-dev/static-references-laravel/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/avto-dev/static-references-laravel/?branch=master)
![GitHub issues](https://img.shields.io/github/issues/avto-dev/static-references-laravel.svg?style=flat&maxAge=30)
[![Version][badge_version]][link_packagist]
[![Build Status][badge_build_status]][link_build_status]
![StyleCI][badge_styleci]
[![Code Coverage][badge_coverage]][link_build]
[![Code Quality][badge_quality]][link_build]
[![License][badge_license]][link_license]
[![Issues][badge_issues]][link_issues]
[![Downloads][badge_downloads]][link_packagist]

При помощи данного пакета вы сможете интегрировать сервис по работе со статическими справочниками в ваше **Laravel 5.x** приложение с помощью нескольких простых шагов.
При помощи данного пакета вы сможете интегрировать сервис по работе со статическими справочниками в ваше **Laravel >=5.4** приложение с помощью нескольких простых шагов.

## Установка

Для установки данного пакета выполните в терминале следующую команду:

```shell
$ composer require avto-dev/static-references-laravel "1.*"
$ composer require avto-dev/static-references-laravel "^1.1.2"
```

> Для этого необходим установленный `composer`. Для его установки перейдите по [данной ссылке][getcomposer].
Expand Down Expand Up @@ -247,8 +248,7 @@ $reg_actions->hasCode(666); // false
Для тестирования данного пакета используется фреймворк `phpunit`. Для запуска тестов выполните в терминале:

```shell
$ git clone git@github.com:avto-dev/static-references-laravel.git
$ cd ./static-references-laravel
$ git clone git@github.com:avto-dev/static-references-laravel.git ./static-references-laravel && cd &_
$ composer update --dev
$ composer test
```
Expand All @@ -263,4 +263,17 @@ $ composer test

Код данного пакета распространяется под лицензией **MIT**.

[badge_version]:https://img.shields.io/packagist/v/avto-dev/static-references-laravel.svg?style=flat&maxAge=30
[badge_license]:https://img.shields.io/packagist/l/avto-dev/static-references-laravel.svg?style=flat&maxAge=30
[badge_build_status]:https://scrutinizer-ci.com/g/avto-dev/static-references-laravel/badges/build.png?b=master
[badge_styleci]:https://styleci.io/repos/107638384/shield?style=flat
[badge_coverage]:https://scrutinizer-ci.com/g/avto-dev/static-references-laravel/badges/coverage.png?b=master
[badge_quality]:https://scrutinizer-ci.com/g/avto-dev/static-references-laravel/badges/quality-score.png?b=master
[badge_issues]:https://img.shields.io/github/issues/avto-dev/static-references-laravel.svg?style=flat&maxAge=30
[badge_downloads]:https://img.shields.io/packagist/dt/avto-dev/static-references-laravel.svg?style=flat&maxAge=30
[link_packagist]:https://packagist.org/packages/avto-dev/static-references-laravel
[link_license]:https://github.com/avto-dev/static-references-laravel/blob/master/LICENSE
[link_build]:https://scrutinizer-ci.com/g/avto-dev/static-references-laravel
[link_build_status]:https://scrutinizer-ci.com/g/avto-dev/static-references-laravel/build-status/master
[link_issues]:https://github.com/avto-dev/static-references-laravel/issues
[getcomposer]:https://getcomposer.org/download/
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"name": "avto-dev/static-references-laravel",
"description": "Static references for Laravel applications",
"keywords": [
"laravel",
"static",
"references"
],
"type": "library",
"license": "MIT",
"authors": [
Expand All @@ -11,11 +16,11 @@
],
"require": {
"php": "^5.6 || >=7.0 <=7.3",
"avto-dev/static-references-data": "1.* >=1.1.0",
"laravel/framework": "5.4.* || 5.5.* || 5.6.*"
"avto-dev/static-references-data": "^1.1",
"laravel/framework": ">=5.4.0 <5.7.0"
},
"require-dev": {
"laravel/laravel": "5.4.* || 5.5.* || 5.6.*",
"laravel/laravel": ">=5.4.0 <5.7.0",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.7 || ^6.4"
},
Expand Down

0 comments on commit 053abca

Please sign in to comment.