PHP code example of edmondscommerce / mock-server
1. Go to this page and download the library: Download edmondscommerce/mock-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/ */
edmondscommerce / mock-server example snippets
$mockServer=\EdmondsCommerce\MockServer\Factory::getMockServer();
$mockServer->startServer();
declare(strict_types=1);
ckServer\Factory::getStaticRouter();
//Add your routes here
/**
* IMPORTANT - you have to `return` the