Commit graph

41 commits

Author SHA1 Message Date
The Respect Panda 967f7b6cc7 Update Regional Information 2024-04-13 11:45:55 +02:00
The Respect Panda ccec34cf21 Update Regional Information 2024-03-15 11:45:30 +01:00
The Respect Panda 703f610ee8 Update Regional Information 2023-06-13 21:46:15 -03:00
github-actions[bot] dd053f2eea
Update Regional Information (#1414)
Co-authored-by: The Respect Panda <therespectpanda@gmail.com>
2023-03-19 05:35:32 +00:00
github-actions[bot] 2080e0d2fb
Update Regional Information (#1410)
Co-authored-by: The Respect Panda <therespectpanda@gmail.com>
2023-03-09 00:51:45 +00:00
Alexandre Gomes Gaigalas ab3732f91f Use SPDX IDs for licensing
SPDX IDs are shorter than licensing notes previously used, and
adhere better to FOSS standards. It is also machine-readable.
2023-02-19 00:19:10 -03:00
Alexandre Gomes Gaigalas ef4778b456 Remove version info from Tld.php
We currently use a GitHub action to automate updating this file.

That action has the ability to ignore making the PR if the file
didn't changed.

Having the version number, which changed a line, was causing
several useless PR.

Users can still check if Tld.php changed by seeing the git log,
and a manual note should be issued by the maintainer on the
CHANGELOG.md file when a release containing such changes is
made.
2023-02-19 00:19:09 -03:00
Alexandre Gomes Gaigalas f080f7da08 Improve auto-updaters and pull requesters, auto-tld fix 2023-02-15 00:49:09 -03:00
Alexandre Gomes Gaigalas 15f148da24 Dusting off. See CHANGELOG.md for more details on this commit 2023-02-13 03:59:11 -03:00
The Respect Panda 143420e79f Update list of top-level domains 2021-03-14 00:30:48 +00:00
The Respect Panda 5a0b53831f
Update list of top-level domains 2021-02-06 12:56:35 +01:00
The Respect Panda 444f105ea6
Update list of top-level domains 2020-10-04 12:11:09 +02:00
The Respect Panda 314aa36e37 Update list of top-level domains 2020-08-23 00:24:43 +00:00
The Respect Panda 78d1ce404c Update list of top-level domains 2020-07-19 00:20:19 +00:00
The Respect Panda e2783d4220 Update list of top-level domains 2020-07-12 00:19:29 +00:00
The Respect Panda 80f236bb90 Update list of top-level domains 2020-06-07 00:14:45 +00:00
The Respect Panda 83936a0c00
Update list of top-level domains 2020-06-03 09:40:10 +02:00
Henrique Moody 6f92132874
Update list of top-level domains
This commit will add the LLP, XN--MGBCPQ6GPA1A, XN--Q7CE6A and XN--QXA6A
top-level domains, and remove BNL, CARTIER, CHRYSLER, DODGE, DUNS,
EVERBANK, HONEYWELL, ISELECT, LADBROKES, LANCOME, LIAISON, MOBILY,
MOPAR, MOVISTAR, NADEX, PIAGET, SRT, STARHUB, TELEFONICA, UCONNECT,
VISTAPRINT, WARMAN, XN--ESTV75G and XN--MGBB9FBPOB top-level domains.

Below the Bash command I used to generate the new list:

curl https://data.iana.org/TLD/tlds-alpha-by-domain.txt |
  grep --invert-match '^#' |
  sed --regexp-extended "s,^,',; s/$/', /" |
  tr --delete '\n' |
  fold --width=72 --spaces

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2020-05-19 11:31:43 +02:00
Henrique Moody 2d0f56d9cb
Merge branch '1.1'
This commit will revert the update of subdivision codes [1] since the
way we store this data is very different from the merged branch.

[1]: 8b8f7db713

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-29 23:17:53 +02:00
Henrique Moody 5c61c25680
Update TLD list to version 2019052600
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-26 13:12:16 +02:00
Henrique Moody ef8a8f4b27
Turn LICENSE file into plain/text
There is no need for that file to be a Markdown, and it can be a plain
text file.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-23 16:21:34 +02:00
Henrique Moody 6040ddee42
Fix the case of the "@inheritDoc" tag
According to the official documentation [1] the correct way of writing
the "inheritDoc" tag is with the uppercase "D".

[1]: https://docs.phpdoc.org/guides/inheritance.html

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-04-05 19:02:12 +02:00
Henrique Moody 7e884cc0f4
Apply "SlevomatCodingStandard.TypeHints.UselessConstantTypeHint"
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-02-09 14:09:29 +01:00
Henrique Moody d9628a89dd
Merge branch '1.1' 2018-10-09 06:38:43 +02:00
Henrique Moody 203f8e7e9d
Update TLD list with version 2018100800 from IANA
As it seems, the TLDs "goodhands", "jlc", "panerai", "statoil",
"telecity", and "vista" were removed from the list.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-10-09 06:03:51 +02:00
Henrique Moody f5c167c411
Merge branch '1.1' 2018-08-22 19:09:55 +02:00
Henrique Moody add542ea48
Update "Tld" rule with IANA's list
This commit will update the list of Top-Level Domains in the "Tld" rule
with the latest version found in the website of IANA (Internet Assigned
Numbers Authority).

The list was created with the commands below:

curl -L curl -L https://data.iana.org/TLD/tlds-alpha-by-domain.txt |
    grep -v '^#' |
    tr '[A-Z]' '[a-z]' |
    sed -E "s,^,',; s/$/', /" |
    tr -d '\n' |
    fold -w 72 -s

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-08-18 15:10:37 +02:00
paul karikari 8573d5f064
Apply contribution guidelines to "Tld"
Also check if input is scalar before validation.

Signed-off-by: Paul Karikari <paulkarikari1@gmail.com>
Co-Authored-By: Henrique Moody <henriquemoody@gmail.com>
2018-06-15 22:12:17 +02:00
Radoslaw Wesolowski 700e23777f
Added .studio tld
https://icannwiki.org/.studio
2018-06-06 14:57:39 +02:00
Henrique Moody ccf60f0ee3
Method validate() should always return a boolean 2018-01-28 17:38:36 +01:00
Henrique Moody ef975629f3
Changes on PHP-CS-Fixer configuration
Because of `declare(strict_types=1)` some changes were necessary.
2018-01-04 17:59:37 +01:00
Bogus bb5ad2d988
Replaced TLDs with current list from IANA 2017-02-08 09:22:25 +01:00
Henrique Moody f34a34c0b2
Always use mbstring functions 2016-10-30 10:45:30 +01:00
Henrique Moody 4d72af312f
Update PHP-CS-Fixer settings 2016-10-30 10:39:23 +01:00
Henrique Moody 9c49dd3bcf Use short array syntax 2015-10-17 22:56:32 -03:00
Marcel Voigt 4329252709 Suggest php-cs-fixer and add default config
See .php_cs for default configuration. Install php-cs-fixer globally and run
  php-cs-fixer fix
to fix common coding standards or style issues.
2015-08-10 20:22:04 +02:00
Lucas Kauz 0a93f1d350 New generic tlds
Source: https://www.icann.org/resources/pages/tlds-2012-02-25-en
2015-07-03 23:55:21 -03:00
Henrique Moody a3c945aa51 Add license information and copyright in all files 2015-06-08 12:09:25 -03:00
Henrique Moody b8c76e3054 Fix some coding standards 2015-06-08 11:51:45 -03:00
Henrique Moody da193b75e0 Use PSR-2 standard
Most changes was made by php-cs-fixer.
Also removes unused `RecursiveTreeIterator` class.
2015-01-08 00:44:12 -02:00
Graham Campbell ae056920b4 PSR-4 autoloading 2014-07-12 20:20:43 +01:00
Renamed from library/Respect/Validation/Rules/Tld.php (Browse further)