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
Strukt\Env::withFile();//default .env file in your root folder
Strukt\Env::withFile(".env-dev");
Strukt\Env::set("root_dir", getcwd());//custom environment variable
Strukt\Env::get("root_dir");
repos(); //list all repositories
repos("published");//list all published strukt packages
repos("installed");//list all installed strukt packages
$core = new Strukt\Package\Core();//implements Strukt\Package\Pkg
//returns array of middlewares, commands and providers
$core->getSettings($type);//type is "App:Idx" or "App:Cli"
$core->getName();//core
$core->getCmdName();//null
$core->getFiles();//null
$core->getModules();//null
$core->isPublished();//true by default
$core->getRequirements();//null or array