Skip to content

Commit 21322c7

Browse files
author
chthomas
committed
Initial commit
0 parents  commit 21322c7

39 files changed

+5558
-0
lines changed

.gitignore

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

.idea/php-query-bus.iml

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.travis.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
notifications:
2+
email: false
3+
4+
language: php
5+
6+
php:
7+
- '7.3'
8+
- '7.3'
9+
- '7.2'
10+
11+
install:
12+
- composer install
13+
14+
script:
15+
- make
16+
- mkdir -p build/logs
17+
- vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover build/logs/clover.xml
18+
19+
after_success:
20+
- travis_retry php vendor/bin/php-coveralls -v

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2017 Christian Thomas <christian.h.thomas@me.com>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
build:
2+
@make dependencies && make dependency-check && make static-analysis && make style-check && make unit-tests && make integration-tests
3+
4+
dependencies:
5+
@composer install
6+
7+
unit-tests:
8+
@vendor/bin/phpunit --bootstrap=./tests/bootstrap.php --testsuite Unit
9+
10+
integration-tests:
11+
@vendor/bin/phpunit --bootstrap=./tests/bootstrap.php --testsuite Integration
12+
13+
test-coverage:
14+
@vendor/bin/phpunit --coverage-html ./coverage
15+
16+
style-check:
17+
@vendor/bin/phpcs --standard=PSR12 ./src/* ./tests/*
18+
19+
dependency-check:
20+
@vendor/bin/composer-require-checker check -vvv ./composer.json
21+
22+
static-analysis:
23+
@vendor/bin/phpstan analyze --level=max ./src && ./vendor/bin/psalm --show-info=false
24+
25+
style-fix:
26+
@vendor/bin/phpcbf --standard=PSR12 ./src ./tests
27+
28+
repl:
29+
@vendor/bin/psysh ./bootstrap/repl.php

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[![Build Status](https://travis-ci.org/remotelyliving/php-query-bus.svg?branch=master)](https://travis-ci.org/remotelyliving/php-query-bus)
2+
[![Total Downloads](https://poser.pugx.org/remotelyliving/php-query-bus/downloads)](https://packagist.org/packages/remotelyliving/php-query-bus)
3+
[![Coverage Status](https://coveralls.io/repos/github/remotelyliving/php-query-bus/badge.svg?branch=master)](https://coveralls.io/github/remotelyliving/php-query-bus?branch=master)
4+
[![License](https://poser.pugx.org/remotelyliving/php-query-bus/license)](https://packagist.org/packages/remotelyliving/php-query-bus)
5+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/remotelyliving/php-query-bus/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/remotelyliving/php-query-bus/?branch=master)
6+
7+
# php-query-bus: A Query Bus Abstraction For PHP
8+
9+
### Use Cases
10+
11+
### Installation
12+
13+
```sh
14+
composer require remotelyliving/php-query-bus
15+
```
16+
17+
### Usage
18+
19+
### DTO
20+
21+
### Middleware
22+
23+
### Logging

composer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "remotelyliving/php-query-bus",
3+
"description": "A php library for abstracting querying, data loading, and graph building",
4+
"keywords": ["query bus", "query", "bus", "graph"],
5+
"type": "library",
6+
"license": "MIT",
7+
"authors": [
8+
{
9+
"name": "chthomas",
10+
"email": "christian.h.thomas@me.com"
11+
}
12+
],
13+
"minimum-stability": "stable",
14+
"require": {
15+
"php": ">=7.2",
16+
"ext-json": "*",
17+
"ext-filter": "*",
18+
"ext-mbstring": "*",
19+
"psr/log": "^1.0",
20+
"symfony/event-dispatcher": "^5.0",
21+
"psr/container": "^1.0",
22+
"myclabs/php-enum": "^1.7"
23+
},
24+
"require-dev": {
25+
"phpunit/phpunit": "^8.0",
26+
"phpstan/phpstan": "^0.11.19",
27+
"maglnet/composer-require-checker": "^2.0",
28+
"squizlabs/php_codesniffer": "^3.3",
29+
"php-coveralls/php-coveralls": "^2.2",
30+
"vimeo/psalm": "^3.7"
31+
},
32+
"autoload": {
33+
"psr-4": {
34+
"RemotelyLiving\\PHPQueryBus\\" : "src/"
35+
}
36+
},
37+
"autoload-dev": {
38+
"psr-4": {
39+
"RemotelyLiving\\PHPQueryBus\\Tests\\" : "tests/"
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)