PHP code example of hnraytek / flame-module-kernel
1. Go to this page and download the library: Download hnraytek/flame-module-kernel 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/ */
hnraytek / flame-module-kernel example snippets
#[Module(name: 'user', version: '1.0.0')]
#[Provides(UserServiceInterface::class, UserService::class)]
class UserModule {
#[Route(path: '/users', methods: ['GET'])]
public function index() {
return json(['users' => []]);
}
}
bash
php think flame discover