Skip to content

Commit

Permalink
Merge 5fbdc06 into 4c85f4e
Browse files Browse the repository at this point in the history
  • Loading branch information
chadicus committed Apr 22, 2019
2 parents 4c85f4e + 5fbdc06 commit 0fdcb1e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -3,6 +3,7 @@ php:
- 7.0
- 7.1
- 7.2
- 7.3
- nightly
env:
- PREFER_LOWEST="--prefer-lowest --prefer-stable"
Expand All @@ -15,4 +16,4 @@ before_script:
- composer update $PREFER_LOWEST
script:
- ./vendor/bin/phpunit --coverage-clover clover.xml
after_success: ./vendor/bin/coveralls -v
after_success: ./vendor/bin/php-coveralls -v
28 changes: 14 additions & 14 deletions README.md
Expand Up @@ -2,34 +2,34 @@

Middleware to add an OPTIONS route to existing routes.

[![Build Status](https://travis-ci.com/subjective-php/slim-options-middlware.svg?branch=master)](https://travis-ci.com/subjective-php/slim-options-middlware)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/subjective-php/slim-options-middlware/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/subjective-php/slim-options-middlware/?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/subjective-php/slim-options-middlware/badge.svg?branch=master)](https://coveralls.io/github/subjective-php/slim-options-middlware?branch=master)
[![Build Status](https://travis-ci.com/subjective-php/slim-options-middleware.svg?branch=master)](https://travis-ci.com/subjective-php/slim-options-middleware)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/subjective-php/slim-options-middleware/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/subjective-php/slim-options-middleware/?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/subjective-php/slim-options-middleware/badge.svg?branch=master)](https://coveralls.io/github/subjective-php/slim-options-middleware?branch=master)

[![Latest Stable Version](https://poser.pugx.org/subjective-php/slim-options-middlware/v/stable)](https://packagist.org/packages/subjective-php/slim-options-middlware)
[![Latest Unstable Version](https://poser.pugx.org/subjective-php/slim-options-middlware/v/unstable)](https://packagist.org/packages/subjective-php/slim-options-middlware)
[![License](https://poser.pugx.org/subjective-php/slim-options-middlware/license)](https://packagist.org/packages/subjective-php/slim-options-middlware)
[![Latest Stable Version](https://poser.pugx.org/subjective-php/slim-options-middleware/v/stable)](https://packagist.org/packages/subjective-php/slim-options-middleware)
[![Latest Unstable Version](https://poser.pugx.org/subjective-php/slim-options-middleware/v/unstable)](https://packagist.org/packages/subjective-php/slim-options-middleware)
[![License](https://poser.pugx.org/subjective-php/slim-options-middleware/license)](https://packagist.org/packages/subjective-php/slim-options-middleware)

[![Total Downloads](https://poser.pugx.org/subjective-php/slim-options-middlware/downloads)](https://packagist.org/packages/subjective-php/slim-options-middlware)
[![Daily Downloads](https://poser.pugx.org/subjective-php/slim-options-middlware/d/daily)](https://packagist.org/packages/subjective-php/slim-options-middlware)
[![Monthly Downloads](https://poser.pugx.org/subjective-php/slim-options-middlware/d/monthly)](https://packagist.org/packages/subjective-php/slim-options-middlware)
[![Total Downloads](https://poser.pugx.org/subjective-php/slim-options-middleware/downloads)](https://packagist.org/packages/subjective-php/slim-options-middleware)
[![Daily Downloads](https://poser.pugx.org/subjective-php/slim-options-middleware/d/daily)](https://packagist.org/packages/subjective-php/slim-options-middleware)
[![Monthly Downloads](https://poser.pugx.org/subjective-php/slim-options-middleware/d/monthly)](https://packagist.org/packages/subjective-php/slim-options-middleware)

## Requirements

Requires PHP 7.0 (or later).

## Composer
To add the library as a local, per-project dependency use [Composer](http://getcomposer.org)! Simply add a dependency on `subjective-php/slim-options-middlware` to your project's `composer.json` file such as:
To add the library as a local, per-project dependency use [Composer](http://getcomposer.org)! Simply add a dependency on `subjective-php/slim-options-middleware` to your project's `composer.json` file such as:

```sh
composer require subjective-php/slim-options-middlware
composer require subjective-php/slim-options-middleware
```

## Contact
Developers may be contacted at:

* [Pull Requests](https://github.com/subjective-php/slim-options-middlware/pulls)
* [Issues](https://github.com/subjective-php/slim-options-middlware/issues)
* [Pull Requests](https://github.com/subjective-php/slim-options-middleware/pulls)
* [Issues](https://github.com/subjective-php/slim-options-middleware/issues)

## Project Build
With a checkout of the code get [Composer](http://getcomposer.org) in your PATH and run:
Expand All @@ -52,7 +52,7 @@ $app = new Slim\App([
]
]);

// create the middlware
// create the middleware
$optionsMiddleware = new Middleware\OptionsMiddleware('*', ['Authorization', 'Content-Type']);

$app->map(['GET', 'POST'], 'foos', function ($request, $response, $args) {
Expand Down

0 comments on commit 0fdcb1e

Please sign in to comment.