Download the PHP package wolverineo250kr/yii2-pevnev-domain-helper without Composer
On this page you can find all versions of the php package wolverineo250kr/yii2-pevnev-domain-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wolverineo250kr/yii2-pevnev-domain-helper
More information about wolverineo250kr/yii2-pevnev-domain-helper
Files in wolverineo250kr/yii2-pevnev-domain-helper
Download wolverineo250kr/yii2-pevnev-domain-helper
More information about wolverineo250kr/yii2-pevnev-domain-helper
Files in wolverineo250kr/yii2-pevnev-domain-helper
Vendor wolverineo250kr
Package yii2-pevnev-domain-helper
Short Description Domain helper based on Yii2 framework
License MIT
Package yii2-pevnev-domain-helper
Short Description Domain helper based on Yii2 framework
License MIT
Please rate this library. Is it a good library?
Informations about the package yii2-pevnev-domain-helper
yii2-pevnev-domain-helper
Install
composer require "wolverineo250kr/yii2-pevnev-domain-helper":"*"Usage
To get domain zone simply call in your Yii2 app following php command:\wolverineo250kr\helpers\domain\DomainHelper::getZone();given url: https://yourdomain.com
result example: com
----------------------------------------------------------------
To get domain name without subdomain simply call in your Yii2 app following php command:
\wolverineo250kr\helpers\domain\DomainHelper::getBase();given url: https://yourdomain.com
result example: yourdomain.com
----------------------------------------------------------------
To get scheme call in your Yii2 app following php command:
\wolverineo250kr\helpers\domain\DomainHelper::getScheme();given url: https://yourdomain.com
result example: https
----------------------------------------------------------------
To get subdomain call in your Yii2 app following php command*:
\wolverineo250kr\helpers\domain\DomainHelper::getSubdomain();given url: https://subdomain.yourdomain.com
result example: subdomain
* Incase of url has more than one subdomain, the command will always take first subdomain. Thus https://subdomain-one.subdomain-two.yourdomain.com will output subdomain-one
All versions of yii2-pevnev-domain-helper with dependencies
PHP Build Version
Package Version
The package wolverineo250kr/yii2-pevnev-domain-helper contains the following files
Loading the files please wait ....