From af37890a4805f459cb08a3e0edeef1a46e46a382 Mon Sep 17 00:00:00 2001 From: Doug Bird Date: Wed, 13 Dec 2017 22:38:21 -0800 Subject: [PATCH] Update README.md --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 44fe888..e791d6f 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A [canonical list of TLDs in CSV format](/tlds.csv) was used to generate the nat The lists can be conveniently used in PHP or Node projects including this package. ### Node - * use npm to add the `tld-enum` package to your project as needed + * use npm to add the `tld-enum` package to your project ```sh $ npm install tld-enum --save ``` @@ -61,13 +61,18 @@ The lists can be conveniently used in PHP or Node projects including this packag ``` ### PHP - * use composer to add the `katmore/tld-enum` package to your project as needed + * use composer to add the `katmore/tld-enum` package to your project ```sh $ composer require katmore/tld-enum ``` * access the list by using the `\TldEnum\TldEnum::TLD_ENUM` class constant array + ```php + require_once __DIR__ . '/vendor/autoload.php'; + \TldEnum\TldEnum::TLD_ENUM; //an array with every IANA TLD + ``` + The following example... ```php