PHP code example of virge / project
1. Go to this page and download the library: Download virge/project 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/ */
virge / project example snippets
namespace Siosphere\MyCapsule;
/**
*
*/
class Capsule extends \Virge\Core\Capsule {
public function registerCapsule() {
}
}
use Siosphere\MyCapsule\Service\TestService;
use Virge\Virge;
Virge::registerService("my_service_identifier", new TestService());