1. Go to this page and download the library: Download piotrpress/composer-setuper 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/ */
piotrpress / composer-setuper example snippets
namespace MyVendor;
class MyClass {
static public function setup() {
return [
[
'action' => 'write',
'message' => 'Hello world!'
]
];
}
}
namespace MyVendor;
class MyClass {
static public function writeWorld() {
return [
'action' => 'write',
'message' => 'world!'
];
}
}