Skip to content

Commit 6133fe0

Browse files
authored
Merge pull request #223 from jeremykendall/develop
Prepare 5.3.0 release
2 parents fa7937a + 6945b8a commit 6133fe0

36 files changed

+2887
-565
lines changed

.php_cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
<?php
22

3+
$header = <<<EOF
4+
PHP Domain Parser: Public Suffix List based URL parsing.
5+
6+
@see http://github.com/jeremykendall/php-domain-parser for the canonical source repository
7+
8+
@copyright Copyright (c) 2017 Jeremy Kendall (http://jeremykendall.net)
9+
10+
For the full copyright and license information, please view the LICENSE
11+
file that was distributed with this source code.
12+
EOF;
13+
314
$finder = PhpCsFixer\Finder::create()
415
->in(__DIR__.'/src')
516
->in(__DIR__.'/tests')
@@ -10,6 +21,12 @@ return PhpCsFixer\Config::create()
1021
'@PSR2' => true,
1122
'array_syntax' => ['syntax' => 'short'],
1223
'concat_space' => ['spacing' => 'none'],
24+
'header_comment' => [
25+
'commentType' => 'PHPDoc',
26+
'header' => $header,
27+
'location' => 'after_open',
28+
'separate' => 'both',
29+
],
1330
'new_with_braces' => true,
1431
'no_blank_lines_after_phpdoc' => true,
1532
'no_empty_phpdoc' => true,
@@ -24,6 +41,7 @@ return PhpCsFixer\Config::create()
2441
'phpdoc_order' => true,
2542
'phpdoc_scalar' => true,
2643
'phpdoc_to_comment' => true,
44+
'phpdoc_summary' => true,
2745
'psr0' => true,
2846
'psr4' => true,
2947
'return_type_declaration' => ['space_before' => 'none'],

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,41 @@
22

33
All Notable changes to `PHP Domain Parser` **5.x** series will be documented in this file
44

5+
## 5.3.0 - 2018-05-22
6+
7+
### Added
8+
9+
- `Pdp\PublicSuffixListSection` interface implemented by `Pdp\Rules` and `Pdp\PublicSuffix`
10+
- `Pdp\DomainInterface` interface implemented by `Pdp\Domain` and `Pdp\PublicSuffix`
11+
- `Pdp\Domain::getContent` replaces `Pdp\Domain::getDomain`
12+
- `Pdp\Domain::withLabel` adds a new label to the `Pdp\Domain`.
13+
- `Pdp\Domain::withoutLabel` removes labels from the `Pdp\Domain`.
14+
- `Pdp\Domain::withPublicSuffix` updates the `Pdp\Domain` public suffix part.
15+
- `Pdp\Domain::withSubDomain` updates the `Pdp\Domain` sub domain part.
16+
- `Pdp\Domain::append` appends a label to `Pdp\Domain`.
17+
- `Pdp\Domain::prepend` prepends a label to `Pdp\Domain`.
18+
- `Pdp\Domain::resolve` attach a public suffix to the `Pdp\Domain`.
19+
- `Pdp\Domain::isResolvable` tells whether the current `Pdp\Domain` can have a public suffix attached to it or not.
20+
- `Pdp\PublicSuffix::createFromDomain` returns a new `Pdp\PublicSuffix` object from a `Pdp\Domain`object
21+
- `Pdp\Exception` sub namespace to organize exception. All exception extends the `Pdp\Exception` class to prevent BC break.
22+
23+
### Fixed
24+
25+
- `Pdp\Domain` domain part computation (public suffix, registrable domain and sub domain)
26+
- `Pdp\Domain` and `Pdp\PublicSuffix` host validation compliance to RFC improved
27+
- Improve `Pdp\Converter` and `Pdp\Manager` class to better report error on IDN conversion.
28+
- Improve `Pdp\Installer` vendor directory resolution see [PR #222](https://github.com/jeremykendall/php-domain-parser/pull/222)
29+
- `Pdp\Exception` nows extends `InvalidArgumentException` instead of `RuntimeException`
30+
31+
### Deprecated
32+
33+
- `Pdp\Domain::getDomain` use instead `Pdp\Domain::getContent`
34+
- `Pdp\Rules::ALL_DOMAINS` use the empty string instead
35+
36+
### Removed
37+
38+
- None
39+
540
## 5.2.0 - 2018-02-23
641

742
### Added

0 commit comments

Comments
 (0)