Download the PHP package sanchescom/php-wifi without Composer

On this page you can find all versions of the php package sanchescom/php-wifi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-wifi

Build Status codecov Maintainability StyleCI Quality Score

PHP WiFi

A modern, cross-platform PHP library for managing WiFi networks. Built with PHP 8.1+ and fully typed for better IDE support and type safety.

Features

Requirements

Installing

Require this package, with Composer, in the root directory of your project.

Basic Usage

Scanning for Networks

Connecting and Disconnecting

Advanced Usage

Filtering Networks

Finding Specific Networks

Sorting Networks

Working with Network Properties

Static Helper Methods

CLI Usage

The library includes a command-line interface for managing WiFi networks directly from the terminal.

List all available networks

List only connected networks

Connect to a network

Disconnect from a network

API Reference

WiFi Class (Static Methods)

Method Return Type Description
WiFi::scan() Collection Scan for all available networks
WiFi::getConnected() AbstractNetwork[] Get all connected networks
WiFi::getStrongestNetwork() AbstractNetwork Get the strongest available network
WiFi::get24GhzNetworks() Collection Get all 2.4GHz networks
WiFi::get5GhzNetworks() Collection Get all 5GHz networks
WiFi::getNetworksBySecurity(string $type) Collection Get networks by security type

Collection Methods

Method Return Type Description
getAll() AbstractNetwork[] Get all networks as array
getBySsid(string $ssid) AbstractNetwork Find network by SSID
getByBssid(string $bssid) AbstractNetwork Find network by BSSID (MAC)
getConnected() AbstractNetwork[] Get connected networks
getBySecurity(string $type) Collection Filter by security type
getByMinSignalStrength(float $dbm) Collection Filter by minimum signal strength
getByChannel(int $channel) Collection Filter by channel
get24GhzNetworks() Collection Get 2.4GHz networks
get5GhzNetworks() Collection Get 5GHz networks
sortBySignalStrength() Collection Sort by signal strength
getStrongest() AbstractNetwork Get strongest network

Network Properties

Property Type Description
$ssid string Network name
$bssid string MAC address
$channel int WiFi channel
$frequency int Frequency in MHz
$quality float Signal quality percentage
$dbm float Signal strength in dBm
$security string Security type
$securityFlags string Security flags
$connected bool Connection status

Network Methods

Method Parameters Description
connect() string $password, string $device Connect to the network
disconnect() string $device Disconnect from the network
getSecurityType() - Get security type (WPA2/WPA/WEP)

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Platform Support

Linux

macOS

Windows

What's New in v2.0

Upgrading from v1.x

The main breaking changes:

  1. Minimum PHP version is now 8.1 (was 7.2)
  2. Collection methods now have proper return types
  3. tightenco/collect replaced with illuminate/collections

Most of the existing API remains compatible. New methods are additive.

Testing

Code Style

Platform-Specific Notes

Device Names


All versions of php-wifi with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1 || ^8.2 || ^8.3
splitbrain/php-cli Version ^1.3
illuminate/collections Version ^11.46
phplucidframe/console-table Version ^1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sanchescom/php-wifi contains the following files

Loading the files please wait ...