Download the PHP package mhassan654/license-support without Composer
On this page you can find all versions of the php package mhassan654/license-support. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download mhassan654/license-support
More information about mhassan654/license-support
Files in mhassan654/license-support
Download mhassan654/license-support
More information about mhassan654/license-support
Files in mhassan654/license-support
Vendor mhassan654
Package license-support
Short Description A few useful reusable support package for Laravelj
License MIT
Package license-support
Short Description A few useful reusable support package for Laravelj
License MIT
Please rate this library. Is it a good library?
Informations about the package license-support
Licensing Support
Support collection for Laravel. This package is standalone and does not require external packages.
Install
Install via Composer:
Support Classes
IpSupport
Contains methods for working with IP addresses.
use Mhassan654\LicenseSupport\Support\IpSupport;
| Method | Description | Result |
|---|---|---|
| isLocalhost | Check client is from localhost | boolean |
| getLocalhostPublicIp | Get client public IP address if it is localhost | null or string |
| getIP | Get client real IP address | string |
- The
getLocalhostPublicIpmethod is useful for checking if the client is from localhost. Uses https://api.ipify.org/?format=json endpoint. - In laravel native way you can use
Request::ip()method but this method is cover all cases. For example cloudflare, nginx, etc. Also see this stackoverflow question.
All versions of license-support with dependencies
PHP Build Version
Package Version
The package mhassan654/license-support contains the following files
Loading the files please wait ...