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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package framework

Strukt Framework

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

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

PHP Build Version
Package Version
Requires php Version ^8.1
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package strukt/framework contains the following files

Loading the files please wait ....