Initial commit

This commit is contained in:
Thomas Gelf 2017-10-27 14:41:48 +02:00
commit 0b68efcf87
5 changed files with 96 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
composer.lock
vendor

20
README.md Normal file
View File

@ -0,0 +1,20 @@
ipl 3rd Party PHP libraries
===========================
This repository replicates 3rd party libraries used or suggested by the `ipl`
(Icinga PHP Library).
Add a new dependency
--------------------
composer require author/library:version
Create a new release
--------------------
./bin/make-release.sh <version>
e.g.
./bin/make-release.sh 0.1.0

41
bin/make-release.sh Executable file
View File

@ -0,0 +1,41 @@
#!/bin/bash
VERSION="$1"
if [ -z $VERSION ]; then
echo "USAGE: $0 <version>"
echo " e.g.: $0 0.1.0"
exit 1
fi
TAG=$(git tag | grep -c "$VERSION")
if [ "$TAG" -ne "0" ]; then
echo -n "Version $VERSION has already been tagged: "
git tag | grep "$VERSION"
exit 1
fi
BRANCH="stable/$VERSION"
git checkout -b "$BRANCH"
git rm -rf vendor
rm -rf vendor
rm composer.lock
composer install
find vendor/ -type f -name "*.php" \
| grep -v '/examples/' \
| grep -v '/example/' \
| grep -v '/tests/' \
| grep -v '/test/' \
| xargs -l git add -f
find vendor/ -type f -name LICENSE | xargs -l git add -f
git commit -m "Version v$VERSION"
rm -f composer.lock
rm -rf vendor
git checkout vendor
git tag -a v$VERSION -m "Version v$VERSION"
echo "Finished, tagged v$VERSION"
echo "Now please run:"
echo "git push origin "$BRANCH":"$BRANCH" && git push --tags"

30
composer.json Normal file
View File

@ -0,0 +1,30 @@
{
"name": "Icinga/ipl-3rdparty",
"type": "library",
"description": "ipl 3rd party PHP libraries",
"homepage": "https://github.com/Icinga/libipl-3rdparty",
"license": "MIT",
"support": {
"issues": "https://github.com/Icinga/libipl-3rdparty/issues"
},
"require": {
"php": ">=5.4.0",
"ext-curl": "*",
"psr/http-message": "^1",
"predis/predis": "^1.1",
"react/child-process": "^0.5",
"react/dns": "^0.4",
"react/datagram": "^1",
"react/http": "^0.7",
"react/http-client": "^0.5",
"react/stream": "^0.7",
"react/socket": "^0.8",
"clue/redis-react": "^2",
"guzzlehttp/guzzle": "^5",
"clue/socks-react": "^0.8",
"clue/http-proxy-react": "^1.2",
"clue/connection-manager-extra": "^1.1"
},
"require-dev": {
}
}

3
run.php Normal file
View File

@ -0,0 +1,3 @@
<?php
require_once __DIR__ . '/vendor/autoload.php';