Skip to content

Commit 58dd8aa

Browse files
committed
init
1 parent a5cb0bd commit 58dd8aa

File tree

5 files changed

+48
-11
lines changed

5 files changed

+48
-11
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.idea
2+
/vendor
3+
/.composer.lock

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: php
2+
php:
3+
- 7.1
4+
- 7.2
5+
6+
before_script:
7+
- composer self-update
8+
- composer install --no-interaction --prefer-dist
9+
10+
script:
11+
- vendor/bin/tester -c tests/php.ini tests
12+
- vendor/bin/phpstan analyse -l 7 src tests
13+
- vendor/bin/phpcs --standard=vendor/slevomat/coding-standard/SlevomatCodingStandard/ruleset.xml --sniffs=SlevomatCodingStandard.ControlStructures.DisallowYodaComparison,SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses --extensions=php --encoding=utf-8 --tab-width=4 -sp src tests

composer.json

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
{
2-
"name": "spameri/elastic-query",
3-
"authors": [
4-
{
5-
"name": "VBoss",
6-
"email": "vcevela@gmail.com"
7-
}
8-
],
9-
"require": {
10-
},
11-
"require-dev": {
12-
}
2+
"name": "spameri/elastic-query",
3+
"authors": [
4+
{
5+
"name": "VBoss",
6+
"email": "vcevela@gmail.com"
7+
}
8+
],
9+
"require": {
10+
"elasticsearch/elasticsearch": "^6.0"
11+
},
12+
"require-dev": {
13+
"phpstan/phpstan-shim": "^0.9.1",
14+
"nette/tester": "^2.0",
15+
"slevomat/coding-standard": "^4.0"
16+
},
17+
"autoload": {
18+
"psr-4": {
19+
"Spameri\\": "src"
20+
}
21+
},
22+
"autoload-dev": {
23+
"Spameri\\": "tests"
24+
}
1325
}

src/ElasticQuery.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php declare(strict_types = 1);
2+
3+
namespace Spameri;
4+
5+
6+
class ElasticQuery
7+
{
8+
9+
}

tests/php.ini

Whitespace-only changes.

0 commit comments

Comments
 (0)