Skip to content

Commit

Permalink
Merge pull request #70 from ergebnis/fix/vendor
Browse files Browse the repository at this point in the history
Fix: Rename namespace after move to @ergebnis
  • Loading branch information
localheinz committed Dec 9, 2019
2 parents 523e2c9 + 2f2bdd3 commit de8b72f
Show file tree
Hide file tree
Showing 39 changed files with 187 additions and 140 deletions.
4 changes: 2 additions & 2 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ declare(strict_types=1);
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/http-method
* @see https://github.com/ergebnis/http-method
*/

use Ergebnis\PhpCsFixer\Config;
Expand All @@ -19,7 +19,7 @@ Copyright (c) 2019 Andreas Möller
For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
@see https://github.com/localheinz/http-method
@see https://github.com/ergebnis/http-method
EOF;

$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php71($header));
Expand Down
85 changes: 64 additions & 21 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,46 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

For a full diff see [`1.0.0...master`][1.0.0...master].
For a full diff see [`2.0.0...master`][2.0.0...master].

### [`2.0.0`][2.0.0]

For a full diff see [`1.0.0...2.0.0`][1.0.0...2.0.0].

### Changed

* Renamed vendor namespace `Localheinz` to `Ergebnis` after move to [@ergebnis] ([#70]), by [@localheinz]

Run

```
$ composer remove localheinz/http-method
```

and


```
$ composer require ergebnis/http-method
```

to update.

Run

```
$ find . -type f -exec sed -i '.bak' 's/Localheinz\\Http/Ergebnis\\Http/g' {} \;
```

to replace occurrences of `Localheinz\Http` with `Ergebnis\Http`.

Run

```
$ find -type f -name '*.bak' -delete
```

to delete backup files created in the previous step.

### [`1.0.0`][1.0.0]

Expand All @@ -30,25 +69,29 @@ For a full diff see [`848192d...1.0.0`][848192d...1.0.0].
* Added interface for Varnish cache request methods ([#19]), by [@localheinz]
* Added interface for aggregating HTTP methods related to WebDAV ([#22]), by [@localheinz]

[1.0.0]: https://github.com/localheinz/http-method/releases/tag/1.0.0

[848192d...1.0.0]: https://github.com/localheinz/http-method/compare/848192d...1.0.0
[1.0.0...master]: https://github.com/localheinz/http-method/compare/1.0.0...master

[#5]: https://github.com/localheinz/http-method/pull/5
[#7]: https://github.com/localheinz/http-method/pull/7
[#8]: https://github.com/localheinz/http-method/pull/8
[#9]: https://github.com/localheinz/http-method/pull/9
[#10]: https://github.com/localheinz/http-method/pull/10
[#11]: https://github.com/localheinz/http-method/pull/11
[#12]: https://github.com/localheinz/http-method/pull/12
[#13]: https://github.com/localheinz/http-method/pull/13
[#14]: https://github.com/localheinz/http-method/pull/14
[#15]: https://github.com/localheinz/http-method/pull/15
[#16]: https://github.com/localheinz/http-method/pull/16
[#17]: https://github.com/localheinz/http-method/pull/17
[#18]: https://github.com/localheinz/http-method/pull/18
[#19]: https://github.com/localheinz/http-method/pull/19
[#22]: https://github.com/localheinz/http-method/pull/22
[1.0.0]: https://github.com/ergebnis/http-method/releases/tag/1.0.0
[2.0.0]: https://github.com/ergebnis/http-method/releases/tag/2.0.0

[848192d...1.0.0]: https://github.com/ergebnis/http-method/compare/848192d...1.0.0
[1.0.0...2.0.0]: https://github.com/ergebnis/http-method/compare/1.0.0...2.0.0
[2.0.0...master]: https://github.com/ergebnis/http-method/compare/2.0.0...master

[#5]: https://github.com/ergebnis/http-method/pull/5
[#7]: https://github.com/ergebnis/http-method/pull/7
[#8]: https://github.com/ergebnis/http-method/pull/8
[#9]: https://github.com/ergebnis/http-method/pull/9
[#10]: https://github.com/ergebnis/http-method/pull/10
[#11]: https://github.com/ergebnis/http-method/pull/11
[#12]: https://github.com/ergebnis/http-method/pull/12
[#13]: https://github.com/ergebnis/http-method/pull/13
[#14]: https://github.com/ergebnis/http-method/pull/14
[#15]: https://github.com/ergebnis/http-method/pull/15
[#16]: https://github.com/ergebnis/http-method/pull/16
[#17]: https://github.com/ergebnis/http-method/pull/17
[#18]: https://github.com/ergebnis/http-method/pull/18
[#19]: https://github.com/ergebnis/http-method/pull/19
[#22]: https://github.com/ergebnis/http-method/pull/22
[#70]: https://github.com/ergebnis/http-method/pull/70

[@ergebnis]: https://github.com/ergebnis
[@localheinz]: https://github.com/localheinz
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# http-method

[![Continuous Integration](https://github.com/localheinz/http-method/workflows/Continuous%20Integration/badge.svg)](https://github.com/localheinz/http-method/actions)
[![Latest Stable Version](https://poser.pugx.org/localheinz/http-method/v/stable)](https://packagist.org/packages/localheinz/http-method)
[![Total Downloads](https://poser.pugx.org/localheinz/http-method/downloads)](https://packagist.org/packages/localheinz/http-method)
[![Continuous Integration](https://github.com/ergebnis/http-method/workflows/Continuous%20Integration/badge.svg)](https://github.com/ergebnis/http-method/actions)
[![Latest Stable Version](https://poser.pugx.org/ergebnis/http-method/v/stable)](https://packagist.org/packages/ergebnis/http-method/)
[![Total Downloads](https://poser.pugx.org/ergebnis/http-method/downloads)](https://packagist.org/packages/ergebnis/http-method/)

Provides constants for HTTP request methods, inspired by [`teapot/status-code`](https://github.com/teapot-php/status-code).

Expand Down Expand Up @@ -41,12 +41,12 @@ In a similar fashion, this library here aims to provide a collection of interfac
Run

```
$ composer require localheinz/http-method
$ composer require ergebnis/http-method
```

## Usage

The interface [`Localheinz\Http\Method`](/src/Method.php) provides constants for all of the HTTP request methods that are standardized by
The interface [`Ergebnis\Http\Method`](/src/Method.php) provides constants for all of the HTTP request methods that are standardized by

* [RFC 5789](https://tools.ietf.org/html/rfc5789)
* [RFC 7231](https://tools.ietf.org/html/rfc7231)
Expand All @@ -63,7 +63,7 @@ namely
* `PUT`
* `TRACE`

The interface [`Localheinz\Http\Method\WebDav`](/src/Method/WebDav.php) provides constants for all of the HTTP request methods that are standardized by
The interface [`Ergebnis\Http\Method\WebDav`](/src/Method/WebDav.php) provides constants for all of the HTTP request methods that are standardized by

- [RFC 3648](https://tools.ietf.org/html/rfc3648)
- [RFC 3744](https://tools.ietf.org/html/rfc3744)
Expand Down Expand Up @@ -103,20 +103,20 @@ namely
- `UNLOCK`
- `UPDATEREDIRECTREF`

The interface [`Localheinz\Http\Method\Vendor\SquidCache`](/src/Method/Vendor/SquidCache.php) provides constants for a suggest HTTP request method used for purging items from the cache,
The interface [`Ergebnis\Http\Method\Vendor\SquidCache`](/src/Method/Vendor/SquidCache.php) provides constants for a suggest HTTP request method used for purging items from the cache,
namely

- `PURGE`

The interface [`Localheinz\Http\Method\Vendor\VarnishCache`](/src/Method/Vendor/VarnishCache.php) provides constants for a suggest HTTP request method used for invalidating and purging items from the cache, namely
The interface [`Ergebnis\Http\Method\Vendor\VarnishCache`](/src/Method/Vendor/VarnishCache.php) provides constants for a suggest HTTP request method used for invalidating and purging items from the cache, namely

- `BAN`
- `PURGE`

To use these constants, import the interfaces and refer to the constants instead of using magic strings:

```php
use Localheinz\Http\Method;
use Ergebnis\Http\Method;
use Psr\Http\Client;
use Psr\Http\Message;

Expand Down
15 changes: 9 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "localheinz/http-method",
"name": "ergebnis/http-method",
"type": "library",
"description": "Provides constants for HTTP request methods.",
"keywords": [
"http",
"request",
"method"
],
"homepage": "https://github.com/localheinz/http-method",
"homepage": "https://github.com/ergebnis/http-method",
"license": "MIT",
"authors": [
{
Expand All @@ -18,6 +18,9 @@
"require": {
"php": "^7.2"
},
"replace": {
"localheinz/http-method": "*"
},
"require-dev": {
"ergebnis/php-cs-fixer-config": "~1.1.0",
"ergebnis/test-util": "~0.9.0",
Expand All @@ -35,16 +38,16 @@
},
"autoload": {
"psr-4": {
"Localheinz\\Http\\": "src/"
"Ergebnis\\Http\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Localheinz\\Http\\Test\\": "test/"
"Ergebnis\\Http\\Test\\": "test/"
}
},
"support": {
"issues": "https://github.com/localheinz/http-method/issues",
"source": "https://github.com/localheinz/http-method"
"issues": "https://github.com/ergebnis/http-method/issues",
"source": "https://github.com/ergebnis/http-method"
}
}
3 changes: 2 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/http-method
* @see https://github.com/ergebnis/http-method
*/

namespace Localheinz\Http;
namespace Ergebnis\Http;

interface Method extends
Method\Rfc\Rfc5789,
Expand Down
4 changes: 2 additions & 2 deletions src/Method/Rfc/Rfc2068.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/http-method
* @see https://github.com/ergebnis/http-method
*/

namespace Localheinz\Http\Method\Rfc;
namespace Ergebnis\Http\Method\Rfc;

/**
* @see https://tools.ietf.org/html/rfc2068
Expand Down
4 changes: 2 additions & 2 deletions src/Method/Rfc/Rfc3253.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/http-method
* @see https://github.com/ergebnis/http-method
*/

namespace Localheinz\Http\Method\Rfc;
namespace Ergebnis\Http\Method\Rfc;

/**
* @see http://www.iana.org/go/rfc3253
Expand Down
4 changes: 2 additions & 2 deletions src/Method/Rfc/Rfc3648.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/http-method
* @see https://github.com/ergebnis/http-method
*/

namespace Localheinz\Http\Method\Rfc;
namespace Ergebnis\Http\Method\Rfc;

/**
* @see https://tools.ietf.org/html/rfc3648
Expand Down
4 changes: 2 additions & 2 deletions src/Method/Rfc/Rfc3744.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/http-method
* @see https://github.com/ergebnis/http-method
*/

namespace Localheinz\Http\Method\Rfc;
namespace Ergebnis\Http\Method\Rfc;

/**
* @see https://tools.ietf.org/html/rfc3744
Expand Down
4 changes: 2 additions & 2 deletions src/Method/Rfc/Rfc4437.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/http-method
* @see https://github.com/ergebnis/http-method
*/

namespace Localheinz\Http\Method\Rfc;
namespace Ergebnis\Http\Method\Rfc;

/**
* @see https://tools.ietf.org/html/rfc4437
Expand Down
4 changes: 2 additions & 2 deletions src/Method/Rfc/Rfc4791.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/http-method
* @see https://github.com/ergebnis/http-method
*/

namespace Localheinz\Http\Method\Rfc;
namespace Ergebnis\Http\Method\Rfc;

/**
* @see https://tools.ietf.org/html/rfc4791
Expand Down
4 changes: 2 additions & 2 deletions src/Method/Rfc/Rfc4918.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/http-method
* @see https://github.com/ergebnis/http-method
*/

namespace Localheinz\Http\Method\Rfc;
namespace Ergebnis\Http\Method\Rfc;

/**
* @see https://tools.ietf.org/html/rfc4918
Expand Down
4 changes: 2 additions & 2 deletions src/Method/Rfc/Rfc5323.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/http-method
* @see https://github.com/ergebnis/http-method
*/

namespace Localheinz\Http\Method\Rfc;
namespace Ergebnis\Http\Method\Rfc;

/**
* @see https://tools.ietf.org/html/rfc5323
Expand Down
4 changes: 2 additions & 2 deletions src/Method/Rfc/Rfc5789.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/http-method
* @see https://github.com/ergebnis/http-method
*/

namespace Localheinz\Http\Method\Rfc;
namespace Ergebnis\Http\Method\Rfc;

/**
* @see https://tools.ietf.org/html/rfc5789
Expand Down
4 changes: 2 additions & 2 deletions src/Method/Rfc/Rfc5842.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/http-method
* @see https://github.com/ergebnis/http-method
*/

namespace Localheinz\Http\Method\Rfc;
namespace Ergebnis\Http\Method\Rfc;

/**
* @see https://tools.ietf.org/html/rfc5842
Expand Down
4 changes: 2 additions & 2 deletions src/Method/Rfc/Rfc7231.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/localheinz/http-method
* @see https://github.com/ergebnis/http-method
*/

namespace Localheinz\Http\Method\Rfc;
namespace Ergebnis\Http\Method\Rfc;

/**
* @see https://tools.ietf.org/html/rfc7231
Expand Down

0 comments on commit de8b72f

Please sign in to comment.