Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 70cc99f
Showing
22 changed files
with
1,551 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/.project | ||
/.settings | ||
/.buildpath | ||
/.idea | ||
/target | ||
/build.properties | ||
/vendor/ | ||
/composer.lock | ||
/composer.phar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
language: php | ||
|
||
php: | ||
- 7.0 | ||
- 5.6 | ||
- 5.5 | ||
|
||
matrix: | ||
allow_failures: | ||
- php: 7.0 | ||
|
||
before_install: | ||
- if [[ "$TRAVIS_PHP_VERSION" < "7.0" ]]; then pecl install pthreads-2.0.10; fi | ||
- if [[ "$TRAVIS_PHP_VERSION" = "7.0" ]] || [[ "$TRAVIS_PHP_VERSION" > "7.0" ]]; then pecl install pthreads-3.1.6; fi | ||
- pecl install xdebug-2.5.5 | ||
- phpenv rehash | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
|
||
before_script: | ||
- composer selfupdate | ||
|
||
script: | ||
- ant composer-init | ||
- ant build | ||
- php ocular.phar code-coverage:upload --format=php-clover $TRAVIS_BUILD_DIR/target/reports/unit/clover.xml | ||
|
||
notifications: | ||
email: info@appserver.io | ||
hipchat: 95d47a72c5372d4a0fef20048c3200@Appserver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Version 1.0.0 | ||
|
||
## Bugfixes | ||
|
||
* None | ||
|
||
## Features | ||
|
||
* Initial Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# PSR, for appserver.io application server | ||
|
||
[![Latest Stable Version](https://img.shields.io/packagist/v/appserver-io-psr/application-server.svg?style=flat-square)](https://packagist.org/packages/appserver-io-psr/application-server) | ||
[![Total Downloads](https://img.shields.io/packagist/dt/appserver-io-psr/application-server.svg?style=flat-square)](https://packagist.org/packages/appserver-io-psr/application-server) | ||
[![License](https://img.shields.io/packagist/l/appserver-io-psr/application-server.svg?style=flat-square)](https://packagist.org/packages/appserver-io-psr/application-server) | ||
[![Build Status](https://img.shields.io/travis/appserver-io-psr/application-server/master.svg?style=flat-square)](http://travis-ci.org/appserver-io-psr/application-server) | ||
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/appserver-io-psr/application-server/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/appserver-io-psr/application-server/?branch=master) | ||
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/appserver-io-psr/application-server/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/appserver-io-psr/application-server/?branch=master) | ||
|
||
## Introduction | ||
|
||
This library provides all necessary interfaces for the application server implementation of appserver.io. | ||
|
||
## Installation | ||
|
||
If you want to use the library with your application you can install it by adding | ||
|
||
```sh | ||
{ | ||
"require": { | ||
"appserver-io-psr/application-server": "dev-master" | ||
}, | ||
} | ||
``` | ||
|
||
to your ```composer.json``` and invoke ```composer update``` in your project. | ||
|
||
# External Links | ||
|
||
* Documentation at [appserver.io](http://docs.appserver.io) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/** | ||
* bootstrap.php | ||
* | ||
* NOTICE OF LICENSE | ||
* | ||
* This source file is subject to the Open Software License (OSL 3.0) | ||
* that is available through the world-wide-web at this URL: | ||
* http://opensource.org/licenses/osl-3.0.php | ||
* | ||
* PHP version 5 | ||
* | ||
* @author Tim Wagner <tw@appserver.io> | ||
* @copyright 2016 TechDivision GmbH <info@appserver.io> | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
* @link https://github.com/appserver-io-psr/application-server | ||
* @link http://www.appserver.io | ||
*/ | ||
|
||
$loader = require 'vendor/autoload.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#-------------------------------------------------------------------------------- | ||
# appserver-io-psr/application-server Build Default Properties | ||
# | ||
# @copyright Copyright (c) 2015 <info@techdivision.com> - TechDivision GmbH | ||
# @license http://opensource.org/licenses/osl-3.0.php | ||
# Open Software License (OSL 3.0) | ||
# @author TechDivision GmbH - Core Team <info@appserver.io> | ||
#-------------------------------------------------------------------------------- | ||
|
||
# ---- Module Release Settings -------------------------------------------------- | ||
release.version = 1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE project> | ||
<project name="appserver-io-psr/application-server" default="composer-init" basedir="."> | ||
|
||
<!-- initialize ENV variable --> | ||
<property environment="env" /> | ||
|
||
<!-- initialize file based properties --> | ||
<property file="${basedir}/build.properties"/> | ||
<property file="${basedir}/build.default.properties"/> | ||
<property file="${basedir}/build.${os.family}.properties"/> | ||
|
||
<!-- initialize the library specific properties --> | ||
<property name="codepool" value="vendor"/> | ||
|
||
<!-- initialize the directory where we can find the real build files --> | ||
<property name="vendor.dir" value ="${basedir}/${codepool}" /> | ||
<property name="build.dir" value="${vendor.dir}/appserver-io/build" /> | ||
|
||
<!-- ==================================================================== --> | ||
<!-- Import the common build configuration file --> | ||
<!-- ==================================================================== --> | ||
<import file="${build.dir}/common.xml" optional="true"/> | ||
|
||
<!-- ==================================================================== --> | ||
<!-- Checks if composer has installed it's dependencies --> | ||
<!-- ==================================================================== --> | ||
<target name="is-composer-installed"> | ||
<condition property="composer.present"> | ||
<available file="${build.dir}" type="dir"/> | ||
</condition> | ||
</target> | ||
|
||
<!-- ==================================================================== --> | ||
<!-- Installs all dependencies defined in composer.json --> | ||
<!-- ==================================================================== --> | ||
<target name="composer-install" depends="is-composer-installed" unless="composer.present" description="Installs all dependencies defined in composer.json"> | ||
<exec dir="${basedir}" executable="composer"> | ||
<arg line="--no-interaction --dev install"/> | ||
</exec> | ||
</target> | ||
|
||
<!-- ==================================================================== --> | ||
<!-- Updates composer dependencies defined in composer.json --> | ||
<!-- ==================================================================== --> | ||
<target name="composer-update" depends="is-composer-installed" if="composer.present" description="Updates composer dependencies defined in composer.json"> | ||
<exec dir="${basedir}" executable="composer"> | ||
<arg line="--no-interaction --dev update"/> | ||
</exec> | ||
</target> | ||
|
||
<!-- ===================================================================== --> | ||
<!-- Checks if the build- and deployment stub has already been initialized --> | ||
<!-- ===================================================================== --> | ||
<target name="composer-init"> | ||
<antcall target="composer-install"/> | ||
<antcall target="composer-update"/> | ||
</target> | ||
|
||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"name": "appserver-io-psr/application-server", | ||
"description": "PSR, for the appserver.io application server", | ||
"homepage": "https://github.com/appserver-io-psr/cli", | ||
"license": "OSL-3.0", | ||
"keywords": [ | ||
"php", | ||
"interface", | ||
"application", | ||
"server" | ||
], | ||
"authors": [ | ||
{ | ||
"name": "Tim Wagner", | ||
"email": "tw@appserver.io", | ||
"homepage": "http://www.appserver.io", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.4.0", | ||
"react/dns": "0.4.4", | ||
"react/socket": "0.4.*", | ||
"react/socket-client": "0.5.0", | ||
"appserver-io/storage": "2.0.*", | ||
"appserver-io/configuration": "3.0.*", | ||
"appserver-io-psr/naming": "1.1.*" | ||
}, | ||
"require-dev": { | ||
"appserver-io/build": "~1.0" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"AppserverIo\\Psr\\ApplicationServer": [ | ||
"src/", | ||
"tests/" | ||
] | ||
} | ||
}, | ||
"support": { | ||
"email": "tw@appserver.io", | ||
"issues": "https://github.com/appserver-io-psr/application-server/issues", | ||
"source": "https://github.com/appserver-io-psr/application-server" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<phpunit> | ||
<testsuites> | ||
<testsuite name="appserver-io-psr/application-server PHPUnit testsuite"> | ||
<directory suffix="Test.php">tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">src</directory> | ||
<exclude> | ||
<directory prefix="Mock">src</directory> | ||
<directory suffix="Test.php">src</directory> | ||
</exclude> | ||
</whitelist> | ||
</filter> | ||
<!-- Code coverage report, optional --> | ||
<logging> | ||
<log type="coverage-html" target="target/reports/unit/coverage"/> | ||
<log type="coverage-clover" target="target/reports/unit/clover.xml"/> | ||
<log type="junit" target="target/reports/unit/junit.xml" logIncompleteSkipped="false"/> | ||
</logging> | ||
<php> | ||
<ini name="date.timezone" value="Europe/Berlin"/> | ||
</php> | ||
</phpunit> |
Oops, something went wrong.