Download the PHP package strukt/framework without Composer
On this page you can find all versions of the php package strukt/framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package framework
Strukt Framework
The is the package that unifies all strukt-strukt components under the framework.
Rarely should anyone use this on its own.
Getting started
Setup, Cache, Configuration & Environment
Cache
Always remember to clear and reload the cache when necessary
Shell
Drop into shell
Setting Application Type
Configuration
Environment Setup
This class is defaultly found in strukt-commons
Setup Packages Registry
File location ./cfg/repo.ini
Packages
Default Package
The above methods are in abstract class Strukt\Package\Pkg
you can use them to create your package.
Building Packages
Your first step in developing your package will require you to install strukt-framework
and execute composer exec strukt-cfg
command that will create your folder structure. You'll need to create src
and package
folders.
See structure of package below.
Your package class in src/Strukt/Package/Pkg<Package Name>.php
will have methods
listed in the Default Package section that is it should implement the
interface Strukt\Contract\Package
Package Autoloading
You may require to autoload libraries both from your root directory and package resources.
Note
For packages that require installation into your app/src/{{AppName}}
folder, there
are a few tricks you could use while building your package. The publish:package
command
takes argument package
for publishing packages that are currently in development,
since your source will be in the root folder in a subfolder called package
.
This will require you to enter into your cfg/repo.php
(See Setup Packages Registry) and indicate your currently in-development package with the key/keyword package
which will allow the publisher to install files in the your app source folder app/src
.
Validator
Example
Validator Annotations
Adding Validators
New validators can be added is in your lib/App/Validator.php
There you can find an example App\Validator::isLenGt
All versions of framework with dependencies
strukt/console Version 1.0.0
symfony/http-foundation Version ^4.3
phplucidframe/console-table Version ^1.2
psy/psysh Version ^v0.11.21
strukt/process Version v1.1.0
filp/whoops Version ^2.14
nunomaduro/collision Version v7.x-dev
strukt/generator Version v1.1.1-alpha
strukt/router Version v1.1.5-alpha