sanchescom / php-wifi

Cross-platform PHP library for scan, connect and disconnect Wi-Fi networks.
GNU General Public License v3.0
49 stars 14 forks source link

We are getting this issue. #3

Closed shantun001 closed 5 years ago

shantun001 commented 5 years ago

Hello,

Please checked error screenshot. Screenshot_1

Screenshot_2

Fatal error: Uncaught Error: Class 'Sanchescom\WiFi\WiFi' not found in C:\xamppnew\htdocs\Net_Wifi-master\seond\tests\demo.php:8 Stack trace: #0 C:\xamppnew\htdocs\Net_Wifi-master\seond\tests\demo.php(20): Example->getAllNetworks() #1 {main} thrown in C:\xamppnew\htdocs\Net_Wifi-master\seond\tests\demo.php on line 8

Screenshot_3

Please Help me to solve this issue.

Thank you.

sanchescom commented 5 years ago

Hi, You need to add require __DIR__ . '/../../vendor/autoload.php'; in the top of the file.