Download the PHP package acamposm/ping without Composer
On this page you can find all versions of the php package acamposm/ping. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download acamposm/ping
More information about acamposm/ping
Files in acamposm/ping
Informations about the package ping
PING for Laravel
This ping class allow making ping request from Laravel applications, it is based on PING command from the linux iputils package.
ping uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway. ECHO_REQUEST datagrams (pings) have an IP and ICMP header, followed by a struct timeval and then an arbitrary number ofpadbytes used to fill out the packet.
- Installation
- Usage
- Change Count
- Change Interval
- Change Packet Size
- Change Timeout
- Change Time To Live
- Sample output
- Testing
- Changelog
- Contributing
- Security & Vulnerabilities
- Standards
- Credits
- License
Installation
You can install the package via composer and then publish the assets:
Prior to Ping 2.1.0 version you can install with:
From Ping 2.1.0 version you can install with:
Usage
For basic usage you only need to create with an ip address as a first argument and run...
Change Count
Stop after sending count ECHO_REQUEST packets. With deadline option, ping waits for count ECHO_REPLY packets, until the timeout expires.
Change Interval
Wait interval seconds between sending each packet. The default is to wait for one second between each packet normally, or not to wait in flood mode. Only super-user may set interval to values less than 0.2 seconds.
Change Packet Size
Specifies the number of data bytes to be sent. The default is 56, which translates into 64 ICMP data bytes when combined with the 8 bytes of ICMP header data.
Change Timeout
Time to wait for a response, in seconds. The option affects only timeout in absence of any responses, otherwise ping waits for two RTTs.
Change Time To Live
ping only. Set the IP Time to Live.
Sample outputs
Here you can see three output samples of the ping command...
- The first with domain.
- The second with an IPv4 Address
- The third with an IPv6 Address
Sample output on Windows based server to https://google.com
Sample output from Windows based server to local gateway IPv4
Sample output from Windows based server to link local IPv6 address
Testing
For running the tests, in the console run:
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Thank you for considering contributing to the improvement of the package. Please see CONTRIBUTING for details.
Security & Vulnerabilities
If you discover any security related issues, please send an e-mail to Angel Campos via [email protected] instead of using the issue tracker. All security vulnerabilities will be promptly addressed.
Standards
The php package IPv4 Address Converter, comply with the next standards:
Credits
License
The package Ping is open-source package and is licensed under The MIT License (MIT). Please see License File for more information.