1. Go to this page and download the library: Download getinstance/listingtools 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/ */
getinstance / listingtools example snippets
/* listing 001.01 */
public function getMatches()
{
return $this->output;
}
/* /listing 001.01 */
/* listing 001.02 */
public function reset()
{
$this->reading = [];
$this->output = [];
}
/* /listing 001.02 */
public function getMatches()
{
return $this->output;
}
/* listing 001.02 */
print "This is my example code\n";
// ...
/* /listing 001.02 */
print "here is some boilerplate that is not relevant\n";
/* listing 001.02 */
print "I return to my listing\n";
/* /listing 001.02 */
print "This is my example code\n";
// ...
print "I return to my listing\n";