PHP code example of scherbak-electronics / php-app-template
1. Go to this page and download the library: Download scherbak-electronics/php-app-template 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/ */
scherbak-electronics / php-app-template example snippets
namespace App;
class Example {
public function sayHello() {
return "Hello from Example class!";
}
}
App\Example;
$example = new Example();
echo $example->sayHello();
bash
php main.php