Skip to content

Commit e5891d3

Browse files
committed
Initial commit
0 parents  commit e5891d3

13 files changed

+245
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.idea/
2+
/.vagrant/
3+
/vendor/
4+
/build/logs/

.travis.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: php
2+
3+
php:
4+
- 7.1
5+
6+
branches:
7+
only:
8+
- master
9+
- development
10+
- /^feature\/.+$/
11+
- /^refactoring\/.+$/
12+
- /^issue\/.+$/
13+
14+
before_script:
15+
- composer self-update
16+
- mkdir -p vendor/bin
17+
- composer install -o --prefer-dist --no-interaction
18+
- mkdir build/logs
19+
20+
script:
21+
- php vendor/bin/phpunit.phar -c build/
22+
23+
after_success:
24+
- travis_retry php vendor/bin/coveralls.phar -v --exclude-no-stmt

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# CHANGELOG
2+
3+
All notable changes to this project will be documented in this file.
4+
This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a CHANGELOG](http://keepachangelog.com).
5+
6+
## [1.0.0] - YYYY-MM-DD
7+
8+
### Added
9+
10+
### Changed
11+
12+
### Fixed
13+
14+
15+
16+
[1.0.0]: https://github.com/php-mq/client/tree/v1.0.0

CONTRIBUTING.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Contribution guide
2+
3+
Contributions are **welcome** and will be fully **credited**.
4+
5+
We accept contributions via pull requests on [GitHub](https://github.com/php-mq/client).
6+
7+
## Pull Requests
8+
9+
- **Add tests!** - Your patch will not be accepted if it does not have tests.
10+
11+
- **Document any change in behaviour** - Make sure the documentation in `README.md` is kept up-to-date.
12+
13+
- **Consider our release cycle** - We follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
14+
15+
- **Create topic branches** - Do not ask us to pull from your master branch.
16+
17+
- **One pull request per feature** - If you want to do more than one thing, please send multiple pull requests.
18+
19+
- **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.
20+
21+
22+
## Running the tests
23+
24+
$ composer update
25+
$ php vendor/bin/phpunit.phar -c build

LICENSE

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

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[![Build Status](https://travis-ci.org/php-mq/client.svg?branch=master)](https://travis-ci.org/php-mq/client)
2+
[![Tested PHP versions](https://php-eye.com/badge/php-mq/client/tested.svg)](https://php-eye.com/package/php-mq/client)
3+
[![Latest Stable Version](https://poser.pugx.org/php-mq/client/v/stable)](https://packagist.org/packages/php-mq/client)
4+
[![Total Downloads](https://poser.pugx.org/php-mq/client/downloads)](https://packagist.org/packages/php-mq/client)
5+
[![Coverage Status](https://coveralls.io/repos/github/php-mq/client/badge.svg?branch=master)](https://coveralls.io/github/php-mq/client?branch=master)
6+
7+
# PHPMQ\Client
8+
9+
## Description
10+
11+
## Installation
12+
13+
## Usage
14+
15+
## Contributing
16+
17+
Contributions are welcome and will be fully credited. Please see the [contribution guide](CONTRIBUTING.md) for details.
18+
19+

Vagrantfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
VAGRANTFILE_API_VERSION = "2"
2+
3+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
4+
5+
config.vm.box = "DreiWolt/devops007"
6+
config.vm.network :private_network, ip: "192.168.3.17"
7+
config.vm.hostname = "PHPMQClient"
8+
config.vm.synced_folder ".", "/vagrant", type: "nfs"
9+
config.vm.provision "shell", path: "env/bootstrap.sh", run: "always"
10+
11+
end

build/phpunit.xml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<phpunit
2+
bootstrap="../tests/bootstrap.php"
3+
verbose="true"
4+
beStrictAboutOutputDuringTests="true"
5+
beStrictAboutTestSize="true"
6+
colors="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true">
10+
<testsuites>
11+
<testsuite name="Client">
12+
<directory suffix="Test.php">../tests/Unit</directory>
13+
</testsuite>
14+
</testsuites>
15+
<filter>
16+
<whitelist processUncoveredFilesFromWhitelist="true">
17+
<directory suffix=".php">../src</directory>
18+
</whitelist>
19+
</filter>
20+
<logging>
21+
<log type="coverage-html" target="logs/coverage"/>
22+
<log type="coverage-clover" target="logs/clover.xml"/>
23+
<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
24+
</logging>
25+
</phpunit>

composer.json

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "php-mq/client",
3+
"description": "Client",
4+
"minimum-stability": "dev",
5+
"prefer-stable": true,
6+
"license": "MIT",
7+
"authors": [
8+
{
9+
"name": "Holger Woltersdorf",
10+
"email": "[email protected]"
11+
}
12+
],
13+
"require": {
14+
"php": ">=7.1"
15+
},
16+
"autoload": {
17+
"psr-4": {
18+
"PHPMQ\\Client\\": "src/"
19+
}
20+
},
21+
"autoload-dev": {
22+
"psr-4": {
23+
"PHPMQ\\Client\\Tests\\": "tests/"
24+
}
25+
},
26+
"require-dev": {
27+
"tm/tooly-composer-script": "^1.0",
28+
"roave/security-advisories": "dev-master"
29+
},
30+
"scripts": {
31+
"post-install-cmd": "Tooly\\ScriptHandler::installPharTools",
32+
"post-update-cmd": "Tooly\\ScriptHandler::installPharTools"
33+
},
34+
"extra": {
35+
"tools": {
36+
"phpunit": {
37+
"url": "https://phar.phpunit.de/phpunit-6.2.3.phar",
38+
"only-dev": true
39+
},
40+
"coveralls": {
41+
"url": "https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar",
42+
"only-dev": true
43+
},
44+
"phpmetrics": {
45+
"url": "https://github.com/phpmetrics/PhpMetrics/releases/download/v2.2.0/phpmetrics.phar",
46+
"only-dev": true
47+
}
48+
}
49+
}
50+
}

env/bootstrap.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
sudo apt-get update
4+
5+
cd /vagrant
6+
7+
mkdir build/logs
8+
chmod -R 0777 build/logs
9+
10+
sudo composer self-update
11+
sudo chmod -R 0777 /home/vagrant/.composer
12+
sudo chmod -R 0777 /tmp
13+
sudo service php7.1-fpm restart

src/Exceptions/LogicException.php

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php declare(strict_types=1);
2+
/**
3+
* @author hollodotme
4+
*/
5+
6+
namespace PHPMQ\Client\Exceptions;
7+
8+
/**
9+
* Class RepoTemplateException
10+
* @package PHPMQ\Client\Exceptions
11+
*/
12+
class LogicException extends \LogicException
13+
{
14+
15+
}

src/Exceptions/RuntimeException.php

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php declare(strict_types=1);
2+
/**
3+
* @author hollodotme
4+
*/
5+
6+
namespace PHPMQ\Client\Exceptions;
7+
8+
/**
9+
* Class RuntimeException
10+
* @package PHPMQ\Client\Exceptions
11+
*/
12+
class RuntimeException extends \RuntimeException
13+
{
14+
15+
}

tests/bootstrap.php

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php declare(strict_types=1);
2+
/**
3+
* @author hollodotme
4+
*/
5+
6+
require_once __DIR__ . '/../vendor/autoload.php';

0 commit comments

Comments
 (0)