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
Showing
18 changed files
with
282 additions
and
23 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,30 @@ | ||
language: php | ||
sudo: false | ||
|
||
php: | ||
- 7.2 | ||
|
||
cache: | ||
directories: | ||
- build/.composer-cache | ||
|
||
before_install: | ||
- export COMPOSER_CACHE_DIR="$(pwd)/build/.composer-cache" | ||
- export XDEBUG="/home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini" | ||
- mv -v "$XDEBUG" "$XDEBUG.disabled" | ||
|
||
install: | ||
- mkdir -p build/php_codesniffer build/php-cs-fixer build/ocular | ||
- composer require --no-suggest --no-progress -n -a -d build/php-cs-fixer "friendsofphp/php-cs-fixer:^2.12" | ||
- composer require --no-suggest --no-progress -n -a -d build/php_codesniffer "squizlabs/php_codesniffer:^3.3" | ||
- composer require --no-suggest --no-progress -n -a -d build/ocular "scrutinizer/ocular:^1.5" | ||
- composer update --no-suggest --no-progress -n -a | ||
|
||
script: | ||
- build/php_codesniffer/vendor/bin/phpcs -p --standard=PSR2 src tests | ||
- build/php-cs-fixer/vendor/bin/php-cs-fixer fix -v --dry-run --allow-risky=yes --using-cache=no | ||
- mv -v "$XDEBUG.disabled" "$XDEBUG" | ||
- vendor/bin/phpunit --coverage-clover=build/coverage.clover --coverage-text | ||
|
||
after_script: | ||
- build/ocular/vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage.clover |
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,13 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## 0.1.0 - 2018-07-16 | ||
### Added | ||
- Initial development release | ||
|
||
[Unreleased]: https://github.com/simply-framework/router/compare/v0.1.0...HEAD |
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,18 @@ | ||
Copyright (c) 2018 Riikka Kalliomäki | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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,24 @@ | ||
# Middleware Application Framework | ||
|
||
This package provides a bare-bones middleware framework that implements the different PSR standards and | ||
takes advantage of the Simply Router and Container to create a coherent whole. | ||
|
||
The application framework takes advantage of the [PSR-7 HTTP Message Interface], [PSR-11 Container Interface] | ||
and [PSR-15 HTTP Handlers] while also looking into being compatible with upcoming [PSR-17 HTTP Factories] via | ||
the http-factory interop. | ||
|
||
NOTE: This package is part of a framework that is still highly experimental in nature. Stable api or proper | ||
documentation are not to be expected until the framework has been tested in practice. | ||
|
||
API documentation is available at: https://docs.riimu.net/simply/application/ | ||
|
||
## Credits | ||
|
||
This library is Copyright (c) 2018 Riikka Kalliomäki. | ||
|
||
See LICENSE for license and copying information. | ||
|
||
[PSR-7 HTTP Message Interface]: https://www.php-fig.org/psr/psr-7 | ||
[PSR-11 Container Interface]: https://www.php-fig.org/psr/psr-11 | ||
[PSR-15 HTTP Handlers]: https://www.php-fig.org/psr/psr-15 | ||
[PSR-17 HTTP Factories]: https://github.com/php-fig/fig-standards/tree/master/proposed/http-factory/ |
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
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,26 @@ | ||
<?php | ||
|
||
use Sami\RemoteRepository\GitHubRemoteRepository; | ||
use Sami\Sami; | ||
use Symfony\Component\Finder\Finder; | ||
|
||
$iterator = Finder::create() | ||
->files() | ||
->name('*.php') | ||
->in(__DIR__ . '/src'); | ||
|
||
$theme = getenv('SAMI_THEME'); | ||
$settings = []; | ||
|
||
if ($theme) { | ||
$settings['theme'] = basename($theme); | ||
$settings['template_dirs'] = [dirname($theme)]; | ||
} | ||
|
||
return new Sami($iterator, $settings + [ | ||
'title' => 'Middleware Application Framework', | ||
'build_dir' => __DIR__ . '/build/doc', | ||
'cache_dir' => __DIR__ . '/build/cache', | ||
'remote_repository' => new GitHubRemoteRepository('simply-framework/application', __DIR__), | ||
'default_opened_level' => 2, | ||
]); |
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
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
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
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
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
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
Oops, something went wrong.