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
Packages reference file location ./cfg/repo.ini
Packages
Default Package
The above methods are interfaced in class Strukt\Framework\Contract\Package
you must use them in your package.
Building Packages
The first step in developing your package will require you to install strukt-framework
and execute composer exec strukt
command that will create your folder structure. You'll need to create src
and package
folders.
See structure of package below:
Again, your package class in src/Strukt/Package/Pkg<Package Name>.php
will have methods
listed in Strukt\Fraamework\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
and indicate you are currently in-development with the key/keyword package
which will allow the publisher to install files in the your app source folder app/src
.
The publish:package
command installs from vendor
but in development-mode you can use --dev
switch
to install your package that will be located in your project root.
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
strukt/router Version v1.1.5-alpha
phplucidframe/console-table Version ^1.2
psy/psysh Version ^v0.11.21
filp/whoops Version ^2.14
nunomaduro/collision Version v7.x-dev
strukt/generator Version v1.1.2-alpha
strukt/process Version v1.1.1-alpha