From b2d86c518882bf6265634ae1b4e296c187463094 Mon Sep 17 00:00:00 2001 From: Doug Bird Date: Mon, 4 Dec 2017 14:17:37 -0800 Subject: [PATCH] project init --- README.md | 7 +- bin/tlds2enums.sh | 0 src/formats/csv/tlds-name-only.csv | 285 +++++++++++++++++++++++++++ src/formats/json/.gitkeep | 0 src/formats/php/TldEnum/TldEnum.php | 291 ++++++++++++++++++++++++++++ 5 files changed, 580 insertions(+), 3 deletions(-) mode change 100755 => 100644 bin/tlds2enums.sh create mode 100644 src/formats/csv/tlds-name-only.csv create mode 100644 src/formats/json/.gitkeep create mode 100644 src/formats/php/TldEnum/TldEnum.php diff --git a/README.md b/README.md index 2b3603a..aef407b 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,10 @@ Lists of every [ICANN TLD](https://www.icann.org/resources/pages/tlds-2012-02-25 Forked from [list-of-top-level-domains](https://github.com/incognico/list-of-top-level-domains). -## Language Targets - * PHP - * JavaScript +## List Formats + * **PHP**: [php/TldEnum/TldEnum.php](src/formats/php/TldEnum/TldEnum.php) + * **JSON**: [json/tld-list.json](src/formats/json/tld-list.json) + * **CSV**: [csv/tlds-name-only.csv](src/formats/csv/tlds-name-only.csv) ## Legal The source code in this project is based on a fork of certain source code originally from the (incognico/list-of-top-level-domains)[https://github.com/incognico/list-of-top-level-domains] project, as retrieved on 2017-12-04, which was published to the public domain. diff --git a/bin/tlds2enums.sh b/bin/tlds2enums.sh old mode 100755 new mode 100644 diff --git a/src/formats/csv/tlds-name-only.csv b/src/formats/csv/tlds-name-only.csv new file mode 100644 index 0000000..3392016 --- /dev/null +++ b/src/formats/csv/tlds-name-only.csv @@ -0,0 +1,285 @@ +ac +ad +ae +aero +af +ag +ai +al +am +an +ao +aq +ar +arpa +as +asia +at +au +aw +ax +az +ba +bb +bd +be +bf +bg +bh +bi +biz +bj +bl +bm +bn +bo +bq +br +bs +bt +bv +bw +by +bz +ca +cat +cc +cd +cf +cg +ch +ci +ck +cl +cm +cn +co +com +coop +cr +cs +cu +cv +cw +cx +cy +cz +dd +de +dj +dk +dm +do +dz +ec +edu +ee +eg +eh +er +es +et +eu +fi +fj +fk +fm +fo +fr +ga +gb +gd +ge +gf +gg +gh +gi +gl +gm +gn +gov +gp +gq +gr +gs +gt +gu +gw +gy +hk +hm +hn +hr +ht +hu +id +ie +il +im +in +info +int +io +iq +ir +is +it +je +jm +jo +jobs +jp +ke +kg +kh +ki +km +kn +kp +kr +kw +ky +kz +la +lb +lc +li +lk +local +lr +ls +lt +lu +lv +ly +ma +mc +md +me +mf +mg +mh +mil +mk +ml +mm +mn +mo +mobi +mp +mq +mr +ms +mt +mu +museum +mv +mw +mx +my +mz +na +name +nato +nc +ne +net +nf +ng +ni +nl +no +np +nr +nu +nz +om +onion +org +pa +pe +pf +pg +ph +pk +pl +pm +pn +pr +pro +ps +pt +pw +py +qa +re +ro +rs +ru +rw +sa +sb +sc +sd +se +sg +sh +si +sj +sk +sl +sm +sn +so +sr +ss +st +su +sv +sx +sy +sz +tc +td +tel +tf +tg +th +tj +tk +tl +tm +tn +to +tp +tr +travel +tt +tv +tw +tz +ua +ug +uk +um +us +uy +uz +va +vc +ve +vg +vi +vn +vu +wf +ws +xxx +ye +yt +yu +za +zm +zr +zw + diff --git a/src/formats/json/.gitkeep b/src/formats/json/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/formats/php/TldEnum/TldEnum.php b/src/formats/php/TldEnum/TldEnum.php new file mode 100644 index 0000000..21bc44b --- /dev/null +++ b/src/formats/php/TldEnum/TldEnum.php @@ -0,0 +1,291 @@ +