Download the PHP package katmore/flat without Composer

On this page you can find all versions of the php package katmore/flat. 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 flat

The Flat Framework

An experimental framework for php

It was created to allow a project to be organized in a hierarchical manner similar to a REST service.

Architecturally, it facilitates a broad swathe of design patterns using a client-server process flow.

Features

Installation

The Flat Framework can be the basis of a new project or added to an existing project

New Projects

The easiest way to get going with The Flat Framework is to copy the flat boilerplate webapp.

Step 1. Composer 'create-project' (flat boilerplate webapp)...

(copies this repo and configures php dependencies)

Step 2. Bower update

(installs static dependencies)

Existing Projects

Step 1. Using composer

Step 2. Bower update

Architecture

The components of flat architecture facilitate a client-server process flow...

Admittedly, the component organization of the flat architecture is rigidly attached to the client-server model. Despite this, the programming design constraints of a flat based project are actually very minimal. For this reason, flat can be argued to be a lightweight framework. Any programming design pattern can be used within a flat project.

However... there is an idealized programming design use case neatly bundled within the architecture.

Groan...yes, it is yet another design pattern.

The Resource-Route-Controller is a novel design pattern invented in tandem with flat. It is, though, intended to be a very lightweight design pattern that should not keep other design patterns (MVC, MVP, MVVM) from being incorporated. It is described further in a section below.

The hierarchical organization of a flat project is abstracted into multiple abstract levels of programming design (not just the path names of scripts and dependency file structure).

The following sections contain further details regarding concepts and terminology encountered in flat.

Resource:

A "resource" is a string value comprised of one or more "segments", each "segment" being delineated by either a backslash "\" or forward-slash "/".

For example, given the following URL:

An app controller might extract the URL path as the resource /my_app/my_app_frontend/my_frontend_view and then check if a php class exists with the name \my_app\my_app_frontend\my_frontend_view, and instantiate the class, which becomes an app object...

Note: flat has convenience classes that facilitate more complex routing than the trivial example above. These facilitate more complex aspects, such as dealing with associated request input data.

See

Route Factory:

A "route factory" facilitates creating a "route map" for resolving a "resource".

Route Map:

A "route map" consists of "route rules" which determine how a "resource" corresponds to php classnames within a php sub-namespace.

Entry Point Controller:

An entry-point controller script uses a "resolver" to instantiate "app objects". based on the "route map" logic created in this

An example of an entry-point script can be seen in the 'flat-webapp' github repo: https://github.com/katmore/flat-webapp/blob/master/web/api.php

The "Resource-Route-Controller" Design Pattern

"Resource-Route-Controller"

Ideal process flow incorporating Resource-Route-Controller design using 'client-server' model

  1. An application controller is provided a "resource" along with any "input"
  2. A controller "resolves" the "resource" into one or more objects which contain the application logic.

Legal

Copyright (c) 2012-2019 Doug Bird - [email protected]. All Rights Reserved.

This software is distributed under the terms of the GNU General Public License v3.0.


All versions of flat with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.1
mongodb/mongodb Version ^1.0.0
alcaeus/mongo-php-adapter Version ^1.0
authorizenet/authorizenet Version ^1.9
aws/aws-sdk-php Version ^3.23
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 katmore/flat contains the following files

Loading the files please wait ....