Download the PHP package waps/framework without Composer

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

WAPS Framework

FrameWork Logo

Generic badge Ask Me Anything ! license Maintenance GitHub release Generic badge Stars Vulnerabilities Documentation

A PHP web app framework.

It's designed to make small future projects faster and easier. This entire framework has emerged as a learning project and is being continuously developed.

Setup

Dependencies

Server

Web Server

This framework was developed on the basis of the Apache web server. Nevertheless, it is possible with slight modifications, It also operate on a NGINX web server. But in contrast to the supplied htaccess file, changes to the NGINX config necessary. Everything necessary for this is explained below.

Apache

As long as only one Apache web server is used, the project can be used without adjustments.

NGINX

For the operation of the framework under NGINX the following changes have to be made to the nginx config!

autoindex off;

error_page 500 /Error_500;

error_page 404 /Error_404;

error_page 403 /Error_403;

location ~ /?\.htaccess$ {
  return 403;
}

location ~ ^/?config/config\.json$ {
  return 403;
}

location ~ ^/?config/plugin\.config\.json$ {
  return 403;
}

location / {
  rewrite ^(.*)$ https://$http_host/$1 redirect;
  if (!-e $request_filename){
    rewrite ^/([\w]+)? /index.php?pagename=$1;
  }
}

It replaces the corresponding part that would otherwise be set by the htaccess.

Database Server

A MySql server was used to develop the framework, but it is no problem to use MariaDB as an alternative. For other database systems, slight changes have to be made to the framework.

Packet management

NPM

To manage the CSS, JS and TS scripts, the framework uses the NODE Package Manager. To work with the framework, the instalation of the same is necessary.

After installation, first execute the command in the project folder.

That should install all needed packages.

Set up a project

To set up a project, all servers named above must be available, a web server and a database server. At the start of the project, the corresponding access data of the database must be entered in the Config. This can be found in the path

Likewise, all other important data must be entered in the config. This can also be expanded flexibly. All new entries automatically become uppercase constants.

In addition, it is possible to install extensions in the area of plugins. These can be developed separately from projects and then integrated. The path in which plugins must be inserted is

Creating new Pages/Classes

Page

To create a new page, simply create a new file after the schema fileName_page_php in folder

The File Head of the new page must look like this:

1 <?php
2
3 /*
4 PageInfo:
5 Title: true;
6 */

The title tag can be used to specify whether a header should be generated automatically.

At the same time, menu entries are automatically generated from the pages in the "open" folder.

Class

To create a new class, it must be created in the folder. Classes are loaded automatically, it is not necessary to do anymore. The namespace of the classes is .

Wiki

You can find more details about the framework in the -> Wiki


All versions of framework with dependencies

PHP Build Version
Package Version
Requires ext-mysqli Version *
ext-readline Version *
ext-json Version *
ext-dom Version *
ext-simplexml Version *
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 waps/framework contains the following files

Loading the files please wait ....