1. Go to this page and download the library: Download sonrac/wamp-server library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sonrac / wamp-server example snippets
app()->wampRouter->addSubscriber('com2.hello', function ($clientSession, $client) {
return 123;
});
app()->wampRouter->addRoute('com1.hello', function ($clientSession, $client) {
return 123;
})
app()->wampRouter->addSubscriber('com2.hello', function ($clientSession, $client) {
return 123;
});
app()->wampRouter->addRoute('com1.hello', function ($clientSession, $client) {
return 123;
})
bash
php artisan wamp:run-server
bash
php artisan register-routes
bash
php artisan wamp:run-server
bash
php artisan register-routes
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.