1. Go to this page and download the library: Download strukt/framework 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/ */
strukt / framework example snippets
config("app.type", "App:Idx")// for index.php, alternative App:Cli for console
namespace Payroll\AuthModule\Form;
use Strukt\Framework\Contract\Form as AbstractForm;
class User extends AbstractForm{
/**
* @IsNotEmpty()
* @IsAlpha()
*/
public string $username;
/**
* @IsNotEmpty()
*/
public string $password;
}